sqllogictest
Check-in [9b5974b19a]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated to skip tests for PostgreSQL where output column is (re)named without an AS term.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9b5974b19a1cccea01224aed50b05c295fd053fa
User & Date: shaneh 2008-12-23 04:48:35
Original Comment: Updated to skip tests for PostreSQL where output column is (re)named with AS term.
Context
2008-12-23
20:29
More updates for PostgreSQL compatibility. check-in: 9483eb157c user: shaneh tags: trunk
04:48
Updated to skip tests for PostgreSQL where output column is (re)named without an AS term. check-in: 9b5974b19a user: shaneh tags: trunk
2008-12-22
21:58
Send ODBC error messages to stderr instead of stdout. check-in: c715699ccb user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/random/aggregates/slt_good_0.test.

  3087   3087   
  3088   3088   skipif mysql # not compatible
  3089   3089   query I rowsort label-347
  3090   3090   SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 10 / 61 IS NULL
  3091   3091   ----
  3092   3092   -3
  3093   3093   
         3094  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3094   3095   query II rowsort
  3095   3096   SELECT + col1 col2, + 84 FROM tab0 AS cor0
  3096   3097   ----
  3097   3098   1
  3098   3099   84
  3099   3100   21
  3100   3101   84
................................................................................
  4040   4041   query II rowsort label-454
  4041   4042   SELECT + COUNT( * ) col0, + 98 + + COUNT( * ) FROM tab1
  4042   4043   ----
  4043   4044   3
  4044   4045   101
  4045   4046   
  4046   4047   skipif mysql # not compatible
         4048  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  4047   4049   query II rowsort label-454
  4048   4050   SELECT + COUNT ( * ) col0, + 98 + + COUNT ( * ) FROM tab1
  4049   4051   ----
  4050   4052   3
  4051   4053   101
  4052   4054   
  4053   4055   query II rowsort
................................................................................
  5526   5528   skipif mysql # not compatible
  5527   5529   skipif postgresql # PostgreSQL requires AS when renaming output columns
  5528   5530   query I rowsort label-615
  5529   5531   SELECT - COUNT ( * ) + + 39 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
  5530   5532   ----
  5531   5533   30
  5532   5534   
         5535  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5533   5536   query II rowsort
  5534   5537   SELECT DISTINCT col1 col2, col2 FROM tab1 AS cor0
  5535   5538   ----
  5536   5539   14
  5537   5540   96
  5538   5541   47
  5539   5542   68
................................................................................
  5720   5723   -40
  5721   5724   1
  5722   5725   -58
  5723   5726   2
  5724   5727   -23
  5725   5728   
  5726   5729   skipif mysql # not compatible
         5730  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5727   5731   query II rowsort label-633
  5728   5732   SELECT col0 / + col2 col1, - col2 AS col0 FROM tab2 AS cor0
  5729   5733   ----
  5730   5734   1
  5731   5735   -40
  5732   5736   1
  5733   5737   -58
................................................................................
  5768   5772   
  5769   5773   skipif postgresql # PostgreSQL requires AS when renaming output columns
  5770   5774   query I rowsort
  5771   5775   SELECT DISTINCT - + 2 + + + 12 col0 FROM tab1 WHERE NULL IS NULL
  5772   5776   ----
  5773   5777   10
  5774   5778   
         5779  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5775   5780   query II rowsort
  5776   5781   SELECT DISTINCT col0 col1, ( - col1 ) AS col2 FROM tab2
  5777   5782   ----
  5778   5783   46
  5779   5784   -51
  5780   5785   64
  5781   5786   -77
................................................................................
  6899   6904   59
  6900   6905   59
  6901   6906   
  6902   6907   query I rowsort
  6903   6908   SELECT DISTINCT + col1 FROM tab0 cor0 WHERE 47 NOT BETWEEN - 91 AND NULL
  6904   6909   ----
  6905   6910   
         6911  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  6906   6912   query II rowsort
  6907   6913   SELECT ALL - col1 * + - col1 col2, + 90 AS col0 FROM tab2 AS cor0
  6908   6914   ----
  6909   6915   2601
  6910   6916   90
  6911   6917   4489
  6912   6918   90
................................................................................
  7711   7717   43
  7712   7718   47
  7713   7719   -65
  7714   7720   99
  7715   7721   -36
  7716   7722   
  7717   7723   skipif mysql # not compatible
         7724  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7718   7725   query II rowsort label-871
  7719   7726   SELECT + col2 col1, col0 + - col2 - - + CAST ( + col1 AS INTEGER ) / + 65 + - 34 FROM tab0
  7720   7727   ----
  7721   7728   10
  7722   7729   43
  7723   7730   47
  7724   7731   -65
  7725   7732   99
  7726   7733   -36
  7727   7734   
         7735  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7728   7736   query II rowsort
  7729   7737   SELECT DISTINCT - col1 col1, - 15 * 10 FROM tab2
  7730   7738   ----
  7731   7739   -51
  7732   7740   -150
  7733   7741   -67
  7734   7742   -150
................................................................................
  7803   7811   -315392
  7804   7812   -376875
  7805   7813   
  7806   7814   query III rowsort
  7807   7815   SELECT * FROM tab0 cor0 WHERE NOT - 73 * + col2 IS NOT NULL
  7808   7816   ----
  7809   7817   
         7818  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7810   7819   query II rowsort
  7811   7820   SELECT DISTINCT - - 58 col1, col1 AS col1 FROM tab0 AS cor0
  7812   7821   ----
  7813   7822   58
  7814   7823   1
  7815   7824   58
  7816   7825   21
................................................................................
  8601   8610   196
  8602   8611   0
  8603   8612   62
  8604   8613   0
  8605   8614   97
  8606   8615   
  8607   8616   skipif mysql # not compatible
         8617  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  8608   8618   query II rowsort label-972
  8609   8619   SELECT - + 55 / - 65 col1, ( + col0 ) + + + col2 FROM tab0 AS cor0
  8610   8620   ----
  8611   8621   0
  8612   8622   196
  8613   8623   0
  8614   8624   62
................................................................................
  9928   9938   query I rowsort
  9929   9939   SELECT - - col2 * - - 65 * - + 81 FROM tab2 AS cor0
  9930   9940   ----
  9931   9941   -121095
  9932   9942   -210600
  9933   9943   -305370
  9934   9944   
         9945  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9935   9946   query II rowsort
  9936   9947   SELECT - col2 * - - col2 col2, - col2 AS col0 FROM tab1
  9937   9948   ----
  9938   9949   -3481
  9939   9950   -59
  9940   9951   -4624
  9941   9952   -68
................................................................................
 11174  11185   -81
 11175  11186   81
 11176  11187   
 11177  11188   query III rowsort
 11178  11189   SELECT * FROM tab0 WHERE NOT NULL < + 1
 11179  11190   ----
 11180  11191   
        11192  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11181  11193   query II rowsort
 11182  11194   SELECT + 85 col1, - col1 FROM tab2
 11183  11195   ----
 11184  11196   85
 11185  11197   -51
 11186  11198   85
 11187  11199   -67
................................................................................
 11487  11499   query I rowsort
 11488  11500   SELECT 77 + - + col1 + col0 * - - 94 FROM tab2 AS cor0
 11489  11501   ----
 11490  11502   4350
 11491  11503   6016
 11492  11504   7060
 11493  11505   
        11506  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11494  11507   query II rowsort
 11495  11508   SELECT DISTINCT col2 * ( col2 ) col2, + 35 AS col2 FROM tab2 AS cor0
 11496  11509   ----
 11497  11510   1600
 11498  11511   35
 11499  11512   3364
 11500  11513   35
................................................................................
 11718  11731   query I rowsort
 11719  11732   SELECT ALL - 44 col2 FROM tab0 cor0
 11720  11733   ----
 11721  11734   -44
 11722  11735   -44
 11723  11736   -44
 11724  11737   
        11738  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11725  11739   query III rowsort
 11726  11740   SELECT + + 36, 6 col1, - ( + col0 ) AS col1 FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND col1
 11727  11741   ----
 11728  11742   
 11729  11743   query I rowsort
 11730  11744   SELECT - col0 + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
 11731  11745   ----
................................................................................
 11917  11931   query II rowsort label-1333
 11918  11932   SELECT DISTINCT + COUNT( * ) * + COUNT( * ) col0, - COUNT( * ) FROM tab1
 11919  11933   ----
 11920  11934   9
 11921  11935   -3
 11922  11936   
 11923  11937   skipif mysql # not compatible
        11938  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11924  11939   query II rowsort label-1333
 11925  11940   SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) col0, - COUNT ( * ) FROM tab1
 11926  11941   ----
 11927  11942   9
 11928  11943   -3
 11929  11944   
 11930  11945   onlyif mysql # DIV for integer division: 
................................................................................
 12519  12534   
 12520  12535   skipif postgresql # PostgreSQL requires AS when renaming output columns
 12521  12536   query I rowsort
 12522  12537   SELECT DISTINCT - 38 col0 FROM tab2 AS cor0
 12523  12538   ----
 12524  12539   -38
 12525  12540   
        12541  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12526  12542   query II rowsort
 12527  12543   SELECT ALL - col2 col1, - col0 AS col0 FROM tab2 AS cor0
 12528  12544   ----
 12529  12545   -23
 12530  12546   -46
 12531  12547   -40
 12532  12548   -64
................................................................................
 13114  13130   119
 13115  13131   
 13116  13132   query III rowsort
 13117  13133   SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + 15 IS NULL
 13118  13134   ----
 13119  13135   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 13120  13136   
        13137  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13121  13138   query II rowsort
 13122  13139   SELECT - 0 col0, + col2 * + 60 AS col0 FROM tab1
 13123  13140   ----
 13124  13141   0
 13125  13142   3540
 13126  13143   0
 13127  13144   4080
................................................................................
 13541  13558   0
 13542  13559   -68
 13543  13560   0
 13544  13561   -96
 13545  13562   0
 13546  13563   
 13547  13564   skipif mysql # not compatible
        13565  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13548  13566   query II rowsort label-1515
 13549  13567   SELECT ALL - col2 col1, 44 / - 51 AS col2 FROM tab1
 13550  13568   ----
 13551  13569   -59
 13552  13570   0
 13553  13571   -68
 13554  13572   0
................................................................................
 14159  14177   NULL
 14160  14178   3080
 14161  14179   NULL
 14162  14180   3886
 14163  14181   NULL
 14164  14182   
 14165  14183   skipif mysql # not compatible
        14184  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14166  14185   query II rowsort label-1581
 14167  14186   SELECT col2 * col1 col1, 75 * - + CAST ( NULL AS INTEGER ) FROM tab2
 14168  14187   ----
 14169  14188   1173
 14170  14189   NULL
 14171  14190   3080
 14172  14191   NULL
................................................................................
 15580  15599   query I rowsort
 15581  15600   SELECT ALL col2 + + 27 col1 FROM tab0 AS cor0
 15582  15601   ----
 15583  15602   126
 15584  15603   37
 15585  15604   74
 15586  15605   
        15606  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15587  15607   query II rowsort
 15588  15608   SELECT DISTINCT + col0 + + - col2 col2, col1 FROM tab2 AS cor0
 15589  15609   ----
 15590  15610   17
 15591  15611   67
 15592  15612   23
 15593  15613   51
................................................................................
 16377  16397   NULL
 16378  16398   -85
 16379  16399   NULL
 16380  16400   -91
 16381  16401   NULL
 16382  16402   
 16383  16403   skipif mysql # not compatible
        16404  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16384  16405   query II rowsort label-1822
 16385  16406   SELECT DISTINCT + ( - col0 ) col0, col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
 16386  16407   ----
 16387  16408   -51
 16388  16409   NULL
 16389  16410   -85
 16390  16411   NULL
................................................................................
 16855  16876   query I rowsort
 16856  16877   SELECT DISTINCT + col1 + + ( + - ( col2 ) ) AS col1 FROM tab1 AS cor0
 16857  16878   ----
 16858  16879   -21
 16859  16880   -54
 16860  16881   -82
 16861  16882   
        16883  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16862  16884   query II rowsort
 16863  16885   SELECT ALL - 18 col0, + 91 AS col2 FROM tab1 cor0
 16864  16886   ----
 16865  16887   -18
 16866  16888   91
 16867  16889   -18
 16868  16890   91
................................................................................
 19060  19082   1
 19061  19083   40
 19062  19084   1
 19063  19085   58
 19064  19086   1
 19065  19087   
 19066  19088   skipif mysql # not compatible
        19089  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19067  19090   query II rowsort label-2107
 19068  19091   SELECT ALL col2 col1, - 73 / - 51 FROM tab2
 19069  19092   ----
 19070  19093   23
 19071  19094   1
 19072  19095   40
 19073  19096   1
................................................................................
 20493  20516   ----
 20494  20517   NULL
 20495  20518   
 20496  20519   query III rowsort
 20497  20520   SELECT * FROM tab2 WHERE NOT + col2 = NULL
 20498  20521   ----
 20499  20522   
        20523  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20500  20524   query II rowsort
 20501  20525   SELECT + ( - - col1 ) col2, + col2 AS col2 FROM tab0
 20502  20526   ----
 20503  20527   1
 20504  20528   99
 20505  20529   21
 20506  20530   10
................................................................................
 20812  20836   -51
 20813  20837   -192
 20814  20838   -85
 20815  20839   -118
 20816  20840   -91
 20817  20841   -136
 20818  20842   
        20843  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20819  20844   query II rowsort
 20820  20845   SELECT - col2 col2, + col2 * + 68 * col0 AS col0 FROM tab2 AS cor0
 20821  20846   ----
 20822  20847   -23
 20823  20848   71944
 20824  20849   -40
 20825  20850   174080
................................................................................
 21780  21805   query II rowsort label-2408
 21781  21806   SELECT 65 + - + COUNT( * ) col0, COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
 21782  21807   ----
 21783  21808   62
 21784  21809   -9
 21785  21810   
 21786  21811   skipif mysql # not compatible
        21812  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21787  21813   query II rowsort label-2408
 21788  21814   SELECT 65 + - + COUNT ( * ) col0, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
 21789  21815   ----
 21790  21816   62
 21791  21817   -9
 21792  21818   
 21793  21819   onlyif mysql # DIV for integer division: 
................................................................................
 22337  22363   query II rowsort label-2469
 22338  22364   SELECT 80 + - COUNT( * ) + - COUNT( * ) col2, 78 AS col0 FROM tab2
 22339  22365   ----
 22340  22366   74
 22341  22367   78
 22342  22368   
 22343  22369   skipif mysql # not compatible
        22370  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22344  22371   query II rowsort label-2469
 22345  22372   SELECT 80 + - COUNT ( * ) + - COUNT ( * ) col2, 78 AS col0 FROM tab2
 22346  22373   ----
 22347  22374   74
 22348  22375   78
 22349  22376   
 22350  22377   query III rowsort
................................................................................
 24475  24502   -23
 24476  24503   NULL
 24477  24504   -40
 24478  24505   NULL
 24479  24506   -58
 24480  24507   
 24481  24508   skipif mysql # not compatible
        24509  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24482  24510   query II rowsort label-2701
 24483  24511   SELECT DISTINCT - 87 * + 84 * - + ( CAST ( NULL AS INTEGER ) ) col1, - col2 AS col0 FROM tab2
 24484  24512   ----
 24485  24513   NULL
 24486  24514   -23
 24487  24515   NULL
 24488  24516   -40
................................................................................
 25619  25647   6933
 25620  25648   -1914
 25621  25649   23
 25622  25650   -194
 25623  25651   10015
 25624  25652   
 25625  25653   skipif mysql # not compatible
        25654  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25626  25655   query II rowsort label-2827
 25627  25656   SELECT ALL - col0 + ( + col1 ) * - col0 col0, col2 * col2 * col2 / - - col0 + 12 FROM tab0 AS cor0
 25628  25657   ----
 25629  25658   -1230
 25630  25659   6933
 25631  25660   -1914
 25632  25661   23
................................................................................
 27089  27118   ----
 27090  27119   
 27091  27120   skipif mysql # not compatible
 27092  27121   query III rowsort label-2983
 27093  27122   SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < + CAST ( NULL AS INTEGER )
 27094  27123   ----
 27095  27124   
        27125  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27096  27126   query II rowsort
 27097  27127   SELECT - col0 col1, + col1 * - - col0 * - col1 FROM tab1 AS cor0
 27098  27128   ----
 27099  27129   -51
 27100  27130   -9996
 27101  27131   -85
 27102  27132   -2125
................................................................................
 27331  27361   51
 27332  27362   4614
 27333  27363   67
 27334  27364   6046
 27335  27365   77
 27336  27366   
 27337  27367   skipif mysql # not compatible
        27368  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27338  27369   query II rowsort label-3008
 27339  27370   SELECT ALL - - CAST ( + col1 AS INTEGER ) + col2 + + + col1 * + col1 col0, + col1 AS col1 FROM tab2 AS cor0
 27340  27371   ----
 27341  27372   2675
 27342  27373   51
 27343  27374   4614
 27344  27375   67
................................................................................
 28867  28898   skipif postgresql # PostgreSQL requires AS when renaming output columns
 28868  28899   query II rowsort label-3184
 28869  28900   SELECT - + 6, + SUM ( DISTINCT + + CAST ( col0 AS INTEGER ) ) / ( COUNT ( * ) ) col0 FROM tab1 AS cor0
 28870  28901   ----
 28871  28902   -6
 28872  28903   75
 28873  28904   
        28905  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28874  28906   query II rowsort
 28875  28907   SELECT + - 86 col1, - col0 * + col0 AS col1 FROM tab2 AS cor0
 28876  28908   ----
 28877  28909   -86
 28878  28910   -2116
 28879  28911   -86
 28880  28912   -4096
................................................................................
 29894  29926   query II rowsort label-3297
 29895  29927   SELECT ALL - - COUNT( ALL - - col2 ) col1, - 96 AS col0 FROM tab1 AS cor0
 29896  29928   ----
 29897  29929   3
 29898  29930   -96
 29899  29931   
 29900  29932   skipif mysql # not compatible
        29933  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29901  29934   query II rowsort label-3297
 29902  29935   SELECT ALL - - COUNT ( ALL - - col2 ) col1, - 96 AS col0 FROM tab1 AS cor0
 29903  29936   ----
 29904  29937   3
 29905  29938   -96
 29906  29939   
 29907  29940   onlyif mysql # aggregate syntax: 
................................................................................
 30181  30214   query II rowsort label-3325
 30182  30215   SELECT - COUNT( * ) col1, - COUNT( * ) AS col0 FROM tab2
 30183  30216   ----
 30184  30217   -3
 30185  30218   -3
 30186  30219   
 30187  30220   skipif mysql # not compatible
        30221  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30188  30222   query II rowsort label-3325
 30189  30223   SELECT - COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab2
 30190  30224   ----
 30191  30225   -3
 30192  30226   -3
 30193  30227   
 30194  30228   query III rowsort
................................................................................
 30814  30848   46
 30815  30849   NULL
 30816  30850   64
 30817  30851   NULL
 30818  30852   75
 30819  30853   
 30820  30854   skipif mysql # not compatible
        30855  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30821  30856   query II rowsort label-3396
 30822  30857   SELECT + col2 + + CAST ( NULL AS INTEGER ) + + ( ( - col0 ) ) col0, col0 FROM tab2
 30823  30858   ----
 30824  30859   NULL
 30825  30860   46
 30826  30861   NULL
 30827  30862   64
................................................................................
 31372  31407   query II rowsort label-3455
 31373  31408   SELECT DISTINCT SUM( ALL + - col2 ) DIV + COUNT( * ) col0, COUNT( * ) FROM tab2
 31374  31409   ----
 31375  31410   -40
 31376  31411   3
 31377  31412   
 31378  31413   skipif mysql # not compatible
        31414  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 31379  31415   query II rowsort label-3455
 31380  31416   SELECT DISTINCT SUM ( ALL + - col2 ) / + COUNT ( * ) col0, COUNT ( * ) FROM tab2
 31381  31417   ----
 31382  31418   -40
 31383  31419   3
 31384  31420   
 31385  31421   onlyif mysql # aggregate syntax: 
................................................................................
 31842  31878   query I rowsort
 31843  31879   SELECT DISTINCT + col1 - + + col0 * + 6 AS col2 FROM tab0
 31844  31880   ----
 31845  31881   -501
 31846  31882   -581
 31847  31883   -9
 31848  31884   
        31885  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 31849  31886   query II rowsort
 31850  31887   SELECT - col1 col2, col2 * + col0 * col1 * + - 69 AS col2 FROM tab1
 31851  31888   ----
 31852  31889   -14
 31853  31890   -4729536
 31854  31891   -47
 31855  31892   -20067684
................................................................................
 32100  32137   2601
 32101  32138   48668
 32102  32139   4489
 32103  32140   326250
 32104  32141   5929
 32105  32142   163840
 32106  32143   
        32144  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32107  32145   query II rowsort
 32108  32146   SELECT - col1 * - col2 * col1 col2, 75 AS col1 FROM tab0 AS cor0 WHERE 83 IS NULL
 32109  32147   ----
 32110  32148   
 32111  32149   query I rowsort
 32112  32150   SELECT DISTINCT + + 72 * - + 52 + - col1 AS col0 FROM tab1 AS cor0
 32113  32151   ----
................................................................................
 32198  32236   143
 32199  32237   85
 32200  32238   146
 32201  32239   51
 32202  32240   158
 32203  32241   91
 32204  32242   
        32243  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32205  32244   query II rowsort
 32206  32245   SELECT 65 + - + ( col0 ) + - ( + col1 ) col0, - 50 FROM tab1
 32207  32246   ----
 32208  32247   -25
 32209  32248   -50
 32210  32249   -73
 32211  32250   -50
................................................................................
 32737  32776   skipif mysql # not compatible
 32738  32777   skipif postgresql # PostgreSQL requires AS when renaming output columns
 32739  32778   query I rowsort label-3604
 32740  32779   SELECT 48 + - COUNT ( * ) col2 FROM tab0
 32741  32780   ----
 32742  32781   45
 32743  32782   
        32783  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32744  32784   query II rowsort
 32745  32785   SELECT DISTINCT + - 29 col2, 25 AS col1 FROM tab1 AS cor0
 32746  32786   ----
 32747  32787   -29
 32748  32788   25
 32749  32789   
 32750  32790   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 32970  33010   query II rowsort label-3624
 32971  33011   SELECT 91 col1, + COUNT( * ) AS col2 FROM tab2
 32972  33012   ----
 32973  33013   91
 32974  33014   3
 32975  33015   
 32976  33016   skipif mysql # not compatible
        33017  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32977  33018   query II rowsort label-3624
 32978  33019   SELECT 91 col1, + COUNT ( * ) AS col2 FROM tab2
 32979  33020   ----
 32980  33021   91
 32981  33022   3
 32982  33023   
 32983  33024   query I rowsort
................................................................................
 33013  33054   
 33014  33055   skipif mysql # not compatible
 33015  33056   query I rowsort label-3629
 33016  33057   SELECT DISTINCT + MIN ( ALL - + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 72 IS NOT NULL
 33017  33058   ----
 33018  33059   NULL
 33019  33060   
        33061  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33020  33062   query II rowsort
 33021  33063   SELECT DISTINCT - col2 * col1 * + col2 col1, ( + 54 ) AS col1 FROM tab0 AS cor0
 33022  33064   ----
 33023  33065   -178929
 33024  33066   54
 33025  33067   -2100
 33026  33068   54
................................................................................
 34938  34980   skipif mysql # not compatible
 34939  34981   skipif postgresql # PostgreSQL requires AS when renaming output columns
 34940  34982   query I rowsort label-3856
 34941  34983   SELECT - SUM ( ALL - 75 ) col1 FROM tab0
 34942  34984   ----
 34943  34985   225
 34944  34986   
        34987  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34945  34988   query II rowsort
 34946  34989   SELECT DISTINCT col0 col2, 78 FROM tab0
 34947  34990   ----
 34948  34991   15
 34949  34992   78
 34950  34993   87
 34951  34994   78
................................................................................
 35707  35750   query I rowsort
 35708  35751   SELECT + col1 - - + col1 FROM tab2 AS cor0
 35709  35752   ----
 35710  35753   102
 35711  35754   134
 35712  35755   154
 35713  35756   
        35757  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35714  35758   query II rowsort
 35715  35759   SELECT + 86 col1, 17 + col1 FROM tab2 AS cor0 WHERE NOT col2 / - - 1 - - col1 IS NULL
 35716  35760   ----
 35717  35761   86
 35718  35762   68
 35719  35763   86
 35720  35764   84
................................................................................
 35791  35835   15
 35792  35836   47
 35793  35837   87
 35794  35838   10
 35795  35839   97
 35796  35840   99
 35797  35841   
        35842  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35798  35843   query II rowsort
 35799  35844   SELECT - - 5 col2, ( - - 88 ) * col1 * - 98 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
 35800  35845   ----
 35801  35846   
 35802  35847   onlyif mysql # aggregate syntax: 
 35803  35848   query I rowsort label-3955
 35804  35849   SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col2 = NULL
................................................................................
 35928  35973   query II rowsort label-3967
 35929  35974   SELECT 31 col1, + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE - 26 <= - col0
 35930  35975   ----
 35931  35976   31
 35932  35977   NULL
 35933  35978   
 35934  35979   skipif mysql # not compatible
        35980  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35935  35981   query II rowsort label-3967
 35936  35982   SELECT 31 col1, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE - 26 <= - col0
 35937  35983   ----
 35938  35984   31
 35939  35985   NULL
 35940  35986   
 35941  35987   query III rowsort
................................................................................
 35954  36000   query II rowsort label-3970
 35955  36001   SELECT ALL COUNT( * ) col0, + MIN( DISTINCT ( + col1 ) ) FROM tab0
 35956  36002   ----
 35957  36003   3
 35958  36004   1
 35959  36005   
 35960  36006   skipif mysql # not compatible
        36007  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35961  36008   query II rowsort label-3970
 35962  36009   SELECT ALL COUNT ( * ) col0, + MIN ( DISTINCT ( + col1 ) ) FROM tab0
 35963  36010   ----
 35964  36011   3
 35965  36012   1
 35966  36013   
 35967  36014   query II rowsort
................................................................................
 36679  36726   -1989
 36680  36727   NULL
 36681  36728   -2613
 36682  36729   NULL
 36683  36730   -3003
 36684  36731   
 36685  36732   skipif mysql # not compatible
        36733  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 36686  36734   query II rowsort label-4043
 36687  36735   SELECT ALL + CAST ( NULL AS INTEGER ) col2, 39 * + - col1 FROM tab2 AS cor0
 36688  36736   ----
 36689  36737   NULL
 36690  36738   -1989
 36691  36739   NULL
 36692  36740   -2613
................................................................................
 37009  37057   
 37010  37058   skipif mysql # not compatible
 37011  37059   query I rowsort label-4084
 37012  37060   SELECT + ( + 39 ) / - - COUNT ( * ) FROM tab0 AS cor0
 37013  37061   ----
 37014  37062   13
 37015  37063   
        37064  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37016  37065   query II rowsort
 37017  37066   SELECT - 52 * col2 col1, 97 FROM tab0 AS cor0
 37018  37067   ----
 37019  37068   -2444
 37020  37069   97
 37021  37070   -5148
 37022  37071   97
................................................................................
 37302  37351   
 37303  37352   skipif mysql # not compatible
 37304  37353   query I rowsort label-4113
 37305  37354   SELECT + + COUNT ( * ) * - 77 AS col0 FROM tab0 WHERE ( NULL ) IS NULL AND NOT CAST ( NULL AS INTEGER ) * 44 IS NOT NULL
 37306  37355   ----
 37307  37356   -231
 37308  37357   
        37358  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37309  37359   query II rowsort
 37310  37360   SELECT DISTINCT - col0 col1, col0 AS col2 FROM tab1
 37311  37361   ----
 37312  37362   -51
 37313  37363   51
 37314  37364   -85
 37315  37365   85
................................................................................
 38437  38487   
 38438  38488   skipif mysql # not compatible
 38439  38489   query I rowsort label-4244
 38440  38490   SELECT COUNT ( + col0 ) FROM tab1
 38441  38491   ----
 38442  38492   3
 38443  38493   
        38494  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38444  38495   query II rowsort
 38445  38496   SELECT ALL - col2 col0, col0 FROM tab0
 38446  38497   ----
 38447  38498   -10
 38448  38499   87
 38449  38500   -47
 38450  38501   15
................................................................................
 42565  42616   
 42566  42617   skipif mysql # not compatible
 42567  42618   query I rowsort label-4705
 42568  42619   SELECT ALL + - ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
 42569  42620   ----
 42570  42621   3
 42571  42622   
        42623  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42572  42624   query II rowsort
 42573  42625   SELECT col1 col0, - 30 * col2 * + col1 AS col2 FROM tab2 AS cor0
 42574  42626   ----
 42575  42627   51
 42576  42628   -35190
 42577  42629   67
 42578  42630   -116580
................................................................................
 42843  42895   query I rowsort
 42844  42896   SELECT + + 55 * 1 FROM tab2 AS cor0
 42845  42897   ----
 42846  42898   55
 42847  42899   55
 42848  42900   55
 42849  42901   
        42902  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42850  42903   query III rowsort
 42851  42904   SELECT DISTINCT 15 col0, col1 * + col2, - col2 AS col0 FROM tab2
 42852  42905   ----
 42853  42906   9 values hashing to 3367038e942e104e8196040bff63ebd9
 42854  42907   
 42855  42908   query I rowsort
 42856  42909   SELECT + col1 * - - 71 * - col1 FROM tab2
................................................................................
 43631  43684   query I rowsort
 43632  43685   SELECT ALL + 0 + + col2 AS col1 FROM tab0
 43633  43686   ----
 43634  43687   10
 43635  43688   47
 43636  43689   99
 43637  43690   
        43691  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43638  43692   query II rowsort
 43639  43693   SELECT ALL col0 col1, col2 AS col0 FROM tab1 WHERE + - col0 IS NULL
 43640  43694   ----
 43641  43695   
 43642  43696   query I rowsort
 43643  43697   SELECT DISTINCT + - col2 + + - col0 AS col1 FROM tab0 AS cor0
 43644  43698   ----
................................................................................
 44029  44083   query II rowsort label-4854
 44030  44084   SELECT DISTINCT CAST( - + 11 AS SIGNED ) col2, 22 FROM tab0
 44031  44085   ----
 44032  44086   -11
 44033  44087   22
 44034  44088   
 44035  44089   skipif mysql # not compatible
        44090  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 44036  44091   query II rowsort label-4854
 44037  44092   SELECT DISTINCT CAST ( - + 11 AS INTEGER ) col2, 22 FROM tab0
 44038  44093   ----
 44039  44094   -11
 44040  44095   22
 44041  44096   
 44042  44097   query III rowsort
................................................................................
 45047  45102   ----
 45048  45103   -1
 45049  45104   30
 45050  45105   0
 45051  45106   30
 45052  45107   
 45053  45108   skipif mysql # not compatible
        45109  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45054  45110   query II rowsort label-4967
 45055  45111   SELECT DISTINCT col1 / - 75 col1, + 30 FROM tab2
 45056  45112   ----
 45057  45113   -1
 45058  45114   30
 45059  45115   0
 45060  45116   30
................................................................................
 46068  46124   5390
 46069  46125   
 46070  46126   query I rowsort
 46071  46127   SELECT DISTINCT - 17 FROM tab2 WHERE - 19 + + col0 IS NOT NULL
 46072  46128   ----
 46073  46129   -17
 46074  46130   
        46131  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46075  46132   query II rowsort
 46076  46133   SELECT - col1 col2, - col0 + - col0 AS col2 FROM tab1
 46077  46134   ----
 46078  46135   -14
 46079  46136   -102
 46080  46137   -47
 46081  46138   -182
................................................................................
 46090  46147   query II rowsort label-5080
 46091  46148   SELECT - CAST( NULL AS SIGNED ) col2, MAX( - col2 ) AS col1 FROM tab1
 46092  46149   ----
 46093  46150   NULL
 46094  46151   -59
 46095  46152   
 46096  46153   skipif mysql # not compatible
        46154  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46097  46155   query II rowsort label-5080
 46098  46156   SELECT - CAST ( NULL AS INTEGER ) col2, MAX ( - col2 ) AS col1 FROM tab1
 46099  46157   ----
 46100  46158   NULL
 46101  46159   -59
 46102  46160   
 46103  46161   onlyif mysql # DIV for integer division: 
................................................................................
 47207  47265   147425
 47208  47266   1
 47209  47267   245379
 47210  47268   1
 47211  47269   262665
 47212  47270   
 47213  47271   skipif mysql # not compatible
        47272  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47214  47273   query II rowsort label-5210
 47215  47274   SELECT - + 59 / - 42 col0, - ( - - 43 ) * - + 67 * col0 + + 13 * + ( + 38 ) FROM tab1 cor0
 47216  47275   ----
 47217  47276   1
 47218  47277   147425
 47219  47278   1
 47220  47279   245379
................................................................................
 47807  47866   query I rowsort
 47808  47867   SELECT - 69 - - 84 AS col0 FROM tab1
 47809  47868   ----
 47810  47869   15
 47811  47870   15
 47812  47871   15
 47813  47872   
        47873  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47814  47874   query II rowsort
 47815  47875   SELECT ALL + col0 * col1 col1, 79 AS col1 FROM tab1
 47816  47876   ----
 47817  47877   425
 47818  47878   79
 47819  47879   4277
 47820  47880   79
................................................................................
 48375  48435   
 48376  48436   skipif mysql # not compatible
 48377  48437   query I rowsort label-5335
 48378  48438   SELECT DISTINCT + COUNT ( * ) + + 35 AS col0 FROM tab1 AS cor0
 48379  48439   ----
 48380  48440   38
 48381  48441   
        48442  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48382  48443   query II rowsort
 48383  48444   SELECT + col2 col0, - 12 AS col0 FROM tab2 AS cor0
 48384  48445   ----
 48385  48446   23
 48386  48447   -12
 48387  48448   40
 48388  48449   -12
................................................................................
 48459  48520   51
 48460  48521   32
 48461  48522   85
 48462  48523   32
 48463  48524   91
 48464  48525   32
 48465  48526   
        48527  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48466  48528   query II rowsort
 48467  48529   SELECT - + 19 col1, col1 FROM tab0 cor0
 48468  48530   ----
 48469  48531   -19
 48470  48532   1
 48471  48533   -19
 48472  48534   21
................................................................................
 50737  50799   
 50738  50800   skipif mysql # not compatible
 50739  50801   query I rowsort label-5582
 50740  50802   SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( + col1 IS NULL )
 50741  50803   ----
 50742  50804   3
 50743  50805   
        50806  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50744  50807   query II rowsort
 50745  50808   SELECT ALL + 79 col1, - col1 FROM tab2
 50746  50809   ----
 50747  50810   79
 50748  50811   -51
 50749  50812   79
 50750  50813   -67
................................................................................
 51291  51354   
 51292  51355   skipif mysql # not compatible
 51293  51356   query I rowsort label-5652
 51294  51357   SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - ( - col0 ) * col2 )
 51295  51358   ----
 51296  51359   0
 51297  51360   
        51361  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 51298  51362   query II rowsort
 51299  51363   SELECT + 63 col0, - col2 + - 40 AS col2 FROM tab2 AS cor0
 51300  51364   ----
 51301  51365   63
 51302  51366   -63
 51303  51367   63
 51304  51368   -80
................................................................................
 53707  53771   -74
 53708  53772   55
 53709  53773   -74
 53710  53774   55
 53711  53775   -74
 53712  53776   55
 53713  53777   
        53778  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53714  53779   query II rowsort
 53715  53780   SELECT + - 8 col0, - col0 AS col0 FROM tab0 AS cor0
 53716  53781   ----
 53717  53782   -8
 53718  53783   -15
 53719  53784   -8
 53720  53785   -87
................................................................................
 53727  53792   -81
 53728  53793   
 53729  53794   query III rowsort
 53730  53795   SELECT DISTINCT * FROM tab1 WHERE NOT col0 = 82
 53731  53796   ----
 53732  53797   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 53733  53798   
        53799  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53734  53800   query II rowsort
 53735  53801   SELECT col0 * + col0 col0, col2 * + col2 FROM tab0 AS cor0
 53736  53802   ----
 53737  53803   225
 53738  53804   2209
 53739  53805   7569
 53740  53806   100
................................................................................
 54957  55023   
 54958  55024   skipif mysql # not compatible
 54959  55025   query I rowsort label-6043
 54960  55026   SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
 54961  55027   ----
 54962  55028   NULL
 54963  55029   
        55030  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54964  55031   query II rowsort
 54965  55032   SELECT ALL col1 col1, col1 AS col2 FROM tab1
 54966  55033   ----
 54967  55034   14
 54968  55035   14
 54969  55036   47
 54970  55037   47
................................................................................
 56487  56554   query II rowsort label-6218
 56488  56555   SELECT ALL - COUNT( * ) col1, COUNT( + col2 ) FROM tab0 AS cor0
 56489  56556   ----
 56490  56557   -3
 56491  56558   3
 56492  56559   
 56493  56560   skipif mysql # not compatible
        56561  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56494  56562   query II rowsort label-6218
 56495  56563   SELECT ALL - COUNT ( * ) col1, COUNT ( + col2 ) FROM tab0 AS cor0
 56496  56564   ----
 56497  56565   -3
 56498  56566   3
 56499  56567   
 56500  56568   query I rowsort
................................................................................
 56569  56637   query I rowsort
 56570  56638   SELECT - 29 * + col2 AS col0 FROM tab2
 56571  56639   ----
 56572  56640   -1160
 56573  56641   -1682
 56574  56642   -667
 56575  56643   
        56644  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56576  56645   query II rowsort
 56577  56646   SELECT - 9 * + 62 col2, 6 AS col0 FROM tab1
 56578  56647   ----
 56579  56648   -558
 56580  56649   6
 56581  56650   -558
 56582  56651   6
................................................................................
 56770  56839   query I rowsort label-6247
 56771  56840   SELECT col2 / 63 FROM tab1
 56772  56841   ----
 56773  56842   0
 56774  56843   1
 56775  56844   1
 56776  56845   
        56846  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56777  56847   query II rowsort
 56778  56848   SELECT + col1 col0, - 58 FROM tab0
 56779  56849   ----
 56780  56850   1
 56781  56851   -58
 56782  56852   21
 56783  56853   -58
................................................................................
 56788  56858   query II rowsort label-6249
 56789  56859   SELECT SUM( - 29 ) col2, COUNT( * ) AS col2 FROM tab2
 56790  56860   ----
 56791  56861   -87
 56792  56862   3
 56793  56863   
 56794  56864   skipif mysql # not compatible
        56865  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56795  56866   query II rowsort label-6249
 56796  56867   SELECT SUM ( - 29 ) col2, COUNT ( * ) AS col2 FROM tab2
 56797  56868   ----
 56798  56869   -87
 56799  56870   3
 56800  56871   
 56801  56872   query I rowsort
................................................................................
 56853  56924   query I rowsort
 56854  56925   SELECT - 19 - - 48 FROM tab1
 56855  56926   ----
 56856  56927   29
 56857  56928   29
 56858  56929   29
 56859  56930   
        56931  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56860  56932   query II rowsort
 56861  56933   SELECT DISTINCT col0 col2, + 43 - + - col0 FROM tab1
 56862  56934   ----
 56863  56935   51
 56864  56936   94
 56865  56937   85
 56866  56938   128
................................................................................
 57207  57279   96
 57208  57280   0
 57209  57281   59
 57210  57282   0
 57211  57283   68
 57212  57284   
 57213  57285   skipif mysql # not compatible
        57286  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57214  57287   query II rowsort label-6297
 57215  57288   SELECT DISTINCT + col2 / - col0 col0, col2 AS col1 FROM tab1
 57216  57289   ----
 57217  57290   -1
 57218  57291   96
 57219  57292   0
 57220  57293   59
................................................................................
 57602  57675   46
 57603  57676   -8
 57604  57677   64
 57605  57678   -8
 57606  57679   75
 57607  57680   -8
 57608  57681   
        57682  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57609  57683   query II rowsort
 57610  57684   SELECT col2 col1, + 31 AS col0 FROM tab0
 57611  57685   ----
 57612  57686   10
 57613  57687   31
 57614  57688   47
 57615  57689   31
................................................................................
 58200  58274   ----
 58201  58275   0
 58202  58276   
 58203  58277   query I rowsort
 58204  58278   SELECT DISTINCT - 58 AS col2 FROM tab1 WHERE NOT col0 - - ( col2 ) IS NOT NULL
 58205  58279   ----
 58206  58280   
        58281  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58207  58282   query II rowsort
 58208  58283   SELECT 9 * + col1 col2, + col1 AS col1 FROM tab1
 58209  58284   ----
 58210  58285   126
 58211  58286   14
 58212  58287   423
 58213  58288   47
................................................................................
 59471  59546   -62
 59472  59547   
 59473  59548   query I rowsort
 59474  59549   SELECT DISTINCT - - ( 61 ) AS col2 FROM tab0 WHERE - 7 + - 74 * + - col1 * - 93 IS NOT NULL
 59475  59550   ----
 59476  59551   61
 59477  59552   
        59553  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59478  59554   query II rowsort
 59479  59555   SELECT - col0 col0, - col0 FROM tab0
 59480  59556   ----
 59481  59557   -15
 59482  59558   -15
 59483  59559   -87
 59484  59560   -87
................................................................................
 61497  61573   85
 61498  61574   91
 61499  61575   
 61500  61576   query III rowsort
 61501  61577   SELECT * FROM tab2 WHERE - - 55 IS NULL
 61502  61578   ----
 61503  61579   
        61580  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61504  61581   query II rowsort
 61505  61582   SELECT ALL 12 col2, - col1 AS col1 FROM tab0
 61506  61583   ----
 61507  61584   12
 61508  61585   -1
 61509  61586   12
 61510  61587   -21
................................................................................
 62619  62696   
 62620  62697   skipif mysql # not compatible
 62621  62698   query I rowsort label-6884
 62622  62699   SELECT COUNT ( * ) + + - 2 * - 1 FROM tab2
 62623  62700   ----
 62624  62701   5
 62625  62702   
        62703  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 62626  62704   query II rowsort
 62627  62705   SELECT + 13 col0, 25 * + col0 AS col2 FROM tab1
 62628  62706   ----
 62629  62707   13
 62630  62708   1275
 62631  62709   13
 62632  62710   2125
................................................................................
 68014  68092   query II rowsort label-7466
 68015  68093   SELECT - COUNT( col1 ) col1, 53 AS col1 FROM tab0
 68016  68094   ----
 68017  68095   -3
 68018  68096   53
 68019  68097   
 68020  68098   skipif mysql # not compatible
        68099  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68021  68100   query II rowsort label-7466
 68022  68101   SELECT - COUNT ( col1 ) col1, 53 AS col1 FROM tab0
 68023  68102   ----
 68024  68103   -3
 68025  68104   53
 68026  68105   
 68027  68106   query I rowsort
................................................................................
 69814  69893   query I rowsort
 69815  69894   SELECT ALL - 95 col0 FROM tab2 AS cor0
 69816  69895   ----
 69817  69896   -95
 69818  69897   -95
 69819  69898   -95
 69820  69899   
        69900  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69821  69901   query II rowsort
 69822  69902   SELECT + col1 col2, - col0 FROM tab1
 69823  69903   ----
 69824  69904   14
 69825  69905   -51
 69826  69906   47
 69827  69907   -91
................................................................................
 69999  70079   query I rowsort
 70000  70080   SELECT - col1 FROM tab1 WHERE NULL IS NULL
 70001  70081   ----
 70002  70082   -14
 70003  70083   -47
 70004  70084   -5
 70005  70085   
        70086  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 70006  70087   query II rowsort
 70007  70088   SELECT + col1 - + col0 col0, col1 AS col2 FROM tab0 AS cor0
 70008  70089   ----
 70009  70090   -66
 70010  70091   21
 70011  70092   -96
 70012  70093   1
................................................................................
 70727  70808   71
 70728  70809   -50
 70729  70810   71
 70730  70811   -50
 70731  70812   71
 70732  70813   
 70733  70814   skipif mysql # not compatible
        70815  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 70734  70816   query II rowsort label-7771
 70735  70817   SELECT - + 50 col2, 71 + 16 / + 24 * col1 FROM tab2 AS cor0
 70736  70818   ----
 70737  70819   -50
 70738  70820   71
 70739  70821   -50
 70740  70822   71
................................................................................
 71284  71366   query II rowsort label-7831
 71285  71367   SELECT DISTINCT + COUNT( * ) col2, + ( + 59 ) FROM tab0
 71286  71368   ----
 71287  71369   3
 71288  71370   59
 71289  71371   
 71290  71372   skipif mysql # not compatible
        71373  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71291  71374   query II rowsort label-7831
 71292  71375   SELECT DISTINCT + COUNT ( * ) col2, + ( + 59 ) FROM tab0
 71293  71376   ----
 71294  71377   3
 71295  71378   59
 71296  71379   
 71297  71380   query I rowsort
................................................................................
 71790  71873   query I rowsort
 71791  71874   SELECT ALL + col0 * + + ( + + col2 ) AS col0 FROM tab2 AS cor0
 71792  71875   ----
 71793  71876   1058
 71794  71877   2560
 71795  71878   4350
 71796  71879   
        71880  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71797  71881   query II rowsort
 71798  71882   SELECT DISTINCT + - col1 col0, col2 FROM tab0 AS cor0
 71799  71883   ----
 71800  71884   -1
 71801  71885   99
 71802  71886   -21
 71803  71887   10
................................................................................
 72791  72875   query II rowsort label-7998
 72792  72876   SELECT 66 col0, SUM( + + CAST( - - col2 AS SIGNED ) ) - - 21 FROM tab1 cor0
 72793  72877   ----
 72794  72878   66
 72795  72879   244
 72796  72880   
 72797  72881   skipif mysql # not compatible
        72882  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72798  72883   query II rowsort label-7998
 72799  72884   SELECT 66 col0, SUM ( + + CAST ( - - col2 AS INTEGER ) ) - - 21 FROM tab1 cor0
 72800  72885   ----
 72801  72886   66
 72802  72887   244
 72803  72888   
 72804  72889   query I rowsort
................................................................................
 74330  74415   3807
 74331  74416   99
 74332  74417   
 74333  74418   query III rowsort
 74334  74419   SELECT ALL * FROM tab0 WHERE 21 BETWEEN ( + col0 ) AND ( NULL )
 74335  74420   ----
 74336  74421   
        74422  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74337  74423   query II rowsort
 74338  74424   SELECT + 16 col2, 18 + - + col2 FROM tab0
 74339  74425   ----
 74340  74426   16
 74341  74427   -29
 74342  74428   16
 74343  74429   -81
................................................................................
 74738  74824   onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
 74739  74825   query III rowsort label-8224
 74740  74826   SELECT + - col1 / CAST( NULL AS SIGNED ) col0, + 69 + + ( + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) ) + - col1 - col2, + col0 * - - col2 AS col0 FROM tab2 AS cor0
 74741  74827   ----
 74742  74828   9 values hashing to c3f211610c274e6733018ea0b4811969
 74743  74829   
 74744  74830   skipif mysql # not compatible
        74831  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74745  74832   query III rowsort label-8224
 74746  74833   SELECT + - col1 / CAST ( NULL AS INTEGER ) col0, + 69 + + ( + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) ) + - col1 - col2, + col0 * - - col2 AS col0 FROM tab2 AS cor0
 74747  74834   ----
 74748  74835   9 values hashing to c3f211610c274e6733018ea0b4811969
 74749  74836   
 74750  74837   onlyif mysql # CAST syntax: SIGNED type: 
 74751  74838   query I rowsort label-8225
................................................................................
 77302  77389   query II rowsort label-8503
 77303  77390   SELECT DISTINCT 84 col0, SUM( ALL - 7 ) AS col2 FROM tab0, tab1 AS cor0
 77304  77391   ----
 77305  77392   84
 77306  77393   -63
 77307  77394   
 77308  77395   skipif mysql # not compatible
        77396  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 77309  77397   query II rowsort label-8503
 77310  77398   SELECT DISTINCT 84 col0, SUM ( ALL - 7 ) AS col2 FROM tab0, tab1 AS cor0
 77311  77399   ----
 77312  77400   84
 77313  77401   -63
 77314  77402   
 77315  77403   onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
 79103  79191   query II rowsort label-8703
 79104  79192   SELECT DISTINCT - CAST( - 61 AS SIGNED ) * + CAST( NULL AS SIGNED ) / SUM( ALL col0 ) / + 73 col0, 50 FROM tab0 AS cor0 WHERE NULL IS NULL
 79105  79193   ----
 79106  79194   NULL
 79107  79195   50
 79108  79196   
 79109  79197   skipif mysql # not compatible
        79198  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79110  79199   query II rowsort label-8703
 79111  79200   SELECT DISTINCT - CAST ( - 61 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / SUM ( ALL col0 ) / + 73 col0, 50 FROM tab0 AS cor0 WHERE NULL IS NULL
 79112  79201   ----
 79113  79202   NULL
 79114  79203   50
 79115  79204   
 79116  79205   onlyif mysql # aggregate syntax: 
................................................................................
 79260  79349   query I rowsort
 79261  79350   SELECT ALL 46 * + col2 + + 48 AS col1 FROM tab2 AS cor0
 79262  79351   ----
 79263  79352   1106
 79264  79353   1888
 79265  79354   2716
 79266  79355   
        79356  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79267  79357   query II rowsort
 79268  79358   SELECT col0 col0, 32 * - 6 AS col2 FROM tab2 AS cor0
 79269  79359   ----
 79270  79360   46
 79271  79361   -192
 79272  79362   64
 79273  79363   -192
................................................................................
 79573  79663   
 79574  79664   skipif mysql # not compatible
 79575  79665   query I rowsort label-8750
 79576  79666   SELECT DISTINCT - 30 / - col0 + - ( + 55 ) AS col0 FROM tab1 AS cor0
 79577  79667   ----
 79578  79668   -55
 79579  79669   
        79670  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79580  79671   query II rowsort
 79581  79672   SELECT - 31 col1, col0 * 85 AS col1 FROM tab2 AS cor0
 79582  79673   ----
 79583  79674   -31
 79584  79675   3910
 79585  79676   -31
 79586  79677   5440
................................................................................
 79738  79829   ----
 79739  79830   -3
 79740  79831   
 79741  79832   query III rowsort
 79742  79833   SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN 50 + ( - - col0 ) AND + - col2
 79743  79834   ----
 79744  79835   
        79836  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79745  79837   query II rowsort
 79746  79838   SELECT 52 col2, 75 FROM tab0
 79747  79839   ----
 79748  79840   52
 79749  79841   75
 79750  79842   52
 79751  79843   75
................................................................................
 79892  79984   -15
 79893  79985   NULL
 79894  79986   -87
 79895  79987   NULL
 79896  79988   -97
 79897  79989   
 79898  79990   skipif mysql # not compatible
        79991  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79899  79992   query II rowsort label-8785
 79900  79993   SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 col1, ( - col0 ) AS col0 FROM tab0 AS cor0
 79901  79994   ----
 79902  79995   NULL
 79903  79996   -15
 79904  79997   NULL
 79905  79998   -87
................................................................................
 80888  80981   -54
 80889  80982   -23
 80890  80983   -54
 80891  80984   -40
 80892  80985   -54
 80893  80986   -58
 80894  80987   
        80988  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80895  80989   query II rowsort
 80896  80990   SELECT DISTINCT - col2 col1, + 5 * 81 - - col0 + + + col2 FROM tab1 AS cor0
 80897  80991   ----
 80898  80992   -59
 80899  80993   549
 80900  80994   -68
 80901  80995   564
................................................................................
 81045  81139   query II rowsort label-8909
 81046  81140   SELECT ALL + ( - 32 ) col2, CAST( + + COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2
 81047  81141   ----
 81048  81142   -32
 81049  81143   9
 81050  81144   
 81051  81145   skipif mysql # not compatible
        81146  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81052  81147   query II rowsort label-8909
 81053  81148   SELECT ALL + ( - 32 ) col2, CAST ( + + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2
 81054  81149   ----
 81055  81150   -32
 81056  81151   9
 81057  81152   
 81058  81153   query I rowsort
................................................................................
 81812  81907   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 81813  81908   
 81814  81909   query I rowsort
 81815  81910   SELECT DISTINCT 76 * + + 33 FROM tab1 AS cor0
 81816  81911   ----
 81817  81912   2508
 81818  81913   
        81914  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81819  81915   query II rowsort
 81820  81916   SELECT - 45 col0, + col1 AS col0 FROM tab1
 81821  81917   ----
 81822  81918   -45
 81823  81919   14
 81824  81920   -45
 81825  81921   47
................................................................................
 82908  83004   
 82909  83005   skipif mysql # not compatible
 82910  83006   query I rowsort label-9127
 82911  83007   SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 80 <= ( + col2 )
 82912  83008   ----
 82913  83009   4
 82914  83010   
        83011  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82915  83012   query II rowsort
 82916  83013   SELECT ALL col1 col2, - 85 FROM tab2
 82917  83014   ----
 82918  83015   51
 82919  83016   -85
 82920  83017   67
 82921  83018   -85
................................................................................
 82994  83091   -23
 82995  83092   -51
 82996  83093   
 82997  83094   query III rowsort
 82998  83095   SELECT * FROM tab1 WHERE + 10 + + 40 IS NULL
 82999  83096   ----
 83000  83097   
        83098  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83001  83099   query II rowsort
 83002  83100   SELECT - - col2 + - 40 + + col2 * - col1 col0, col0 FROM tab2 AS cor0
 83003  83101   ----
 83004  83102   -1190
 83005  83103   46
 83006  83104   -3080
 83007  83105   64
................................................................................
 83201  83299   onlyif mysql # CAST syntax: SIGNED type: 
 83202  83300   query III rowsort label-9162
 83203  83301   SELECT 98, col0 * - col2 * + - CAST( + ( + col1 ) AS SIGNED ) col0, + + col0 AS col1 FROM tab2
 83204  83302   ----
 83205  83303   9 values hashing to cca75a93a37b6e8f63cc817dbab7d0f6
 83206  83304   
 83207  83305   skipif mysql # not compatible
        83306  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83208  83307   query III rowsort label-9162
 83209  83308   SELECT 98, col0 * - col2 * + - CAST ( + ( + col1 ) AS INTEGER ) col0, + + col0 AS col1 FROM tab2
 83210  83309   ----
 83211  83310   9 values hashing to cca75a93a37b6e8f63cc817dbab7d0f6
 83212  83311   
 83213  83312   query III rowsort
 83214  83313   SELECT * FROM tab2 WHERE NOT ( + - col1 * col0 / 34 * + col0 ) IS NOT NULL
................................................................................
 84033  84132   query I rowsort
 84034  84133   SELECT - col2 * - + col2 AS col0 FROM tab1 AS cor0
 84035  84134   ----
 84036  84135   3481
 84037  84136   4624
 84038  84137   9216
 84039  84138   
        84139  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 84040  84140   query II rowsort
 84041  84141   SELECT + col0 * - 51 col2, + col0 AS col1 FROM tab0 AS cor0
 84042  84142   ----
 84043  84143   -4437
 84044  84144   87
 84045  84145   -4947
 84046  84146   97
................................................................................
 85179  85279   query II rowsort label-9390
 85180  85280   SELECT DISTINCT - - 93 col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
 85181  85281   ----
 85182  85282   93
 85183  85283   -3
 85184  85284   
 85185  85285   skipif mysql # not compatible
        85286  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85186  85287   query II rowsort label-9390
 85187  85288   SELECT DISTINCT - - 93 col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
 85188  85289   ----
 85189  85290   93
 85190  85291   -3
 85191  85292   
 85192  85293   query I rowsort
................................................................................
 85320  85421   query I rowsort
 85321  85422   SELECT - - 93 col2 FROM tab1 AS cor0
 85322  85423   ----
 85323  85424   93
 85324  85425   93
 85325  85426   93
 85326  85427   
        85428  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85327  85429   query II rowsort
 85328  85430   SELECT DISTINCT + col2 col2, col1 * + ( - col0 ) FROM tab1 AS cor0
 85329  85431   ----
 85330  85432   59
 85331  85433   -425
 85332  85434   68
 85333  85435   -4277
................................................................................
 86875  86977   
 86876  86978   skipif mysql # not compatible
 86877  86979   query I rowsort label-9578
 86878  86980   SELECT + - COUNT ( DISTINCT + 70 ) FROM tab2 AS cor0
 86879  86981   ----
 86880  86982   -1
 86881  86983   
        86984  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86882  86985   query II rowsort
 86883  86986   SELECT DISTINCT - col2 col1, col1 FROM tab1 AS cor0
 86884  86987   ----
 86885  86988   -59
 86886  86989   5
 86887  86990   -68
 86888  86991   47
................................................................................
 87912  88015   6
 87913  88016   1
 87914  88017   6
 87915  88018   21
 87916  88019   6
 87917  88020   81
 87918  88021   
        88022  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 87919  88023   query II rowsort
 87920  88024   SELECT ALL col2 col2, col0 FROM tab2
 87921  88025   ----
 87922  88026   23
 87923  88027   46
 87924  88028   40
 87925  88029   64
................................................................................
 88150  88254   query II rowsort label-9717
 88151  88255   SELECT + COUNT( * ) col0, COUNT( * ) FROM tab0
 88152  88256   ----
 88153  88257   3
 88154  88258   3
 88155  88259   
 88156  88260   skipif mysql # not compatible
        88261  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 88157  88262   query II rowsort label-9717
 88158  88263   SELECT + COUNT ( * ) col0, COUNT ( * ) FROM tab0
 88159  88264   ----
 88160  88265   3
 88161  88266   3
 88162  88267   
 88163  88268   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 88444  88549   query II rowsort label-9750
 88445  88550   SELECT ALL + 46 col2, COUNT( * ) AS col0 FROM tab1 AS cor0
 88446  88551   ----
 88447  88552   46
 88448  88553   3
 88449  88554   
 88450  88555   skipif mysql # not compatible
        88556  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 88451  88557   query II rowsort label-9750
 88452  88558   SELECT ALL + 46 col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
 88453  88559   ----
 88454  88560   46
 88455  88561   3
 88456  88562   
 88457  88563   query I rowsort
................................................................................
 89112  89218   query II rowsort label-9828
 89113  89219   SELECT COUNT( * ) - CAST( NULL AS SIGNED ) col0, - COUNT( * ) AS col1 FROM tab0
 89114  89220   ----
 89115  89221   NULL
 89116  89222   -3
 89117  89223   
 89118  89224   skipif mysql # not compatible
        89225  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89119  89226   query II rowsort label-9828
 89120  89227   SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col1 FROM tab0
 89121  89228   ----
 89122  89229   NULL
 89123  89230   -3
 89124  89231   
 89125  89232   query I rowsort
................................................................................
 89578  89685   query II rowsort label-9875
 89579  89686   SELECT DISTINCT COUNT( * ) col2, COUNT( * ) FROM tab0
 89580  89687   ----
 89581  89688   3
 89582  89689   3
 89583  89690   
 89584  89691   skipif mysql # not compatible
        89692  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89585  89693   query II rowsort label-9875
 89586  89694   SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) FROM tab0
 89587  89695   ----
 89588  89696   3
 89589  89697   3
 89590  89698   
 89591  89699   query III rowsort
................................................................................
 89787  89895   query I rowsort
 89788  89896   SELECT DISTINCT - col0 + + - col1 AS col2 FROM tab2 AS cor0
 89789  89897   ----
 89790  89898   -141
 89791  89899   -142
 89792  89900   -97
 89793  89901   
        89902  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89794  89903   query II rowsort
 89795  89904   SELECT DISTINCT col0 * - 82 col1, + 0 FROM tab2
 89796  89905   ----
 89797  89906   -3772
 89798  89907   0
 89799  89908   -5248
 89800  89909   0

Changes to test/random/aggregates/slt_good_1.test.

  1825   1825   query II rowsort label-214
  1826   1826   SELECT DISTINCT COUNT( * ) col2, - 81 * 68 * - 18 FROM tab1
  1827   1827   ----
  1828   1828   3
  1829   1829   99144
  1830   1830   
  1831   1831   skipif mysql # not compatible
         1832  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  1832   1833   query II rowsort label-214
  1833   1834   SELECT DISTINCT COUNT ( * ) col2, - 81 * 68 * - 18 FROM tab1
  1834   1835   ----
  1835   1836   3
  1836   1837   99144
  1837   1838   
  1838   1839   query I rowsort
................................................................................
  2848   2849   SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( + 18 ) + + 37
  2849   2850   ----
  2850   2851   
  2851   2852   query III rowsort
  2852   2853   SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + ( + - col0 ) * - 65 * + + col2 IS NOT NULL ) )
  2853   2854   ----
  2854   2855   
         2856  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2855   2857   query II rowsort
  2856   2858   SELECT ALL - 83 + + 77 col1, + col2 AS col0 FROM tab0 AS cor0
  2857   2859   ----
  2858   2860   -6
  2859   2861   10
  2860   2862   -6
  2861   2863   47
................................................................................
  4713   4715   query II rowsort label-529
  4714   4716   SELECT + 88 col2, + COUNT( * ) FROM tab0
  4715   4717   ----
  4716   4718   88
  4717   4719   3
  4718   4720   
  4719   4721   skipif mysql # not compatible
         4722  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  4720   4723   query II rowsort label-529
  4721   4724   SELECT + 88 col2, + COUNT ( * ) FROM tab0
  4722   4725   ----
  4723   4726   88
  4724   4727   3
  4725   4728   
  4726   4729   query III rowsort
................................................................................
  5321   5324   query I rowsort
  5322   5325   SELECT DISTINCT - col2 * + col0 * - 9 * - - 55 AS col2 FROM tab0 AS cor0
  5323   5326   ----
  5324   5327   348975
  5325   5328   430650
  5326   5329   4753485
  5327   5330   
         5331  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5328   5332   query II rowsort
  5329   5333   SELECT + - col0 col0, + col0 + + + ( - + col1 ) AS col0 FROM tab2 AS cor0
  5330   5334   ----
  5331   5335   -46
  5332   5336   -5
  5333   5337   -64
  5334   5338   -13
................................................................................
  8854   8858   query I rowsort
  8855   8859   SELECT ALL + 51 * + + 20 AS col1 FROM tab1
  8856   8860   ----
  8857   8861   1020
  8858   8862   1020
  8859   8863   1020
  8860   8864   
         8865  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  8861   8866   query II rowsort
  8862   8867   SELECT + col1 + col0 col1, - col2 AS col0 FROM tab0
  8863   8868   ----
  8864   8869   108
  8865   8870   -10
  8866   8871   96
  8867   8872   -47
................................................................................
  9812   9817   
  9813   9818   skipif mysql # not compatible
  9814   9819   query I rowsort label-1085
  9815   9820   SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0
  9816   9821   ----
  9817   9822   3
  9818   9823   
         9824  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9819   9825   query II rowsort
  9820   9826   SELECT DISTINCT 36 col0, ( - 11 ) FROM tab0 AS cor0
  9821   9827   ----
  9822   9828   36
  9823   9829   -11
  9824   9830   
  9825   9831   query I rowsort
................................................................................
 10257  10263   81
 10258  10264   
 10259  10265   query I rowsort
 10260  10266   SELECT DISTINCT 18 * - 53 FROM tab1
 10261  10267   ----
 10262  10268   -954
 10263  10269   
        10270  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 10264  10271   query II rowsort
 10265  10272   SELECT col0 col1, + 59 AS col2 FROM tab2
 10266  10273   ----
 10267  10274   46
 10268  10275   59
 10269  10276   64
 10270  10277   59
................................................................................
 10639  10646   -6
 10640  10647   
 10641  10648   query I rowsort
 10642  10649   SELECT + 47 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
 10643  10650   ----
 10644  10651   9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
 10645  10652   
        10653  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 10646  10654   query II rowsort
 10647  10655   SELECT DISTINCT col0 col1, + 53 AS col0 FROM tab0 AS cor0
 10648  10656   ----
 10649  10657   15
 10650  10658   53
 10651  10659   87
 10652  10660   53
................................................................................
 11398  11406   query II rowsort label-1253
 11399  11407   SELECT + COUNT( * ) col1, + 78 FROM tab0 AS cor0
 11400  11408   ----
 11401  11409   3
 11402  11410   78
 11403  11411   
 11404  11412   skipif mysql # not compatible
        11413  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11405  11414   query II rowsort label-1253
 11406  11415   SELECT + COUNT ( * ) col1, + 78 FROM tab0 AS cor0
 11407  11416   ----
 11408  11417   3
 11409  11418   78
 11410  11419   
 11411  11420   onlyif mysql # aggregate syntax: 
................................................................................
 12396  12405   query II rowsort label-1372
 12397  12406   SELECT ALL + ( COUNT( * ) ) col1, + 73 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
 12398  12407   ----
 12399  12408   0
 12400  12409   73
 12401  12410   
 12402  12411   skipif mysql # not compatible
        12412  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12403  12413   query II rowsort label-1372
 12404  12414   SELECT ALL + ( COUNT ( * ) ) col1, + 73 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
 12405  12415   ----
 12406  12416   0
 12407  12417   73
 12408  12418   
 12409  12419   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 13394  13404   
 13395  13405   skipif mysql # not compatible
 13396  13406   query I rowsort label-1485
 13397  13407   SELECT + COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
 13398  13408   ----
 13399  13409   3
 13400  13410   
        13411  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13401  13412   query II rowsort
 13402  13413   SELECT 19 col0, col1 + - 20 AS col0 FROM tab0
 13403  13414   ----
 13404  13415   19
 13405  13416   -19
 13406  13417   19
 13407  13418   1
................................................................................
 15333  15344   51
 15334  15345   96
 15335  15346   85
 15336  15347   59
 15337  15348   91
 15338  15349   68
 15339  15350   
        15351  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15340  15352   query II rowsort
 15341  15353   SELECT ALL col2 col1, 35 AS col2 FROM tab0 AS cor0
 15342  15354   ----
 15343  15355   10
 15344  15356   35
 15345  15357   47
 15346  15358   35
................................................................................
 15468  15480   query I rowsort label-1703
 15469  15481   SELECT DISTINCT - col1 * - 87 * - CAST ( 88 AS INTEGER ) AS col1 FROM tab0 AS cor0
 15470  15482   ----
 15471  15483   -160776
 15472  15484   -620136
 15473  15485   -7656
 15474  15486   
        15487  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15475  15488   query II rowsort
 15476  15489   SELECT DISTINCT - + col1 col2, + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
 15477  15490   ----
 15478  15491   
 15479  15492   query III rowsort
 15480  15493   SELECT * FROM tab0 WHERE col1 < + + col2
 15481  15494   ----
................................................................................
 16438  16451   44
 16439  16452   49
 16440  16453   
 16441  16454   query III rowsort
 16442  16455   SELECT * FROM tab0 AS cor0 WHERE NULL = - col2
 16443  16456   ----
 16444  16457   
        16458  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16445  16459   query II rowsort
 16446  16460   SELECT - col1 col1, + 21 * 0 AS col2 FROM tab2 AS cor0
 16447  16461   ----
 16448  16462   -51
 16449  16463   0
 16450  16464   -67
 16451  16465   0
................................................................................
 18563  18577   query I rowsort
 18564  18578   SELECT ALL 80 - - + 90 AS col1 FROM tab0 AS cor0
 18565  18579   ----
 18566  18580   170
 18567  18581   170
 18568  18582   170
 18569  18583   
        18584  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 18570  18585   query II rowsort
 18571  18586   SELECT - col0 + + 1 col2, + 75 FROM tab0 cor0
 18572  18587   ----
 18573  18588   -14
 18574  18589   75
 18575  18590   -86
 18576  18591   75
................................................................................
 20061  20076   -3478
 20062  20077   
 20063  20078   query III rowsort
 20064  20079   SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IS NULL
 20065  20080   ----
 20066  20081   9 values hashing to c4b42765dff94eaaa46040e537fb43b7
 20067  20082   
        20083  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20068  20084   query II rowsort
 20069  20085   SELECT + col0 col1, - col1 + + 67 + - + col2 * + - col1 FROM tab2 AS cor0
 20070  20086   ----
 20071  20087   46
 20072  20088   1189
 20073  20089   64
 20074  20090   3070
................................................................................
 20212  20228   ----
 20213  20229   95
 20214  20230   
 20215  20231   query III rowsort
 20216  20232   SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + col1 * + col1
 20217  20233   ----
 20218  20234   
        20235  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20219  20236   query II rowsort
 20220  20237   SELECT DISTINCT 74 col2, + col2 + col0 AS col2 FROM tab1
 20221  20238   ----
 20222  20239   74
 20223  20240   144
 20224  20241   74
 20225  20242   147
................................................................................
 25314  25331   ----
 25315  25332   -89
 25316  25333   
 25317  25334   query III rowsort
 25318  25335   SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= NULL
 25319  25336   ----
 25320  25337   
        25338  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25321  25339   query II rowsort
 25322  25340   SELECT 0 * + - col2 col2, col2 FROM tab2 AS cor0
 25323  25341   ----
 25324  25342   0
 25325  25343   23
 25326  25344   0
 25327  25345   40
................................................................................
 25551  25569   10
 25552  25570   59
 25553  25571   10
 25554  25572   68
 25555  25573   10
 25556  25574   96
 25557  25575   
        25576  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25558  25577   query II rowsort
 25559  25578   SELECT ALL - col1 col1, 75 FROM tab0 AS cor0
 25560  25579   ----
 25561  25580   -1
 25562  25581   75
 25563  25582   -21
 25564  25583   75
................................................................................
 26496  26515   -446
 26497  26516   85
 26498  26517   -446
 26499  26518   91
 26500  26519   -446
 26501  26520   
 26502  26521   skipif mysql # not compatible
        26522  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 26503  26523   query II rowsort label-2914
 26504  26524   SELECT + col0 + + - 39 / + col2 col2, ( col0 ) / - col0 + 5 * - 97 + + 40 AS col2 FROM tab1 AS cor0
 26505  26525   ----
 26506  26526   51
 26507  26527   -446
 26508  26528   85
 26509  26529   -446
................................................................................
 27851  27871   0
 27852  27872   0
 27853  27873   0
 27854  27874   0
 27855  27875   0
 27856  27876   
 27857  27877   skipif mysql # not compatible
        27878  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27858  27879   query II rowsort label-3065
 27859  27880   SELECT - 4 / + - 8 col2, + col1 / + col2 FROM tab1
 27860  27881   ----
 27861  27882   0
 27862  27883   0
 27863  27884   0
 27864  27885   0
................................................................................
 30548  30569   15
 30549  30570   NULL
 30550  30571   87
 30551  30572   NULL
 30552  30573   97
 30553  30574   
 30554  30575   skipif mysql # not compatible
        30576  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30555  30577   query II rowsort label-3364
 30556  30578   SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - - 40 col0, col0 FROM tab0 cor0
 30557  30579   ----
 30558  30580   NULL
 30559  30581   15
 30560  30582   NULL
 30561  30583   87
................................................................................
 31298  31320   
 31299  31321   skipif mysql # not compatible
 31300  31322   query I rowsort label-3440
 31301  31323   SELECT ALL + SUM ( + col1 ) AS col0 FROM tab0
 31302  31324   ----
 31303  31325   103
 31304  31326   
        31327  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 31305  31328   query II rowsort
 31306  31329   SELECT DISTINCT - col1 col0, - col0 AS col2 FROM tab2
 31307  31330   ----
 31308  31331   -51
 31309  31332   -46
 31310  31333   -67
 31311  31334   -75
................................................................................
 33382  33405   51
 33383  33406   -79
 33384  33407   67
 33385  33408   -95
 33386  33409   77
 33387  33410   -105
 33388  33411   
        33412  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33389  33413   query II rowsort
 33390  33414   SELECT ALL - ( col1 ) col0, - col0 FROM tab2 AS cor0
 33391  33415   ----
 33392  33416   -51
 33393  33417   -46
 33394  33418   -67
 33395  33419   -75
................................................................................
 33443  33467   query II rowsort label-3670
 33444  33468   SELECT MIN( - + col0 ) col1, COUNT( * ) AS col1 FROM tab1 AS cor0
 33445  33469   ----
 33446  33470   -91
 33447  33471   3
 33448  33472   
 33449  33473   skipif mysql # not compatible
        33474  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33450  33475   query II rowsort label-3670
 33451  33476   SELECT MIN ( - + col0 ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
 33452  33477   ----
 33453  33478   -91
 33454  33479   3
 33455  33480   
 33456  33481   onlyif mysql # aggregate syntax: 
................................................................................
 33987  34012   query I rowsort
 33988  34013   SELECT + - 66 col0 FROM tab2 WHERE + + 15 IS NOT NULL
 33989  34014   ----
 33990  34015   -66
 33991  34016   -66
 33992  34017   -66
 33993  34018   
        34019  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33994  34020   query II rowsort
 33995  34021   SELECT ( + 4 ) col1, col2 FROM tab0
 33996  34022   ----
 33997  34023   4
 33998  34024   10
 33999  34025   4
 34000  34026   47
................................................................................
 34142  34168   -74
 34143  34169   47
 34144  34170   -74
 34145  34171   99
 34146  34172   -74
 34147  34173   
 34148  34174   skipif mysql # not compatible
        34175  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34149  34176   query II rowsort label-3749
 34150  34177   SELECT CAST ( + col2 AS INTEGER ) col2, 9 + - 83 FROM tab0
 34151  34178   ----
 34152  34179   10
 34153  34180   -74
 34154  34181   47
 34155  34182   -74
................................................................................
 36030  36057   query II rowsort label-3955
 36031  36058   SELECT - COUNT( * ) col0, 66 FROM tab2 AS cor0
 36032  36059   ----
 36033  36060   -3
 36034  36061   66
 36035  36062   
 36036  36063   skipif mysql # not compatible
        36064  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 36037  36065   query II rowsort label-3955
 36038  36066   SELECT - COUNT ( * ) col0, 66 FROM tab2 AS cor0
 36039  36067   ----
 36040  36068   -3
 36041  36069   66
 36042  36070   
 36043  36071   query II rowsort
................................................................................
 36122  36150   query II rowsort label-3964
 36123  36151   SELECT DISTINCT + + 50 col2, + MIN( - + ( - 18 ) ) DIV SUM( DISTINCT 42 ) AS col0 FROM tab2 AS cor0
 36124  36152   ----
 36125  36153   50
 36126  36154   0
 36127  36155   
 36128  36156   skipif mysql # not compatible
        36157  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 36129  36158   query II rowsort label-3964
 36130  36159   SELECT DISTINCT + + 50 col2, + MIN ( - + ( - 18 ) ) / SUM ( DISTINCT 42 ) AS col0 FROM tab2 AS cor0
 36131  36160   ----
 36132  36161   50
 36133  36162   0
 36134  36163   
 36135  36164   onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
 37394  37423   
 37395  37424   skipif mysql # not compatible
 37396  37425   query I rowsort label-4093
 37397  37426   SELECT ALL - SUM ( + 52 ) * - COUNT ( * ) AS col0 FROM tab1
 37398  37427   ----
 37399  37428   468
 37400  37429   
        37430  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37401  37431   query II rowsort
 37402  37432   SELECT DISTINCT - col2 col1, 92 AS col1 FROM tab0
 37403  37433   ----
 37404  37434   -10
 37405  37435   92
 37406  37436   -47
 37407  37437   92
................................................................................
 38688  38718   NULL
 38689  38719   -1352
 38690  38720   
 38691  38721   query I rowsort
 38692  38722   SELECT col2 * + 17 FROM tab1 AS cor0 WHERE NOT 54 NOT BETWEEN col1 * + col1 + 90 AND + 45 + + + col1 * - col0
 38693  38723   ----
 38694  38724   
        38725  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38695  38726   query II rowsort
 38696  38727   SELECT - col1 col2, - col1 FROM tab1 AS cor0
 38697  38728   ----
 38698  38729   -14
 38699  38730   -14
 38700  38731   -47
 38701  38732   -47
................................................................................
 40616  40647   query II rowsort label-4443
 40617  40648   SELECT COUNT( * ) col1, + COUNT( 7 ) + - 50 FROM tab0
 40618  40649   ----
 40619  40650   3
 40620  40651   -47
 40621  40652   
 40622  40653   skipif mysql # not compatible
        40654  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 40623  40655   query II rowsort label-4443
 40624  40656   SELECT COUNT ( * ) col1, + COUNT ( 7 ) + - 50 FROM tab0
 40625  40657   ----
 40626  40658   3
 40627  40659   -47
 40628  40660   
 40629  40661   query I rowsort
................................................................................
 40801  40833   query II rowsort label-4464
 40802  40834   SELECT DISTINCT 69 col2, + MAX( DISTINCT + + col1 ) FROM tab2
 40803  40835   ----
 40804  40836   69
 40805  40837   77
 40806  40838   
 40807  40839   skipif mysql # not compatible
        40840  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 40808  40841   query II rowsort label-4464
 40809  40842   SELECT DISTINCT 69 col2, + MAX ( DISTINCT + + col1 ) FROM tab2
 40810  40843   ----
 40811  40844   69
 40812  40845   77
 40813  40846   
 40814  40847   query I rowsort
................................................................................
 43768  43801   NULL
 43769  43802   47
 43770  43803   NULL
 43771  43804   99
 43772  43805   NULL
 43773  43806   
 43774  43807   skipif mysql # not compatible
        43808  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43775  43809   query II rowsort label-4794
 43776  43810   SELECT ALL - - col2 col2, CAST ( NULL AS INTEGER ) * + - 42 FROM tab0 AS cor0
 43777  43811   ----
 43778  43812   10
 43779  43813   NULL
 43780  43814   47
 43781  43815   NULL
................................................................................
 45465  45499   NULL
 45466  45500   23
 45467  45501   NULL
 45468  45502   24
 45469  45503   NULL
 45470  45504   
 45471  45505   skipif mysql # not compatible
        45506  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45472  45507   query II rowsort label-4974
 45473  45508   SELECT DISTINCT + col0 - + col2 col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
 45474  45509   ----
 45475  45510   17
 45476  45511   NULL
 45477  45512   23
 45478  45513   NULL
................................................................................
 46040  46075   NULL
 46041  46076   47
 46042  46077   NULL
 46043  46078   99
 46044  46079   NULL
 46045  46080   
 46046  46081   skipif mysql # not compatible
        46082  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46047  46083   query II rowsort label-5037
 46048  46084   SELECT col2 col1, - CAST ( NULL AS INTEGER ) + 87 FROM tab0 cor0
 46049  46085   ----
 46050  46086   10
 46051  46087   NULL
 46052  46088   47
 46053  46089   NULL
................................................................................
 46131  46167   
 46132  46168   skipif mysql # not compatible
 46133  46169   query I rowsort label-5047
 46134  46170   SELECT - 15 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
 46135  46171   ----
 46136  46172   45
 46137  46173   
        46174  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46138  46175   query II rowsort
 46139  46176   SELECT ALL - col0 col1, 36 + - 69 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
 46140  46177   ----
 46141  46178   
 46142  46179   onlyif mysql # DIV for integer division: 
 46143  46180   query II rowsort label-5049
 46144  46181   SELECT + + ( col1 ) AS col0, - 84 DIV + - col0 AS col2 FROM tab1 AS cor0
................................................................................
 50039  50076   ----
 50040  50077   
 50041  50078   query III rowsort
 50042  50079   SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + + ( - col0 ) <> 95 * col1
 50043  50080   ----
 50044  50081   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 50045  50082   
        50083  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50046  50084   query II rowsort
 50047  50085   SELECT col0 col2, 38 AS col0 FROM tab2 AS cor0
 50048  50086   ----
 50049  50087   46
 50050  50088   38
 50051  50089   64
 50052  50090   38
................................................................................
 50879  50917   81
 50880  50918   NULL
 50881  50919   81
 50882  50920   NULL
 50883  50921   81
 50884  50922   
 50885  50923   skipif mysql # not compatible
        50924  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50886  50925   query II rowsort label-5574
 50887  50926   SELECT ALL - CAST ( NULL AS INTEGER ) col0, 81 AS col0 FROM tab1 AS cor0
 50888  50927   ----
 50889  50928   NULL
 50890  50929   81
 50891  50930   NULL
 50892  50931   81
................................................................................
 52094  52133   46
 52095  52134   51
 52096  52135   23
 52097  52136   64
 52098  52137   77
 52099  52138   40
 52100  52139   
        52140  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52101  52141   query II rowsort
 52102  52142   SELECT ALL 94 col0, - col1 FROM tab1
 52103  52143   ----
 52104  52144   94
 52105  52145   -14
 52106  52146   94
 52107  52147   -47
................................................................................
 52377  52417   query I rowsort
 52378  52418   SELECT col1 * - + col2 + + + col0 FROM tab1
 52379  52419   ----
 52380  52420   -1293
 52381  52421   -210
 52382  52422   -3105
 52383  52423   
        52424  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52384  52425   query II rowsort
 52385  52426   SELECT + col1 + - + 41 + col2 + - + col1 col1, + ( col0 ) AS col1 FROM tab0
 52386  52427   ----
 52387  52428   -31
 52388  52429   87
 52389  52430   58
 52390  52431   97
................................................................................
 52415  52456   query II rowsort label-5738
 52416  52457   SELECT ALL - - 18 col1, MIN( ALL - 79 ) - + 73 FROM tab1 AS cor0
 52417  52458   ----
 52418  52459   18
 52419  52460   -152
 52420  52461   
 52421  52462   skipif mysql # not compatible
        52463  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52422  52464   query II rowsort label-5738
 52423  52465   SELECT ALL - - 18 col1, MIN ( ALL - 79 ) - + 73 FROM tab1 AS cor0
 52424  52466   ----
 52425  52467   18
 52426  52468   -152
 52427  52469   
 52428  52470   query I rowsort
................................................................................
 53714  53756   query II rowsort label-5893
 53715  53757   SELECT ALL CAST( NULL AS SIGNED ) col2, - MAX( DISTINCT + 10 ) * + COUNT( * ) DIV + 3 FROM tab2
 53716  53758   ----
 53717  53759   NULL
 53718  53760   -10
 53719  53761   
 53720  53762   skipif mysql # not compatible
        53763  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53721  53764   query II rowsort label-5893
 53722  53765   SELECT ALL CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT + 10 ) * + COUNT ( * ) / + 3 FROM tab2
 53723  53766   ----
 53724  53767   NULL
 53725  53768   -10
 53726  53769   
 53727  53770   onlyif mysql # DIV for integer division: 
................................................................................
 53990  54033   75
 53991  54034   -121
 53992  54035   
 53993  54036   query III rowsort
 53994  54037   SELECT ALL * FROM tab1 AS cor0 WHERE + 89 IS NULL
 53995  54038   ----
 53996  54039   
        54040  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53997  54041   query II rowsort
 53998  54042   SELECT ALL - 84 col0, 83 AS col1 FROM tab0 AS cor0
 53999  54043   ----
 54000  54044   -84
 54001  54045   83
 54002  54046   -84
 54003  54047   83
................................................................................
 54615  54659   skipif mysql # not compatible
 54616  54660   skipif postgresql # PostgreSQL requires AS when renaming output columns
 54617  54661   query I rowsort label-5997
 54618  54662   SELECT ALL + MIN ( + col1 ) col0 FROM tab0 cor0
 54619  54663   ----
 54620  54664   1
 54621  54665   
        54666  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54622  54667   query II rowsort
 54623  54668   SELECT DISTINCT 55 col0, 90 FROM tab0 AS cor0
 54624  54669   ----
 54625  54670   55
 54626  54671   90
 54627  54672   
 54628  54673   onlyif mysql # aggregate syntax: 
................................................................................
 56905  56950   -1
 56906  56951   -97
 56907  56952   -21
 56908  56953   -97
 56909  56954   -81
 56910  56955   
 56911  56956   skipif mysql # not compatible
        56957  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56912  56958   query II rowsort label-6241
 56913  56959   SELECT DISTINCT - CAST ( 97 AS INTEGER ) col0, - col1 FROM tab0 AS cor0
 56914  56960   ----
 56915  56961   -97
 56916  56962   -1
 56917  56963   -97
 56918  56964   -21
................................................................................
 57727  57773   5
 57728  57774   59
 57729  57775   
 57730  57776   query III rowsort
 57731  57777   SELECT ALL * FROM tab0 AS cor0 WHERE - col0 IN ( + col1 )
 57732  57778   ----
 57733  57779   
        57780  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57734  57781   query II rowsort
 57735  57782   SELECT DISTINCT + 85 col2, - col0 FROM tab2 AS cor0
 57736  57783   ----
 57737  57784   85
 57738  57785   -46
 57739  57786   85
 57740  57787   -64
................................................................................
 58096  58143   NULL
 58097  58144   -85
 58098  58145   NULL
 58099  58146   -91
 58100  58147   NULL
 58101  58148   
 58102  58149   skipif mysql # not compatible
        58150  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58103  58151   query II rowsort label-6379
 58104  58152   SELECT DISTINCT - ( + col0 ) col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0
 58105  58153   ----
 58106  58154   -51
 58107  58155   NULL
 58108  58156   -85
 58109  58157   NULL
................................................................................
 58496  58544   NULL
 58497  58545   -1
 58498  58546   NULL
 58499  58547   -2
 58500  58548   NULL
 58501  58549   
 58502  58550   skipif mysql # not compatible
        58551  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58503  58552   query II rowsort label-6423
 58504  58553   SELECT + col1 / - + col2 col2, - CAST ( NULL AS INTEGER ) FROM tab2
 58505  58554   ----
 58506  58555   -1
 58507  58556   NULL
 58508  58557   -1
 58509  58558   NULL
................................................................................
 59689  59738   query II rowsort label-6551
 59690  59739   SELECT DISTINCT 23 * 23 * - CAST( NULL AS SIGNED ) col0, + 89 FROM tab0
 59691  59740   ----
 59692  59741   NULL
 59693  59742   89
 59694  59743   
 59695  59744   skipif mysql # not compatible
        59745  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59696  59746   query II rowsort label-6551
 59697  59747   SELECT DISTINCT 23 * 23 * - CAST ( NULL AS INTEGER ) col0, + 89 FROM tab0
 59698  59748   ----
 59699  59749   NULL
 59700  59750   89
 59701  59751   
 59702  59752   query I rowsort
................................................................................
 60559  60609   query I rowsort
 60560  60610   SELECT ALL col0 + + 87 AS col0 FROM tab2
 60561  60611   ----
 60562  60612   133
 60563  60613   151
 60564  60614   162
 60565  60615   
        60616  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60566  60617   query II rowsort
 60567  60618   SELECT DISTINCT - 59 * - col0 + col1 col2, - 4 FROM tab2 cor0
 60568  60619   ----
 60569  60620   2765
 60570  60621   -4
 60571  60622   3853
 60572  60623   -4
................................................................................
 61533  61584   query I rowsort
 61534  61585   SELECT ALL + col1 + 95 FROM tab0
 61535  61586   ----
 61536  61587   116
 61537  61588   176
 61538  61589   96
 61539  61590   
        61591  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61540  61592   query II rowsort
 61541  61593   SELECT ALL - col0 col1, - col0 AS col1 FROM tab1 AS cor0
 61542  61594   ----
 61543  61595   -51
 61544  61596   -51
 61545  61597   -85
 61546  61598   -85
................................................................................
 61933  61985   query I rowsort
 61934  61986   SELECT col0 * col2 * + col1 FROM tab2 AS cor0
 61935  61987   ----
 61936  61988   197120
 61937  61989   291450
 61938  61990   53958
 61939  61991   
        61992  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61940  61993   query II rowsort
 61941  61994   SELECT - col1 col0, - col1 - - 32 FROM tab0 cor0
 61942  61995   ----
 61943  61996   -1
 61944  61997   31
 61945  61998   -21
 61946  61999   11
................................................................................
 64184  64237   skipif postgresql # PostgreSQL requires AS when renaming output columns
 64185  64238   query II rowsort label-7044
 64186  64239   SELECT DISTINCT 58, ( + COUNT ( * ) ) col1 FROM tab1
 64187  64240   ----
 64188  64241   58
 64189  64242   3
 64190  64243   
        64244  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 64191  64245   query II rowsort
 64192  64246   SELECT ALL col2 col1, col0 + - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
 64193  64247   ----
 64194  64248   59
 64195  64249   0
 64196  64250   68
 64197  64251   0
................................................................................
 64504  64558   85
 64505  64559   NULL
 64506  64560   85
 64507  64561   NULL
 64508  64562   85
 64509  64563   
 64510  64564   skipif mysql # not compatible
        64565  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 64511  64566   query II rowsort label-7073
 64512  64567   SELECT ALL CAST ( NULL AS INTEGER ) col0, 85 AS col0 FROM tab2 AS cor0
 64513  64568   ----
 64514  64569   NULL
 64515  64570   85
 64516  64571   NULL
 64517  64572   85
................................................................................
 66368  66423   
 66369  66424   skipif mysql # not compatible
 66370  66425   query III rowsort label-7278
 66371  66426   SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
 66372  66427   ----
 66373  66428   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 66374  66429   
        66430  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 66375  66431   query II rowsort
 66376  66432   SELECT + col2 col1, + 32 FROM tab2 AS cor0
 66377  66433   ----
 66378  66434   23
 66379  66435   32
 66380  66436   40
 66381  66437   32
................................................................................
 66850  66906   -14
 66851  66907   -14
 66852  66908   -47
 66853  66909   -47
 66854  66910   -5
 66855  66911   -5
 66856  66912   
        66913  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 66857  66914   query II rowsort
 66858  66915   SELECT ALL + col2 + + col2 * 89 * + 85 col1, col2 AS col1 FROM tab1 AS cor0
 66859  66916   ----
 66860  66917   446394
 66861  66918   59
 66862  66919   514488
 66863  66920   68
................................................................................
 68781  68838   query I rowsort
 68782  68839   SELECT + 55 * + 93 FROM tab1 AS cor0
 68783  68840   ----
 68784  68841   5115
 68785  68842   5115
 68786  68843   5115
 68787  68844   
        68845  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68788  68846   query II rowsort
 68789  68847   SELECT DISTINCT - col1 * - - 36 col2, col2 FROM tab0 cor0
 68790  68848   ----
 68791  68849   -2916
 68792  68850   47
 68793  68851   -36
 68794  68852   99
................................................................................
 68956  69014   query II rowsort label-7566
 68957  69015   SELECT ( COUNT( * ) ) col0, + 56 AS col2 FROM tab2 AS cor0
 68958  69016   ----
 68959  69017   3
 68960  69018   56
 68961  69019   
 68962  69020   skipif mysql # not compatible
        69021  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68963  69022   query II rowsort label-7566
 68964  69023   SELECT ( COUNT ( * ) ) col0, + 56 AS col2 FROM tab2 AS cor0
 68965  69024   ----
 68966  69025   3
 68967  69026   56
 68968  69027   
 68969  69028   onlyif mysql # aggregate syntax: 
................................................................................
 70155  70214   115
 70156  70215   134
 70157  70216   
 70158  70217   query III rowsort
 70159  70218   SELECT DISTINCT * FROM tab1 WHERE ( NOT - 24 * - - 61 <= NULL )
 70160  70219   ----
 70161  70220   
        70221  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 70162  70222   query II rowsort
 70163  70223   SELECT 17 col0, col2 FROM tab0
 70164  70224   ----
 70165  70225   17
 70166  70226   10
 70167  70227   17
 70168  70228   47
................................................................................
 70987  71047   query I rowsort
 70988  71048   SELECT - 94 col1 FROM tab2
 70989  71049   ----
 70990  71050   -94
 70991  71051   -94
 70992  71052   -94
 70993  71053   
        71054  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 70994  71055   query II rowsort
 70995  71056   SELECT col0 * + + 24 col0, 67 + + - col2 FROM tab1
 70996  71057   ----
 70997  71058   1224
 70998  71059   -29
 70999  71060   2040
 71000  71061   8
................................................................................
 72064  72125   
 72065  72126   skipif mysql # not compatible
 72066  72127   query I rowsort label-7913
 72067  72128   SELECT - SUM ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
 72068  72129   ----
 72069  72130   223
 72070  72131   
        72132  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72071  72133   query II rowsort
 72072  72134   SELECT + col1 col0, + col0 + - col2 FROM tab2 AS cor0
 72073  72135   ----
 72074  72136   51
 72075  72137   23
 72076  72138   67
 72077  72139   17
 72078  72140   77
 72079  72141   24
 72080  72142   
        72143  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72081  72144   query II rowsort
 72082  72145   SELECT col0 col2, - col0 + 99 AS col0 FROM tab0 AS cor0
 72083  72146   ----
 72084  72147   15
 72085  72148   84
 72086  72149   87
 72087  72150   12
................................................................................
 72425  72488   query III rowsort label-7957
 72426  72489   SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) * - + SUM ( + col1 ) - - 83 AS col2, 7 AS col0 FROM tab2
 72427  72490   ----
 72428  72491   3
 72429  72492   1838
 72430  72493   7
 72431  72494   
        72495  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72432  72496   query II rowsort
 72433  72497   SELECT ALL + col2 col2, - 11 AS col0 FROM tab1
 72434  72498   ----
 72435  72499   59
 72436  72500   -11
 72437  72501   68
 72438  72502   -11
................................................................................
 76177  76241   query I rowsort
 76178  76242   SELECT ALL 97 AS col0 FROM tab0 cor0
 76179  76243   ----
 76180  76244   97
 76181  76245   97
 76182  76246   97
 76183  76247   
        76248  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76184  76249   query II rowsort
 76185  76250   SELECT DISTINCT - col2 * + col0 * col0 col2, col0 AS col2 FROM tab2
 76186  76251   ----
 76187  76252   -163840
 76188  76253   64
 76189  76254   -326250
 76190  76255   75
................................................................................
 76209  76274   query I rowsort
 76210  76275   SELECT col1 + - 84 FROM tab0 cor0
 76211  76276   ----
 76212  76277   -3
 76213  76278   -63
 76214  76279   -83
 76215  76280   
        76281  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76216  76282   query II rowsort
 76217  76283   SELECT - col0 col2, 64 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 22 * + col0 IS NULL
 76218  76284   ----
 76219  76285   -51
 76220  76286   160
 76221  76287   -85
 76222  76288   123
................................................................................
 77662  77728   query I rowsort
 77663  77729   SELECT - + 82 * + col2 FROM tab2 AS cor0
 77664  77730   ----
 77665  77731   -1886
 77666  77732   -3280
 77667  77733   -4756
 77668  77734   
        77735  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 77669  77736   query II rowsort
 77670  77737   SELECT ALL 7 col1, col1 FROM tab0 AS cor0
 77671  77738   ----
 77672  77739   7
 77673  77740   1
 77674  77741   7
 77675  77742   21
................................................................................
 77948  78015   0
 77949  78016   
 77950  78017   query I rowsort
 77951  78018   SELECT DISTINCT + 24 FROM tab0 cor0
 77952  78019   ----
 77953  78020   24
 77954  78021   
        78022  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 77955  78023   query II rowsort
 77956  78024   SELECT - - col0 col2, + col1 + col1 AS col2 FROM tab1 AS cor0
 77957  78025   ----
 77958  78026   51
 77959  78027   28
 77960  78028   85
 77961  78029   10
................................................................................
 78852  78920   
 78853  78921   skipif mysql # not compatible
 78854  78922   query I rowsort label-8662
 78855  78923   SELECT ALL - MAX ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
 78856  78924   ----
 78857  78925   NULL
 78858  78926   
        78927  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78859  78928   query II rowsort
 78860  78929   SELECT DISTINCT - + col1 col1, col2 + col2 FROM tab2 AS cor0
 78861  78930   ----
 78862  78931   -51
 78863  78932   46
 78864  78933   -67
 78865  78934   116
................................................................................
 79935  80004   -51
 79936  80005   47
 79937  80006   -91
 79938  80007   5
 79939  80008   -85
 79940  80009   
 79941  80010   skipif mysql # not compatible
        80011  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79942  80012   query II rowsort label-8786
 79943  80013   SELECT col1 col2, - col0 + + col1 / - col0 AS col2 FROM tab1
 79944  80014   ----
 79945  80015   14
 79946  80016   -51
 79947  80017   47
 79948  80018   -91
................................................................................
 83049  83119   
 83050  83120   onlyif mysql # CAST syntax: SIGNED type: 
 83051  83121   query II rowsort label-9126
 83052  83122   SELECT DISTINCT - + 76 + - col1 col2, col1 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
 83053  83123   ----
 83054  83124   
 83055  83125   skipif mysql # not compatible
        83126  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83056  83127   query II rowsort label-9126
 83057  83128   SELECT DISTINCT - + 76 + - col1 col2, col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
 83058  83129   ----
 83059  83130   
 83060  83131   query I rowsort
 83061  83132   SELECT + - 98 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
 83062  83133   ----
................................................................................
 83093  83164   query I rowsort
 83094  83165   SELECT ALL + + 93 AS col2 FROM tab0 AS cor0
 83095  83166   ----
 83096  83167   93
 83097  83168   93
 83098  83169   93
 83099  83170   
        83171  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83100  83172   query II rowsort
 83101  83173   SELECT - col2 col0, col1 + - col1 AS col1 FROM tab1 AS cor0
 83102  83174   ----
 83103  83175   -59
 83104  83176   0
 83105  83177   -68
 83106  83178   0
................................................................................
 84976  85048   query I rowsort
 84977  85049   SELECT ALL - ( - + 33 ) col2 FROM tab0 cor0
 84978  85050   ----
 84979  85051   33
 84980  85052   33
 84981  85053   33
 84982  85054   
        85055  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 84983  85056   query II rowsort
 84984  85057   SELECT + - col2 / - col0 col2, col1 FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
 84985  85058   ----
 84986  85059   
 84987  85060   query I rowsort
 84988  85061   SELECT ALL + - col1 FROM tab2 AS cor0 WHERE - 86 <= NULL
 84989  85062   ----
................................................................................
 84991  85064   query I rowsort
 84992  85065   SELECT ALL - ( - - col1 ) AS col1 FROM tab1 AS cor0
 84993  85066   ----
 84994  85067   -14
 84995  85068   -47
 84996  85069   -5
 84997  85070   
        85071  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 84998  85072   query II rowsort
 84999  85073   SELECT ALL - col2 col0, col1 FROM tab0 AS cor0
 85000  85074   ----
 85001  85075   -10
 85002  85076   21
 85003  85077   -47
 85004  85078   81
................................................................................
 85453  85527   52
 85454  85528   -59
 85455  85529   52
 85456  85530   -68
 85457  85531   52
 85458  85532   -96
 85459  85533   
        85534  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85460  85535   query II rowsort
 85461  85536   SELECT DISTINCT - 26 col1, col0 + + 34 AS col1 FROM tab2
 85462  85537   ----
 85463  85538   -26
 85464  85539   109
 85465  85540   -26
 85466  85541   80
................................................................................
 86170  86245   21
 86171  86246   -21
 86172  86247   21
 86173  86248   -81
 86174  86249   21
 86175  86250   
 86176  86251   skipif mysql # not compatible
        86252  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86177  86253   query II rowsort label-9481
 86178  86254   SELECT DISTINCT - col1 col2, CAST ( + + 21 AS INTEGER ) FROM tab0 AS cor0
 86179  86255   ----
 86180  86256   -1
 86181  86257   21
 86182  86258   -21
 86183  86259   21
................................................................................
 87815  87891   -5
 87816  87892   -3481
 87817  87893   
 87818  87894   query III rowsort
 87819  87895   SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
 87820  87896   ----
 87821  87897   
        87898  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 87822  87899   query II rowsort
 87823  87900   SELECT ALL - 53 col0, + 72 FROM tab0
 87824  87901   ----
 87825  87902   -53
 87826  87903   72
 87827  87904   -53
 87828  87905   72
................................................................................
 88156  88233   -3
 88157  88234   
 88158  88235   query III rowsort
 88159  88236   SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= - + col2
 88160  88237   ----
 88161  88238   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 88162  88239   
        88240  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 88163  88241   query II rowsort
 88164  88242   SELECT ALL - col0 col1, col0 FROM tab0 cor0
 88165  88243   ----
 88166  88244   -15
 88167  88245   15
 88168  88246   -87
 88169  88247   87
................................................................................
 88208  88286   58
 88209  88287   72
 88210  88288   
 88211  88289   query I rowsort
 88212  88290   SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
 88213  88291   ----
 88214  88292   
        88293  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 88215  88294   query II rowsort
 88216  88295   SELECT - + 45 col1, + 39 + + ( + col0 ) + - col0 * 58 * + col2 AS col0 FROM tab0 AS cor0
 88217  88296   ----
 88218  88297   -45
 88219  88298   -40836
 88220  88299   -45
 88221  88300   -50334
................................................................................
 89091  89170   query II rowsort label-9795
 89092  89171   SELECT DISTINCT - COUNT( * ) + + + 33 col1, + COUNT( DISTINCT - - 65 ) AS col1 FROM tab2
 89093  89172   ----
 89094  89173   30
 89095  89174   1
 89096  89175   
 89097  89176   skipif mysql # not compatible
        89177  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89098  89178   query II rowsort label-9795
 89099  89179   SELECT DISTINCT - COUNT ( * ) + + + 33 col1, + COUNT ( DISTINCT - - 65 ) AS col1 FROM tab2
 89100  89180   ----
 89101  89181   30
 89102  89182   1
 89103  89183   
 89104  89184   onlyif mysql # aggregate syntax: 

Changes to test/random/aggregates/slt_good_10.test.

  1135   1135   NULL
  1136   1136   
  1137   1137   query III rowsort
  1138   1138   SELECT * FROM tab0 AS cor0 WHERE + col0 + - col1 IS NOT NULL
  1139   1139   ----
  1140   1140   9 values hashing to c4b42765dff94eaaa46040e537fb43b7
  1141   1141   
         1142  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  1142   1143   query II rowsort
  1143   1144   SELECT ALL + + col0 * col1 + + + 67 * + 44 + - 31 col2, col1 * 97 FROM tab2 AS cor0
  1144   1145   ----
  1145   1146   5263
  1146   1147   4947
  1147   1148   7845
  1148   1149   7469
................................................................................
  2018   2019   NULL
  2019   2020   40
  2020   2021   NULL
  2021   2022   58
  2022   2023   NULL
  2023   2024   
  2024   2025   skipif mysql # not compatible
         2026  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2025   2027   query II rowsort label-212
  2026   2028   SELECT + col2 col1, 95 + col1 * + CAST ( NULL AS INTEGER ) - + + 1 FROM tab2 AS cor0
  2027   2029   ----
  2028   2030   23
  2029   2031   NULL
  2030   2032   40
  2031   2033   NULL
................................................................................
  3416   3418   NULL
  3417   3419   47
  3418   3420   NULL
  3419   3421   99
  3420   3422   NULL
  3421   3423   
  3422   3424   skipif mysql # not compatible
         3425  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3423   3426   query II rowsort label-369
  3424   3427   SELECT ALL - - col2 col1, col1 * CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
  3425   3428   ----
  3426   3429   10
  3427   3430   NULL
  3428   3431   47
  3429   3432   NULL
................................................................................
  3655   3658   query I rowsort
  3656   3659   SELECT - col1 + ( + col0 ) FROM tab2
  3657   3660   ----
  3658   3661   -13
  3659   3662   -5
  3660   3663   8
  3661   3664   
         3665  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3662   3666   query II rowsort
  3663   3667   SELECT col1 + + + col1 col1, col0 - col2 + + 96 - - 3 AS col0 FROM tab1
  3664   3668   ----
  3665   3669   10
  3666   3670   125
  3667   3671   28
  3668   3672   54
................................................................................
  5112   5116   
  5113   5117   skipif mysql # not compatible
  5114   5118   query I rowsort label-554
  5115   5119   SELECT + MIN ( ALL + col1 ) + + COUNT ( * ) FROM tab1 cor0
  5116   5120   ----
  5117   5121   8
  5118   5122   
         5123  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5119   5124   query II rowsort
  5120   5125   SELECT DISTINCT 45 * + + 23 + + + col1 col0, col2 * - 74 AS col0 FROM tab1 AS cor0
  5121   5126   ----
  5122   5127   1040
  5123   5128   -4366
  5124   5129   1049
  5125   5130   -7104
................................................................................
  5396   5401   query II rowsort label-582
  5397   5402   SELECT ALL COUNT( * ) col2, - 47 + - COUNT( * ) AS col2 FROM tab0 AS cor0
  5398   5403   ----
  5399   5404   3
  5400   5405   -50
  5401   5406   
  5402   5407   skipif mysql # not compatible
         5408  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5403   5409   query II rowsort label-582
  5404   5410   SELECT ALL COUNT ( * ) col2, - 47 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
  5405   5411   ----
  5406   5412   3
  5407   5413   -50
  5408   5414   
  5409   5415   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
  5708   5714   query I rowsort
  5709   5715   SELECT DISTINCT - 93 + + + col1 FROM tab2 AS cor0
  5710   5716   ----
  5711   5717   -16
  5712   5718   -26
  5713   5719   -42
  5714   5720   
         5721  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5715   5722   query II rowsort
  5716   5723   SELECT col2 * + col1 + + col1 + + col0 col1, + col2 + - col0 FROM tab0 AS cor0
  5717   5724   ----
  5718   5725   197
  5719   5726   2
  5720   5727   318
  5721   5728   -77
................................................................................
  6058   6065   NULL
  6059   6066   67
  6060   6067   NULL
  6061   6068   77
  6062   6069   NULL
  6063   6070   
  6064   6071   skipif mysql # not compatible
         6072  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  6065   6073   query II rowsort label-657
  6066   6074   SELECT ALL col1 col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
  6067   6075   ----
  6068   6076   51
  6069   6077   NULL
  6070   6078   67
  6071   6079   NULL
................................................................................
  6264   6272   
  6265   6273   skipif mysql # not compatible
  6266   6274   query I rowsort label-677
  6267   6275   SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
  6268   6276   ----
  6269   6277   9
  6270   6278   
         6279  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  6271   6280   query II rowsort
  6272   6281   SELECT DISTINCT col2 * + col1 + + - ( + 87 ) col1, - col2 + - col0 AS col2 FROM tab1 AS cor0
  6273   6282   ----
  6274   6283   1257
  6275   6284   -147
  6276   6285   208
  6277   6286   -144
................................................................................
  6621   6630   query II rowsort label-715
  6622   6631   SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) col1, - COUNT( + col0 ) FROM tab1
  6623   6632   ----
  6624   6633   -3
  6625   6634   -3
  6626   6635   
  6627   6636   skipif mysql # not compatible
         6637  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  6628   6638   query II rowsort label-715
  6629   6639   SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) col1, - COUNT ( + col0 ) FROM tab1
  6630   6640   ----
  6631   6641   -3
  6632   6642   -3
  6633   6643   
  6634   6644   query III rowsort
................................................................................
  7459   7469   1
  7460   7470   
  7461   7471   query III rowsort
  7462   7472   SELECT * FROM tab2 AS cor0 WHERE NOT - 80 + + col1 BETWEEN ( col1 ) AND + + col2 + - col0
  7463   7473   ----
  7464   7474   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
  7465   7475   
         7476  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7466   7477   query II rowsort
  7467   7478   SELECT DISTINCT 84 + ( - col2 ) col2, ( + col2 ) * + + col2 FROM tab2 AS cor0
  7468   7479   ----
  7469   7480   26
  7470   7481   3364
  7471   7482   44
  7472   7483   1600
................................................................................
  7688   7699   -92
  7689   7700   29
  7690   7701   -92
  7691   7702   29
  7692   7703   -92
  7693   7704   29
  7694   7705   
         7706  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7695   7707   query II rowsort
  7696   7708   SELECT 50 * 52 * + + 89 col0, + col2 FROM tab0
  7697   7709   ----
  7698   7710   231400
  7699   7711   10
  7700   7712   231400
  7701   7713   47
................................................................................
  8468   8480   skipif mysql # not compatible
  8469   8481   query II rowsort label-917
  8470   8482   SELECT COUNT ( * ) AS col1, MAX ( ( - col2 ) ) + - ( + 93 ) AS col0 FROM tab1
  8471   8483   ----
  8472   8484   3
  8473   8485   -152
  8474   8486   
         8487  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  8475   8488   query III rowsort
  8476   8489   SELECT col1 AS col2, 38 col0, + 64 FROM tab0
  8477   8490   ----
  8478   8491   9 values hashing to 1ef329afdc7b2888f1ea1830e57ab3ef
  8479   8492   
  8480   8493   query III rowsort
  8481   8494   SELECT DISTINCT * FROM tab1 WHERE ( col2 * col2 ) IS NULL
................................................................................
 11398  11411   75
 11399  11412   75
 11400  11413   
 11401  11414   query I rowsort
 11402  11415   SELECT DISTINCT + 4 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
 11403  11416   ----
 11404  11417   
        11418  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11405  11419   query II rowsort
 11406  11420   SELECT ALL + col1 col0, - col2 AS col1 FROM tab2 cor0
 11407  11421   ----
 11408  11422   51
 11409  11423   -23
 11410  11424   67
 11411  11425   -58
................................................................................
 12263  12277   query II rowsort label-1328
 12264  12278   SELECT - + 0 col0, COUNT( * ) AS col1 FROM tab2 cor0
 12265  12279   ----
 12266  12280   0
 12267  12281   3
 12268  12282   
 12269  12283   skipif mysql # not compatible
        12284  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12270  12285   query II rowsort label-1328
 12271  12286   SELECT - + 0 col0, COUNT ( * ) AS col1 FROM tab2 cor0
 12272  12287   ----
 12273  12288   0
 12274  12289   3
 12275  12290   
 12276  12291   onlyif mysql # aggregate syntax: 
................................................................................
 12752  12767   23
 12753  12768   74
 12754  12769   
 12755  12770   query I rowsort
 12756  12771   SELECT col2 FROM tab2 WHERE NOT col1 IS NOT NULL
 12757  12772   ----
 12758  12773   
        12774  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12759  12775   query II rowsort
 12760  12776   SELECT col0 col0, + col2 AS col0 FROM tab2
 12761  12777   ----
 12762  12778   46
 12763  12779   23
 12764  12780   64
 12765  12781   40
................................................................................
 13874  13890   query I rowsort
 13875  13891   SELECT col0 * - + 88 + + col1 FROM tab2 AS cor0
 13876  13892   ----
 13877  13893   -3997
 13878  13894   -5555
 13879  13895   -6533
 13880  13896   
        13897  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13881  13898   query II rowsort
 13882  13899   SELECT col2 col2, col2 AS col0 FROM tab0 AS cor0
 13883  13900   ----
 13884  13901   10
 13885  13902   10
 13886  13903   47
 13887  13904   47
................................................................................
 15292  15309   query II rowsort label-1653
 15293  15310   SELECT DISTINCT ( + 86 ) + + 88 col0, col0 DIV + 81 * - - 30 AS col2 FROM tab2
 15294  15311   ----
 15295  15312   174
 15296  15313   0
 15297  15314   
 15298  15315   skipif mysql # not compatible
        15316  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15299  15317   query II rowsort label-1653
 15300  15318   SELECT DISTINCT ( + 86 ) + + 88 col0, col0 / + 81 * - - 30 AS col2 FROM tab2
 15301  15319   ----
 15302  15320   174
 15303  15321   0
 15304  15322   
 15305  15323   onlyif mysql # aggregate syntax: 
................................................................................
 16799  16817   ----
 16800  16818   0
 16801  16819   
 16802  16820   query III rowsort
 16803  16821   SELECT DISTINCT * FROM tab2 WHERE NOT - 65 + col2 NOT BETWEEN - 61 AND NULL
 16804  16822   ----
 16805  16823   
        16824  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16806  16825   query II rowsort
 16807  16826   SELECT ALL col1 col0, + col2 AS col1 FROM tab2
 16808  16827   ----
 16809  16828   51
 16810  16829   23
 16811  16830   67
 16812  16831   58
................................................................................
 17056  17075   67
 17057  17076   13
 17058  17077   77
 17059  17078   5
 17060  17079   51
 17061  17080   
 17062  17081   skipif mysql # not compatible
        17082  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 17063  17083   query II rowsort label-1849
 17064  17084   SELECT DISTINCT - col0 + col0 / col1 + - - col1 col1, + ( - - col1 ) AS col0 FROM tab2 AS cor0
 17065  17085   ----
 17066  17086   -7
 17067  17087   67
 17068  17088   13
 17069  17089   77
................................................................................
 17553  17573   68
 17554  17574   -3835
 17555  17575   68
 17556  17576   -4420
 17557  17577   68
 17558  17578   -6240
 17559  17579   
        17580  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 17560  17581   query II rowsort
 17561  17582   SELECT DISTINCT - + col2 * + 98 col2, col0 FROM tab0 AS cor0
 17562  17583   ----
 17563  17584   -4606
 17564  17585   15
 17565  17586   -9702
 17566  17587   97
................................................................................
 17663  17684   skipif mysql # not compatible
 17664  17685   query II rowsort label-1908
 17665  17686   SELECT - 81 AS col1, COUNT ( * ) + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab0
 17666  17687   ----
 17667  17688   -81
 17668  17689   NULL
 17669  17690   
        17691  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 17670  17692   query II rowsort
 17671  17693   SELECT DISTINCT col1 col1, + col0 * - 3 AS col0 FROM tab0
 17672  17694   ----
 17673  17695   1
 17674  17696   -291
 17675  17697   21
 17676  17698   -261
................................................................................
 18584  18606   query I rowsort
 18585  18607   SELECT - col1 + + 82 * - + col1 AS col2 FROM tab0
 18586  18608   ----
 18587  18609   -1743
 18588  18610   -6723
 18589  18611   -83
 18590  18612   
        18613  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 18591  18614   query II rowsort
 18592  18615   SELECT DISTINCT 48 * - col2 + col2 col2, + 28 AS col2 FROM tab2
 18593  18616   ----
 18594  18617   -1081
 18595  18618   28
 18596  18619   -1880
 18597  18620   28
................................................................................
 18609  18632   query I rowsort
 18610  18633   SELECT ALL - col2 * - col0 - + 77 AS col2 FROM tab0
 18611  18634   ----
 18612  18635   628
 18613  18636   793
 18614  18637   9526
 18615  18638   
        18639  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 18616  18640   query II rowsort
 18617  18641   SELECT ALL + col2 col0, + col2 AS col2 FROM tab2 AS cor0
 18618  18642   ----
 18619  18643   23
 18620  18644   23
 18621  18645   40
 18622  18646   40
................................................................................
 19021  19045   query II rowsort label-2055
 19022  19046   SELECT DISTINCT 49 * - + COUNT( * ) + + + 45 col2, 20 FROM tab1 AS cor0
 19023  19047   ----
 19024  19048   -102
 19025  19049   20
 19026  19050   
 19027  19051   skipif mysql # not compatible
        19052  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19028  19053   query II rowsort label-2055
 19029  19054   SELECT DISTINCT 49 * - + COUNT ( * ) + + + 45 col2, 20 FROM tab1 AS cor0
 19030  19055   ----
 19031  19056   -102
 19032  19057   20
 19033  19058   
 19034  19059   query I rowsort
................................................................................
 19109  19134   47
 19110  19135   -40
 19111  19136   64
 19112  19137   -58
 19113  19138   75
 19114  19139   
 19115  19140   skipif mysql # not compatible
        19141  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19116  19142   query II rowsort label-2063
 19117  19143   SELECT ALL - col2 col2, ( + col0 ) + - - 60 / col0 AS col0 FROM tab2
 19118  19144   ----
 19119  19145   -23
 19120  19146   47
 19121  19147   -40
 19122  19148   64
................................................................................
 21524  21550   onlyif mysql # CAST syntax: SIGNED type: 
 21525  21551   query III rowsort label-2328
 21526  21552   SELECT + ( - col0 ) * col2 * CAST( NULL AS SIGNED ), col1 col0, + + 28 AS col1 FROM tab0
 21527  21553   ----
 21528  21554   9 values hashing to 15551f62773187f31ce09f296becd58d
 21529  21555   
 21530  21556   skipif mysql # not compatible
        21557  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21531  21558   query III rowsort label-2328
 21532  21559   SELECT + ( - col0 ) * col2 * CAST ( NULL AS INTEGER ), col1 col0, + + 28 AS col1 FROM tab0
 21533  21560   ----
 21534  21561   9 values hashing to 15551f62773187f31ce09f296becd58d
 21535  21562   
 21536  21563   query I rowsort
 21537  21564   SELECT DISTINCT col1 * 3 FROM tab0
................................................................................
 23415  23442   ----
 23416  23443   0
 23417  23444   83
 23418  23445   1
 23419  23446   83
 23420  23447   
 23421  23448   skipif mysql # not compatible
        23449  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 23422  23450   query II rowsort label-2529
 23423  23451   SELECT DISTINCT col1 / 54 col1, 83 FROM tab2
 23424  23452   ----
 23425  23453   0
 23426  23454   83
 23427  23455   1
 23428  23456   83
................................................................................
 23743  23771   NULL
 23744  23772   NULL
 23745  23773   
 23746  23774   query I rowsort
 23747  23775   SELECT DISTINCT - col2 - - col0 FROM tab0 WHERE NULL <> NULL
 23748  23776   ----
 23749  23777   
        23778  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 23750  23779   query II rowsort
 23751  23780   SELECT DISTINCT - col2 col0, 88 FROM tab0
 23752  23781   ----
 23753  23782   -10
 23754  23783   88
 23755  23784   -47
 23756  23785   88
................................................................................
 24109  24138   -99
 24110  24139   -21
 24111  24140   -10
 24112  24141   -81
 24113  24142   -47
 24114  24143   
 24115  24144   skipif mysql # not compatible
        24145  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24116  24146   query II rowsort label-2602
 24117  24147   SELECT - + CAST ( col1 AS INTEGER ) col1, - col2 FROM tab0 AS cor0
 24118  24148   ----
 24119  24149   -1
 24120  24150   -99
 24121  24151   -21
 24122  24152   -10
................................................................................
 25207  25237   query I rowsort
 25208  25238   SELECT DISTINCT + col1 * - 65 + - 79 FROM tab2 AS cor0
 25209  25239   ----
 25210  25240   -3394
 25211  25241   -4434
 25212  25242   -5084
 25213  25243   
        25244  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25214  25245   query II rowsort
 25215  25246   SELECT ALL + 85 col2, + col1 FROM tab0 AS cor0
 25216  25247   ----
 25217  25248   85
 25218  25249   1
 25219  25250   85
 25220  25251   21
................................................................................
 27805  27836   query I rowsort
 27806  27837   SELECT DISTINCT - 75 * + col0 AS col2 FROM tab2
 27807  27838   ----
 27808  27839   -3450
 27809  27840   -4800
 27810  27841   -5625
 27811  27842   
        27843  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27812  27844   query II rowsort
 27813  27845   SELECT DISTINCT + 1 col0, 61 * 17 + 52 FROM tab1
 27814  27846   ----
 27815  27847   1
 27816  27848   1089
 27817  27849   
 27818  27850   query III rowsort
................................................................................
 28090  28122   ----
 28091  28123   
 28092  28124   query III rowsort
 28093  28125   SELECT DISTINCT * FROM tab2 WHERE - + col0 NOT BETWEEN + col2 AND 55
 28094  28126   ----
 28095  28127   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
 28096  28128   
        28129  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28097  28130   query II rowsort
 28098  28131   SELECT DISTINCT - + 96 * + - col2 * - col0 col2, + 34 * - col0 AS col1 FROM tab0 cor0
 28099  28132   ----
 28100  28133   -67680
 28101  28134   -510
 28102  28135   -83520
 28103  28136   -2958
................................................................................
 28238  28271   9
 28239  28272   
 28240  28273   query I rowsort
 28241  28274   SELECT DISTINCT + AVG ( ALL - + 4 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
 28242  28275   ----
 28243  28276   NULL
 28244  28277   
        28278  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28245  28279   query II rowsort
 28246  28280   SELECT ALL + 32 + + ( + col0 ) col0, 58 * + 83 + - - 13 AS col2 FROM tab2 cor0
 28247  28281   ----
 28248  28282   107
 28249  28283   4827
 28250  28284   78
 28251  28285   4827
................................................................................
 28392  28426   SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 29 / + - col1 IS NOT NULL
 28393  28427   ----
 28394  28428   
 28395  28429   query III rowsort
 28396  28430   SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - - col1 IS NOT NULL
 28397  28431   ----
 28398  28432   
        28433  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28399  28434   query II rowsort
 28400  28435   SELECT - + 95 col1, 11 FROM tab0 AS cor0
 28401  28436   ----
 28402  28437   -95
 28403  28438   11
 28404  28439   -95
 28405  28440   11
................................................................................
 31727  31762   query I rowsort
 31728  31763   SELECT DISTINCT col0 FROM tab2 WHERE NOT + col0 NOT IN ( col0 * - - 87, col1 * col1, - - col2, + col0 )
 31729  31764   ----
 31730  31765   46
 31731  31766   64
 31732  31767   75
 31733  31768   
        31769  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 31734  31770   query II rowsort
 31735  31771   SELECT DISTINCT - col2 col0, - col0 * + + col2 * - - col1 FROM tab2
 31736  31772   ----
 31737  31773   -23
 31738  31774   -53958
 31739  31775   -40
 31740  31776   -197120
................................................................................
 32244  32280   query I rowsort
 32245  32281   SELECT ALL - 89 + + 13 FROM tab2
 32246  32282   ----
 32247  32283   -76
 32248  32284   -76
 32249  32285   -76
 32250  32286   
        32287  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32251  32288   query II rowsort
 32252  32289   SELECT + col1 col2, + col1 AS col0 FROM tab2 AS cor0
 32253  32290   ----
 32254  32291   51
 32255  32292   51
 32256  32293   67
 32257  32294   67
................................................................................
 32364  32401   23
 32365  32402   10
 32366  32403   23
 32367  32404   47
 32368  32405   23
 32369  32406   99
 32370  32407   
        32408  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32371  32409   query II rowsort
 32372  32410   SELECT col0 col1, + col2 AS col1 FROM tab1 AS cor0
 32373  32411   ----
 32374  32412   51
 32375  32413   96
 32376  32414   85
 32377  32415   59
................................................................................
 32913  32951   
 32914  32952   skipif mysql # not compatible
 32915  32953   query I rowsort label-3575
 32916  32954   SELECT ALL + ( ( + + COUNT ( * ) ) ) FROM tab0 AS cor0
 32917  32955   ----
 32918  32956   3
 32919  32957   
        32958  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32920  32959   query II rowsort
 32921  32960   SELECT ALL - + col2 col0, - 77 AS col0 FROM tab2 cor0
 32922  32961   ----
 32923  32962   -23
 32924  32963   -77
 32925  32964   -40
 32926  32965   -77
................................................................................
 33142  33181   68
 33143  33182   -51
 33144  33183   68
 33145  33184   -67
 33146  33185   68
 33147  33186   -77
 33148  33187   
        33188  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33149  33189   query II rowsort
 33150  33190   SELECT 17 col1, col0 * 32 AS col1 FROM tab0
 33151  33191   ----
 33152  33192   17
 33153  33193   2784
 33154  33194   17
 33155  33195   3104
................................................................................
 34002  34042   query I rowsort label-3693
 34003  34043   SELECT 0 / + + ( col2 ) + col2 AS col1 FROM tab1 AS cor0
 34004  34044   ----
 34005  34045   59
 34006  34046   68
 34007  34047   96
 34008  34048   
        34049  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34009  34050   query II rowsort
 34010  34051   SELECT + col2 + + 74 + 24 col0, col1 AS col1 FROM tab2 AS cor0
 34011  34052   ----
 34012  34053   121
 34013  34054   51
 34014  34055   138
 34015  34056   77
................................................................................
 34115  34156   query II rowsort label-3707
 34116  34157   SELECT COUNT( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
 34117  34158   ----
 34118  34159   0
 34119  34160   15
 34120  34161   
 34121  34162   skipif mysql # not compatible
        34163  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34122  34164   query II rowsort label-3707
 34123  34165   SELECT COUNT ( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
 34124  34166   ----
 34125  34167   0
 34126  34168   15
 34127  34169   
 34128  34170   onlyif mysql # aggregate syntax: 
................................................................................
 34860  34902   
 34861  34903   skipif mysql # not compatible
 34862  34904   query I rowsort label-3779
 34863  34905   SELECT DISTINCT + - 63 * COUNT ( * ) FROM tab1 AS cor0
 34864  34906   ----
 34865  34907   -189
 34866  34908   
        34909  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34867  34910   query II rowsort
 34868  34911   SELECT DISTINCT col1 col1, 41 FROM tab0
 34869  34912   ----
 34870  34913   1
 34871  34914   41
 34872  34915   21
 34873  34916   41
................................................................................
 35774  35817   query II rowsort label-3876
 35775  35818   SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col1 col0, 4 AS col1 FROM tab2 AS cor0
 35776  35819   ----
 35777  35820   NULL
 35778  35821   4
 35779  35822   
 35780  35823   skipif mysql # not compatible
        35824  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35781  35825   query II rowsort label-3876
 35782  35826   SELECT DISTINCT + CAST ( NULL AS REAL ) + + col1 col0, 4 AS col1 FROM tab2 AS cor0
 35783  35827   ----
 35784  35828   NULL
 35785  35829   4
 35786  35830   
 35787  35831   query I rowsort
................................................................................
 37919  37963   query I rowsort
 37920  37964   SELECT ALL + 26 col1 FROM tab1
 37921  37965   ----
 37922  37966   26
 37923  37967   26
 37924  37968   26
 37925  37969   
        37970  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37926  37971   query II rowsort
 37927  37972   SELECT - - ( + - col1 ) col0, + 67 + - 54 FROM tab0 AS cor0
 37928  37973   ----
 37929  37974   -1
 37930  37975   13
 37931  37976   -21
 37932  37977   13
................................................................................
 39211  39256   -1
 39212  39257   64
 39213  39258   -1
 39214  39259   75
 39215  39260   -1
 39216  39261   
 39217  39262   skipif mysql # not compatible
        39263  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39218  39264   query II rowsort label-4237
 39219  39265   SELECT + col0 col1, - col0 / col0 FROM tab2
 39220  39266   ----
 39221  39267   46
 39222  39268   -1
 39223  39269   64
 39224  39270   -1
................................................................................
 39228  39274   query I rowsort
 39229  39275   SELECT - ( - ( ( - col2 ) ) ) FROM tab1
 39230  39276   ----
 39231  39277   -59
 39232  39278   -68
 39233  39279   -96
 39234  39280   
        39281  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39235  39282   query II rowsort
 39236  39283   SELECT col0 col1, - col1 + + col2 * - - 35 * - col2 AS col2 FROM tab0
 39237  39284   ----
 39238  39285   15
 39239  39286   -77396
 39240  39287   87
 39241  39288   -3521
................................................................................
 39931  39978   query II rowsort label-4308
 39932  39979   SELECT 2 col1, COUNT( * ) AS col1 FROM tab1
 39933  39980   ----
 39934  39981   2
 39935  39982   3
 39936  39983   
 39937  39984   skipif mysql # not compatible
        39985  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39938  39986   query II rowsort label-4308
 39939  39987   SELECT 2 col1, COUNT ( * ) AS col1 FROM tab1
 39940  39988   ----
 39941  39989   2
 39942  39990   3
 39943  39991   
 39944  39992   query I rowsort
................................................................................
 40325  40373   23
 40326  40374   -27
 40327  40375   40
 40328  40376   -27
 40329  40377   58
 40330  40378   
 40331  40379   skipif mysql # not compatible
        40380  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 40332  40381   query II rowsort label-4351
 40333  40382   SELECT CAST ( - 27 AS INTEGER ) col2, col2 AS col2 FROM tab2
 40334  40383   ----
 40335  40384   -27
 40336  40385   23
 40337  40386   -27
 40338  40387   40
................................................................................
 40466  40515   -108
 40467  40516   -10
 40468  40517   -96
 40469  40518   -47
 40470  40519   -98
 40471  40520   -99
 40472  40521   
        40522  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 40473  40523   query II rowsort
 40474  40524   SELECT DISTINCT + 99 + + col1 * - col1 * col0 col0, col1 * - 47 FROM tab1
 40475  40525   ----
 40476  40526   -200920
 40477  40527   -2209
 40478  40528   -2026
 40479  40529   -235
................................................................................
 42359  42409   58
 42360  42410   68
 42361  42411   67
 42362  42412   96
 42363  42413   95
 42364  42414   
 42365  42415   skipif mysql # not compatible
        42416  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42366  42417   query II rowsort label-4572
 42367  42418   SELECT col2 col1, + col2 + + 99 / - col2 FROM tab1 AS cor0
 42368  42419   ----
 42369  42420   59
 42370  42421   58
 42371  42422   68
 42372  42423   67
................................................................................
 45144  45195   NULL
 45145  45196   2
 45146  45197   NULL
 45147  45198   2
 45148  45199   NULL
 45149  45200   
 45150  45201   skipif mysql # not compatible
        45202  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45151  45203   query II rowsort label-4855
 45152  45204   SELECT ALL 2 col2, + CAST ( NULL AS INTEGER ) FROM tab1
 45153  45205   ----
 45154  45206   2
 45155  45207   NULL
 45156  45208   2
 45157  45209   NULL
................................................................................
 46070  46122   query II rowsort label-4956
 46071  46123   SELECT + 52 col0, SUM( ALL - 97 ) AS col2 FROM tab2
 46072  46124   ----
 46073  46125   52
 46074  46126   -291
 46075  46127   
 46076  46128   skipif mysql # not compatible
        46129  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46077  46130   query II rowsort label-4956
 46078  46131   SELECT + 52 col0, SUM ( ALL - 97 ) AS col2 FROM tab2
 46079  46132   ----
 46080  46133   52
 46081  46134   -291
 46082  46135   
 46083  46136   query I rowsort
................................................................................
 46097  46150   47
 46098  46151   87
 46099  46152   10
 46100  46153   97
 46101  46154   99
 46102  46155   
 46103  46156   skipif mysql # not compatible
        46157  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46104  46158   query II rowsort label-4959
 46105  46159   SELECT col0 col2, + CAST ( - - col2 AS INTEGER ) FROM tab0
 46106  46160   ----
 46107  46161   15
 46108  46162   47
 46109  46163   87
 46110  46164   10
................................................................................
 46917  46971   
 46918  46972   skipif mysql # not compatible
 46919  46973   query I rowsort label-5048
 46920  46974   SELECT 67 + + COUNT ( * ) AS col1 FROM tab2
 46921  46975   ----
 46922  46976   70
 46923  46977   
        46978  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46924  46979   query II rowsort
 46925  46980   SELECT DISTINCT + 41 col1, col0 FROM tab2
 46926  46981   ----
 46927  46982   41
 46928  46983   46
 46929  46984   41
 46930  46985   64
................................................................................
 47347  47402   ----
 47348  47403   NULL
 47349  47404   
 47350  47405   query I rowsort
 47351  47406   SELECT + + 60 FROM tab0 WHERE NOT - col1 NOT BETWEEN - col1 + - - col1 AND NULL
 47352  47407   ----
 47353  47408   
        47409  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47354  47410   query II rowsort
 47355  47411   SELECT + 21 + + 75 col1, - 36 FROM tab1 AS cor0
 47356  47412   ----
 47357  47413   96
 47358  47414   -36
 47359  47415   96
 47360  47416   -36
................................................................................
 47407  47463   query II rowsort label-5102
 47408  47464   SELECT COUNT( * ) col0, + COUNT( * ) FROM tab0
 47409  47465   ----
 47410  47466   3
 47411  47467   3
 47412  47468   
 47413  47469   skipif mysql # not compatible
        47470  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47414  47471   query II rowsort label-5102
 47415  47472   SELECT COUNT ( * ) col0, + COUNT ( * ) FROM tab0
 47416  47473   ----
 47417  47474   3
 47418  47475   3
 47419  47476   
 47420  47477   onlyif mysql # aggregate syntax: 
................................................................................
 47812  47869   query II rowsort label-5143
 47813  47870   SELECT ALL - + COUNT( * ) col2, + COUNT( * ) * + 74 FROM tab0 AS cor0
 47814  47871   ----
 47815  47872   -3
 47816  47873   222
 47817  47874   
 47818  47875   skipif mysql # not compatible
        47876  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47819  47877   query II rowsort label-5143
 47820  47878   SELECT ALL - + COUNT ( * ) col2, + COUNT ( * ) * + 74 FROM tab0 AS cor0
 47821  47879   ----
 47822  47880   -3
 47823  47881   222
 47824  47882   
 47825  47883   skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
 49023  49081   -11
 49024  49082   68
 49025  49083   -1
 49026  49084   96
 49027  49085   -6
 49028  49086   
 49029  49087   skipif mysql # not compatible
        49088  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49030  49089   query II rowsort label-5272
 49031  49090   SELECT col2 col0, col2 / - col1 AS col1 FROM tab1
 49032  49091   ----
 49033  49092   59
 49034  49093   -11
 49035  49094   68
 49036  49095   -1
................................................................................
 49838  49897   59
 49839  49898   68
 49840  49899   68
 49841  49900   96
 49842  49901   96
 49843  49902   
 49844  49903   skipif mysql # not compatible
        49904  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49845  49905   query II rowsort label-5363
 49846  49906   SELECT CAST ( + + col2 AS INTEGER ) col1, + col2 FROM tab1
 49847  49907   ----
 49848  49908   59
 49849  49909   59
 49850  49910   68
 49851  49911   68
................................................................................
 51943  52003   
 51944  52004   skipif mysql # not compatible
 51945  52005   query I rowsort label-5600
 51946  52006   SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < ( NULL )
 51947  52007   ----
 51948  52008   0
 51949  52009   
        52010  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 51950  52011   query II rowsort
 51951  52012   SELECT - col1 col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
 51952  52013   ----
 51953  52014   -14
 51954  52015   96
 51955  52016   -47
 51956  52017   68
................................................................................
 52765  52826   query I rowsort
 52766  52827   SELECT - col2 * + + ( 68 ) col0 FROM tab1 cor0
 52767  52828   ----
 52768  52829   -4012
 52769  52830   -4624
 52770  52831   -6528
 52771  52832   
        52833  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52772  52834   query II rowsort
 52773  52835   SELECT col0 col0, + col0 AS col1 FROM tab2
 52774  52836   ----
 52775  52837   46
 52776  52838   46
 52777  52839   64
 52778  52840   64
................................................................................
 54478  54540   
 54479  54541   skipif mysql # not compatible
 54480  54542   query I rowsort label-5875
 54481  54543   SELECT - SUM ( ALL - - col2 ) AS col2 FROM tab2
 54482  54544   ----
 54483  54545   -121
 54484  54546   
        54547  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54485  54548   query II rowsort
 54486  54549   SELECT ALL + col0 col0, col1 FROM tab0
 54487  54550   ----
 54488  54551   15
 54489  54552   81
 54490  54553   87
 54491  54554   21
................................................................................
 55500  55563   query I rowsort
 55501  55564   SELECT ALL + col1 + col1 - + 60 FROM tab1 AS cor0
 55502  55565   ----
 55503  55566   -32
 55504  55567   -50
 55505  55568   34
 55506  55569   
        55570  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 55507  55571   query II rowsort
 55508  55572   SELECT + col1 col2, - col0 AS col0 FROM tab0 AS cor0
 55509  55573   ----
 55510  55574   1
 55511  55575   -97
 55512  55576   21
 55513  55577   -87
................................................................................
 56769  56833   -59
 56770  56834   5
 56771  56835   -68
 56772  56836   47
 56773  56837   -96
 56774  56838   14
 56775  56839   
        56840  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56776  56841   query II rowsort
 56777  56842   SELECT ALL + col0 col2, col0 AS col1 FROM tab0 cor0
 56778  56843   ----
 56779  56844   15
 56780  56845   15
 56781  56846   87
 56782  56847   87
................................................................................
 57074  57139   382034880
 57075  57140   
 57076  57141   query III rowsort
 57077  57142   SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - + col0 IS NOT NULL
 57078  57143   ----
 57079  57144   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 57080  57145   
        57146  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57081  57147   query II rowsort
 57082  57148   SELECT ALL - 13 * - + col0 col1, col0 * - ( - col0 ) FROM tab1
 57083  57149   ----
 57084  57150   1105
 57085  57151   7225
 57086  57152   1183
 57087  57153   8281
................................................................................
 57106  57172   query II rowsort label-6159
 57107  57173   SELECT - MAX( - col2 ) col1, + 92 FROM tab2
 57108  57174   ----
 57109  57175   23
 57110  57176   92
 57111  57177   
 57112  57178   skipif mysql # not compatible
        57179  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57113  57180   query II rowsort label-6159
 57114  57181   SELECT - MAX ( - col2 ) col1, + 92 FROM tab2
 57115  57182   ----
 57116  57183   23
 57117  57184   92
 57118  57185   
 57119  57186   query I rowsort
................................................................................
 58199  58266   
 58200  58267   skipif mysql # not compatible
 58201  58268   query I rowsort label-6276
 58202  58269   SELECT MIN ( - 28 ) FROM tab0
 58203  58270   ----
 58204  58271   -28
 58205  58272   
        58273  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58206  58274   query II rowsort
 58207  58275   SELECT 85 col2, col2 * + col0 - - col0 AS col2 FROM tab2
 58208  58276   ----
 58209  58277   85
 58210  58278   1104
 58211  58279   85
 58212  58280   2624
................................................................................
 58339  58407   -87
 58340  58408   -1600
 58341  58409   -87
 58342  58410   -3364
 58343  58411   -87
 58344  58412   -529
 58345  58413   
        58414  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58346  58415   query II rowsort
 58347  58416   SELECT ALL - col1 col2, + col0 AS col2 FROM tab0 AS cor0
 58348  58417   ----
 58349  58418   -1
 58350  58419   97
 58351  58420   -21
 58352  58421   87
................................................................................
 59768  59837   query II rowsort label-6445
 59769  59838   SELECT + + COUNT( * ) col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
 59770  59839   ----
 59771  59840   3
 59772  59841   NULL
 59773  59842   
 59774  59843   skipif mysql # not compatible
        59844  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59775  59845   query II rowsort label-6445
 59776  59846   SELECT + + COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
 59777  59847   ----
 59778  59848   3
 59779  59849   NULL
 59780  59850   
 59781  59851   query I rowsort
................................................................................
 60062  60132   97
 60063  60133   22
 60064  60134   87
 60065  60135   82
 60066  60136   15
 60067  60137   
 60068  60138   skipif mysql # not compatible
        60139  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60069  60140   query II rowsort label-6477
 60070  60141   SELECT - + col0 / - + col0 + col1 col1, col0 AS col1 FROM tab0 cor0
 60071  60142   ----
 60072  60143   2
 60073  60144   97
 60074  60145   22
 60075  60146   87
................................................................................
 60380  60451   query II rowsort label-6509
 60381  60452   SELECT 97 + + + COUNT( * ) col0, COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
 60382  60453   ----
 60383  60454   106
 60384  60455   9
 60385  60456   
 60386  60457   skipif mysql # not compatible
        60458  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60387  60459   query II rowsort label-6509
 60388  60460   SELECT 97 + + + COUNT ( * ) col0, COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
 60389  60461   ----
 60390  60462   106
 60391  60463   9
 60392  60464   
 60393  60465   query I rowsort
................................................................................
 60944  61016   query III rowsort
 60945  61017   SELECT DISTINCT * FROM tab0 WHERE NOT - col1 < - col2
 60946  61018   ----
 60947  61019   97
 60948  61020   1
 60949  61021   99
 60950  61022   
        61023  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60951  61024   query II rowsort
 60952  61025   SELECT DISTINCT - 32 col0, - col1 AS col0 FROM tab2
 60953  61026   ----
 60954  61027   -32
 60955  61028   -51
 60956  61029   -32
 60957  61030   -67
................................................................................
 61226  61299   query II rowsort label-6599
 61227  61300   SELECT DISTINCT - SUM( + - 70 ) col1, + COUNT( * ) FROM tab2, tab1 AS cor0
 61228  61301   ----
 61229  61302   630
 61230  61303   9
 61231  61304   
 61232  61305   skipif mysql # not compatible
        61306  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61233  61307   query II rowsort label-6599
 61234  61308   SELECT DISTINCT - SUM ( + - 70 ) col1, + COUNT ( * ) FROM tab2, tab1 AS cor0
 61235  61309   ----
 61236  61310   630
 61237  61311   9
 61238  61312   
 61239  61313   query I rowsort
................................................................................
 63135  63209   NULL
 63136  63210   NULL
 63137  63211   
 63138  63212   query I rowsort
 63139  63213   SELECT 78 FROM tab2 WHERE - + col1 IS NULL
 63140  63214   ----
 63141  63215   
        63216  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63142  63217   query II rowsort
 63143  63218   SELECT DISTINCT col2 col2, col0 FROM tab0
 63144  63219   ----
 63145  63220   10
 63146  63221   87
 63147  63222   47
 63148  63223   15
................................................................................
 63442  63517   query II rowsort label-6837
 63443  63518   SELECT ALL COUNT( * ) col2, COUNT( * ) * + 90 AS col0 FROM tab2
 63444  63519   ----
 63445  63520   3
 63446  63521   270
 63447  63522   
 63448  63523   skipif mysql # not compatible
        63524  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63449  63525   query II rowsort label-6837
 63450  63526   SELECT ALL COUNT ( * ) col2, COUNT ( * ) * + 90 AS col0 FROM tab2
 63451  63527   ----
 63452  63528   3
 63453  63529   270
 63454  63530   
 63455  63531   query I rowsort
................................................................................
 64622  64698   NULL
 64623  64699   0
 64624  64700   NULL
 64625  64701   0
 64626  64702   NULL
 64627  64703   
 64628  64704   skipif mysql # not compatible
        64705  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 64629  64706   query II rowsort label-6968
 64630  64707   SELECT - col2 / + + col1 col1, col2 / + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
 64631  64708   ----
 64632  64709   -99
 64633  64710   NULL
 64634  64711   0
 64635  64712   NULL
................................................................................
 65254  65331   query II rowsort label-7038
 65255  65332   SELECT ALL - + COUNT( * ) * + 69 + - ( + + 36 ) col2, + 38 FROM tab2 AS cor0
 65256  65333   ----
 65257  65334   -243
 65258  65335   38
 65259  65336   
 65260  65337   skipif mysql # not compatible
        65338  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 65261  65339   query II rowsort label-7038
 65262  65340   SELECT ALL - + COUNT ( * ) * + 69 + - ( + + 36 ) col2, + 38 FROM tab2 AS cor0
 65263  65341   ----
 65264  65342   -243
 65265  65343   38
 65266  65344   
 65267  65345   query I rowsort
................................................................................
 66010  66088   51
 66011  66089   42
 66012  66090   85
 66013  66091   42
 66014  66092   91
 66015  66093   
 66016  66094   skipif mysql # not compatible
        66095  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 66017  66096   query II rowsort label-7128
 66018  66097   SELECT ALL + 42 col0, col1 / - col0 + ( + ( col0 ) ) FROM tab1 AS cor0
 66019  66098   ----
 66020  66099   42
 66021  66100   51
 66022  66101   42
 66023  66102   85
................................................................................
 66124  66203   query II rowsort label-7141
 66125  66204   SELECT 22 + + + 48 col1, + COUNT( * ) AS col1 FROM tab1
 66126  66205   ----
 66127  66206   70
 66128  66207   3
 66129  66208   
 66130  66209   skipif mysql # not compatible
        66210  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 66131  66211   query II rowsort label-7141
 66132  66212   SELECT 22 + + + 48 col1, + COUNT ( * ) AS col1 FROM tab1
 66133  66213   ----
 66134  66214   70
 66135  66215   3
 66136  66216   
 66137  66217   onlyif mysql # aggregate syntax: 
................................................................................
 66329  66409   
 66330  66410   skipif mysql # not compatible
 66331  66411   query I rowsort label-7163
 66332  66412   SELECT + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
 66333  66413   ----
 66334  66414   46
 66335  66415   
        66416  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 66336  66417   query II rowsort
 66337  66418   SELECT ( + + ( + col2 ) ) col1, + 23 + - - col1 * - + ( 50 ) AS col1 FROM tab1
 66338  66419   ----
 66339  66420   59
 66340  66421   -227
 66341  66422   68
 66342  66423   -2327
................................................................................
 67728  67809   ----
 67729  67810   
 67730  67811   query I rowsort
 67731  67812   SELECT + 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
 67732  67813   ----
 67733  67814   9 values hashing to dea2d1b74e0cdf67806af8c417324f52
 67734  67815   
        67816  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67735  67817   query II rowsort
 67736  67818   SELECT + ( 9 ) + - col2 col1, col2 + - col1 * + ( + - col2 ) AS col1 FROM tab2
 67737  67819   ----
 67738  67820   -14
 67739  67821   1196
 67740  67822   -31
 67741  67823   3120
................................................................................
 67831  67913   query II rowsort label-7338
 67832  67914   SELECT DISTINCT CAST( NULL AS SIGNED ) + + + SUM( ALL + - 46 ) col2, + ( + - 44 ) FROM tab0
 67833  67915   ----
 67834  67916   NULL
 67835  67917   -44
 67836  67918   
 67837  67919   skipif mysql # not compatible
        67920  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67838  67921   query II rowsort label-7338
 67839  67922   SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + SUM ( ALL + - 46 ) col2, + ( + - 44 ) FROM tab0
 67840  67923   ----
 67841  67924   NULL
 67842  67925   -44
 67843  67926   
 67844  67927   query I rowsort
................................................................................
 69314  69397   
 69315  69398   skipif mysql # not compatible
 69316  69399   query I rowsort label-7495
 69317  69400   SELECT ALL - 72 + - + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
 69318  69401   ----
 69319  69402   NULL
 69320  69403   
        69404  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69321  69405   query II rowsort
 69322  69406   SELECT + col1 col0, col2 * - col1 AS col1 FROM tab2 AS cor0
 69323  69407   ----
 69324  69408   51
 69325  69409   -1173
 69326  69410   67
 69327  69411   -3886
................................................................................
 72630  72714   query I rowsort label-7865
 72631  72715   SELECT DISTINCT - col0 / + - 30 + - + 96 col0 FROM tab0
 72632  72716   ----
 72633  72717   -93
 72634  72718   -94
 72635  72719   -96
 72636  72720   
        72721  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72637  72722   query II rowsort
 72638  72723   SELECT - col0 col1, + 7 FROM tab0
 72639  72724   ----
 72640  72725   -15
 72641  72726   7
 72642  72727   -87
 72643  72728   7
................................................................................
 72728  72813   query I rowsort
 72729  72814   SELECT ALL - + col0 - 39 * 65 AS col0 FROM tab0 AS cor0
 72730  72815   ----
 72731  72816   -2550
 72732  72817   -2622
 72733  72818   -2632
 72734  72819   
        72820  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72735  72821   query II rowsort
 72736  72822   SELECT ALL - col0 - col0 + - + 47 col0, 3 FROM tab0 AS cor0
 72737  72823   ----
 72738  72824   -221
 72739  72825   3
 72740  72826   -241
 72741  72827   3
................................................................................
 76230  76316   query I rowsort
 76231  76317   SELECT + ( + - 10 ) FROM tab1
 76232  76318   ----
 76233  76319   -10
 76234  76320   -10
 76235  76321   -10
 76236  76322   
        76323  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76237  76324   query II rowsort
 76238  76325   SELECT + col0 col0, col0 AS col0 FROM tab0
 76239  76326   ----
 76240  76327   15
 76241  76328   15
 76242  76329   87
 76243  76330   87
 76244  76331   97
 76245  76332   97
 76246  76333   
        76334  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76247  76335   query II rowsort
 76248  76336   SELECT DISTINCT 33 + col2 col0, + ( - 88 ) AS col0 FROM tab0 WHERE - + col1 - 99 IS NULL
 76249  76337   ----
 76250  76338   
 76251  76339   onlyif mysql # aggregate syntax: 
 76252  76340   query I rowsort label-8263
 76253  76341   SELECT ( ( MAX( + + col1 ) ) ) FROM tab2
................................................................................
 76730  76818   query I rowsort
 76731  76819   SELECT DISTINCT - col0 * - col0 * + 15 FROM tab2 AS cor0
 76732  76820   ----
 76733  76821   31740
 76734  76822   61440
 76735  76823   84375
 76736  76824   
        76825  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76737  76826   query II rowsort
 76738  76827   SELECT 26 + col1 + 33 * + - col1 / 41 * - col0 + col1 col0, col1 FROM tab1 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
 76739  76828   ----
 76740  76829   
 76741  76830   query II rowsort
 76742  76831   SELECT + 20 * + - 53 AS col2, + 85 AS col0 FROM tab2 AS cor0
 76743  76832   ----
................................................................................
 77022  77111   query I rowsort
 77023  77112   SELECT - col2 + - + col0 AS col0 FROM tab1 cor0
 77024  77113   ----
 77025  77114   -144
 77026  77115   -147
 77027  77116   -159
 77028  77117   
        77118  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 77029  77119   query II rowsort
 77030  77120   SELECT ALL - col2 col0, col1 FROM tab2
 77031  77121   ----
 77032  77122   -23
 77033  77123   51
 77034  77124   -40
 77035  77125   77
................................................................................
 77070  77160   query II rowsort label-8351
 77071  77161   SELECT DISTINCT + col1 DIV + col1 col2, 30 AS col1 FROM tab0
 77072  77162   ----
 77073  77163   1
 77074  77164   30
 77075  77165   
 77076  77166   skipif mysql # not compatible
        77167  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 77077  77168   query II rowsort label-8351
 77078  77169   SELECT DISTINCT + col1 / + col1 col2, 30 AS col1 FROM tab0
 77079  77170   ----
 77080  77171   1
 77081  77172   30
 77082  77173   
 77083  77174   query I rowsort
................................................................................
 77373  77464   query II rowsort label-8387
 77374  77465   SELECT DISTINCT - COUNT( * ) * + COUNT( + col0 ) col0, - 44 FROM tab0 cor0
 77375  77466   ----
 77376  77467   -9
 77377  77468   -44
 77378  77469   
 77379  77470   skipif mysql # not compatible
        77471  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 77380  77472   query II rowsort label-8387
 77381  77473   SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col0 ) col0, - 44 FROM tab0 cor0
 77382  77474   ----
 77383  77475   -9
 77384  77476   -44
 77385  77477   
 77386  77478   onlyif mysql # aggregate syntax: 
................................................................................
 79359  79451   1
 79360  79452   96
 79361  79453   1
 79362  79454   96
 79363  79455   1
 79364  79456   
 79365  79457   skipif mysql # not compatible
        79458  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79366  79459   query II rowsort label-8597
 79367  79460   SELECT ALL 96 col1, CAST ( + - 36 AS INTEGER ) / - 23 FROM tab0
 79368  79461   ----
 79369  79462   96
 79370  79463   1
 79371  79464   96
 79372  79465   1
................................................................................
 80261  80354   ----
 80262  80355   -91
 80263  80356   
 80264  80357   query III rowsort
 80265  80358   SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 11 + + + col1 ) )
 80266  80359   ----
 80267  80360   
        80361  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80268  80362   query II rowsort
 80269  80363   SELECT DISTINCT - col0 - - 66 col0, col0 + 19 FROM tab0 AS cor0
 80270  80364   ----
 80271  80365   -21
 80272  80366   106
 80273  80367   -31
 80274  80368   116
................................................................................
 80294  80388   query I rowsort
 80295  80389   SELECT ( + 78 ) FROM tab1 AS cor0
 80296  80390   ----
 80297  80391   78
 80298  80392   78
 80299  80393   78
 80300  80394   
        80395  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80301  80396   query II rowsort
 80302  80397   SELECT col0 col2, col1 AS col2 FROM tab2 AS cor0
 80303  80398   ----
 80304  80399   46
 80305  80400   51
 80306  80401   64
 80307  80402   77
................................................................................
 80666  80761   query II rowsort label-8736
 80667  80762   SELECT + 30 col0, MIN( ALL col1 ) AS col0 FROM tab0
 80668  80763   ----
 80669  80764   30
 80670  80765   1
 80671  80766   
 80672  80767   skipif mysql # not compatible
        80768  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80673  80769   query II rowsort label-8736
 80674  80770   SELECT + 30 col0, MIN ( ALL col1 ) AS col0 FROM tab0
 80675  80771   ----
 80676  80772   30
 80677  80773   1
 80678  80774   
 80679  80775   query III rowsort
................................................................................
 81388  81484   104
 81389  81485   NULL
 81390  81486   11
 81391  81487   NULL
 81392  81488   7
 81393  81489   
 81394  81490   skipif mysql # not compatible
        81491  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81395  81492   query II rowsort label-8816
 81396  81493   SELECT CAST ( NULL AS INTEGER ) / col1 + + col0 * - + col2 + + 69 col1, + ( + - ( - + col0 ) ) / col1 + 7 FROM tab0 cor0
 81397  81494   ----
 81398  81495   NULL
 81399  81496   104
 81400  81497   NULL
 81401  81498   11
................................................................................
 82018  82115   ----
 82019  82116   
 82020  82117   skipif mysql # not compatible
 82021  82118   query III rowsort label-8883
 82022  82119   SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - - col1 + col0 - - 63 AND ( - col2 + - CAST ( + ( col2 ) AS INTEGER ) )
 82023  82120   ----
 82024  82121   
        82122  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82025  82123   query II rowsort
 82026  82124   SELECT + col0 - - col1 * - 43 * - ( - 13 ) * + 45 + col1 * - col2 * + col0 col1, col1 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
 82027  82125   ----
 82028  82126   
 82029  82127   onlyif mysql # CAST syntax: SIGNED type: 
 82030  82128   query I rowsort label-8885
 82031  82129   SELECT + CAST( NULL AS SIGNED ) + - 7 FROM tab0
................................................................................
 84591  84689   ----
 84592  84690   
 84593  84691   query III rowsort
 84594  84692   SELECT * FROM tab1 WHERE NOT + 38 / + - col0 + + + ( + col0 ) * + - col0 IS NULL
 84595  84693   ----
 84596  84694   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 84597  84695   
        84696  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 84598  84697   query II rowsort
 84599  84698   SELECT + 62 col0, - col0 AS col2 FROM tab0
 84600  84699   ----
 84601  84700   62
 84602  84701   -15
 84603  84702   62
 84604  84703   -87
................................................................................
 84929  85028   query II rowsort label-9194
 84930  85029   SELECT COUNT( * ) col1, MIN( ALL - + col0 ) AS col1 FROM tab1 AS cor0
 84931  85030   ----
 84932  85031   3
 84933  85032   -91
 84934  85033   
 84935  85034   skipif mysql # not compatible
        85035  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 84936  85036   query II rowsort label-9194
 84937  85037   SELECT COUNT ( * ) col1, MIN ( ALL - + col0 ) AS col1 FROM tab1 AS cor0
 84938  85038   ----
 84939  85039   3
 84940  85040   -91
 84941  85041   
 84942  85042   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 85347  85447   query II rowsort label-9233
 85348  85448   SELECT ALL - COUNT( * ) col2, 78 + + 52 FROM tab2 AS cor0
 85349  85449   ----
 85350  85450   -3
 85351  85451   130
 85352  85452   
 85353  85453   skipif mysql # not compatible
        85454  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85354  85455   query II rowsort label-9233
 85355  85456   SELECT ALL - COUNT ( * ) col2, 78 + + 52 FROM tab2 AS cor0
 85356  85457   ----
 85357  85458   -3
 85358  85459   130
 85359  85460   
 85360  85461   onlyif mysql # aggregate syntax: 
................................................................................
 86040  86141   1
 86041  86142   18
 86042  86143   21
 86043  86144   18
 86044  86145   81
 86045  86146   
 86046  86147   skipif mysql # not compatible
        86148  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86047  86149   query II rowsort label-9307
 86048  86150   SELECT CAST ( 18 AS INTEGER ) col0, col1 FROM tab0 AS cor0
 86049  86151   ----
 86050  86152   18
 86051  86153   1
 86052  86154   18
 86053  86155   21
................................................................................
 87980  88082   
 87981  88083   skipif mysql # not compatible
 87982  88084   query I rowsort label-9505
 87983  88085   SELECT ALL + 54 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
 87984  88086   ----
 87985  88087   57
 87986  88088   
        88089  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 87987  88090   query II rowsort
 87988  88091   SELECT ALL - ( - + ( + col2 ) ) col2, col0 FROM tab1 AS cor0
 87989  88092   ----
 87990  88093   59
 87991  88094   85
 87992  88095   68
 87993  88096   91
................................................................................
 88106  88209   
 88107  88210   skipif mysql # not compatible
 88108  88211   query III rowsort label-9516
 88109  88212   SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) * - + col0 * col0 * - col0 * + + col0 + - col0 IS NULL
 88110  88213   ----
 88111  88214   9 values hashing to c4b42765dff94eaaa46040e537fb43b7
 88112  88215   
        88216  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 88113  88217   query II rowsort
 88114  88218   SELECT ALL - col0 col2, + col0 FROM tab0 cor0
 88115  88219   ----
 88116  88220   -15
 88117  88221   15
 88118  88222   -87
 88119  88223   87
................................................................................
 88996  89100   -99
 88997  89101   451
 88998  89102   -10
 88999  89103   6608
 89000  89104   -47
 89001  89105   
 89002  89106   skipif mysql # not compatible
        89107  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89003  89108   query II rowsort label-9610
 89004  89109   SELECT ALL col1 * CAST ( col1 AS INTEGER ) + + col2 col2, - col2 AS col0 FROM tab0
 89005  89110   ----
 89006  89111   100
 89007  89112   -99
 89008  89113   451
 89009  89114   -10
................................................................................
 89883  89988   query II rowsort label-9706
 89884  89989   SELECT ALL MAX( col1 ) * - COUNT( * ) col2, 54 + - 56 AS col1 FROM tab0
 89885  89990   ----
 89886  89991   -243
 89887  89992   -2
 89888  89993   
 89889  89994   skipif mysql # not compatible
        89995  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89890  89996   query II rowsort label-9706
 89891  89997   SELECT ALL MAX ( col1 ) * - COUNT ( * ) col2, 54 + - 56 AS col1 FROM tab0
 89892  89998   ----
 89893  89999   -243
 89894  90000   -2
 89895  90001   
 89896  90002   onlyif mysql # aggregate syntax: 
................................................................................
 91968  92074   
 91969  92075   skipif mysql # not compatible
 91970  92076   query I rowsort label-9930
 91971  92077   SELECT - + MAX ( + - 24 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
 91972  92078   ----
 91973  92079   24
 91974  92080   
        92081  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 91975  92082   query II rowsort
 91976  92083   SELECT ALL 64 col1, - col1 * + 13 AS col2 FROM tab0
 91977  92084   ----
 91978  92085   64
 91979  92086   -1053
 91980  92087   64
 91981  92088   -13

Changes to test/random/aggregates/slt_good_100.test.

   977    977   query II rowsort label-99
   978    978   SELECT ALL - 38 col0, + MIN( ALL + + col1 ) * MAX( DISTINCT - col0 ) * 13 AS col2 FROM tab2 AS cor0
   979    979   ----
   980    980   -38
   981    981   -30498
   982    982   
   983    983   skipif mysql # not compatible
          984  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   984    985   query II rowsort label-99
   985    986   SELECT ALL - 38 col0, + MIN ( ALL + + col1 ) * MAX ( DISTINCT - col0 ) * 13 AS col2 FROM tab2 AS cor0
   986    987   ----
   987    988   -38
   988    989   -30498
   989    990   
   990    991   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
  1011   1012   15
  1012   1013   -47
  1013   1014   87
  1014   1015   -10
  1015   1016   97
  1016   1017   -99
  1017   1018   
         1019  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  1018   1020   query II rowsort
  1019   1021   SELECT col1 col0, - 64 FROM tab0 AS cor0
  1020   1022   ----
  1021   1023   1
  1022   1024   -64
  1023   1025   21
  1024   1026   -64
................................................................................
  1995   1997   54
  1996   1998   85
  1997   1999   54
  1998   2000   85
  1999   2001   54
  2000   2002   85
  2001   2003   
         2004  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2002   2005   query II rowsort
  2003   2006   SELECT - + col0 col2, col0 * 68 FROM tab2 cor0
  2004   2007   ----
  2005   2008   -46
  2006   2009   3128
  2007   2010   -64
  2008   2011   4352
................................................................................
  2271   2274   1632
  2272   2275   94
  2273   2276   2839
  2274   2277   94
  2275   2278   4117
  2276   2279   
  2277   2280   skipif mysql # not compatible
         2281  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2278   2282   query II rowsort label-252
  2279   2283   SELECT DISTINCT 94 col1, col0 / - CAST ( + 42 AS INTEGER ) + - 72 * + - col2 + - + col2 AS col2 FROM tab2 AS cor0
  2280   2284   ----
  2281   2285   94
  2282   2286   1632
  2283   2287   94
  2284   2288   2839
................................................................................
  2343   2347   query II rowsort label-259
  2344   2348   SELECT DISTINCT COUNT( * ) col0, CAST( + MAX( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
  2345   2349   ----
  2346   2350   3
  2347   2351   NULL
  2348   2352   
  2349   2353   skipif mysql # not compatible
         2354  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2350   2355   query II rowsort label-259
  2351   2356   SELECT DISTINCT COUNT ( * ) col0, CAST ( + MAX ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
  2352   2357   ----
  2353   2358   3
  2354   2359   NULL
  2355   2360   
  2356   2361   onlyif mysql # DIV for integer division: 
................................................................................
  2585   2590   ----
  2586   2591   185
  2587   2592   
  2588   2593   query III rowsort
  2589   2594   SELECT * FROM tab0 cor0 WHERE NOT col2 = NULL
  2590   2595   ----
  2591   2596   
         2597  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2592   2598   query II rowsort
  2593   2599   SELECT - - col0 col0, col2 FROM tab0 AS cor0
  2594   2600   ----
  2595   2601   15
  2596   2602   47
  2597   2603   87
  2598   2604   10
................................................................................
  2614   2620   -51
  2615   2621   6410
  2616   2622   -85
  2617   2623   3871
  2618   2624   -91
  2619   2625   5245
  2620   2626   
         2627  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2621   2628   query II rowsort
  2622   2629   SELECT col0 col1, 29 + col0 AS col1 FROM tab2 AS cor0
  2623   2630   ----
  2624   2631   46
  2625   2632   75
  2626   2633   64
  2627   2634   93
................................................................................
  2739   2746   query II rowsort label-301
  2740   2747   SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 * - col2 col2, - 9 FROM tab0 AS cor0
  2741   2748   ----
  2742   2749   NULL
  2743   2750   -9
  2744   2751   
  2745   2752   skipif mysql # not compatible
         2753  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2746   2754   query II rowsort label-301
  2747   2755   SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 * - col2 col2, - 9 FROM tab0 AS cor0
  2748   2756   ----
  2749   2757   NULL
  2750   2758   -9
  2751   2759   
  2752   2760   onlyif mysql # aggregate syntax: 
................................................................................
  2963   2971   NULL
  2964   2972   85
  2965   2973   NULL
  2966   2974   91
  2967   2975   NULL
  2968   2976   
  2969   2977   skipif mysql # not compatible
         2978  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2970   2979   query II rowsort label-328
  2971   2980   SELECT col0 col0, + col0 * CAST ( NULL AS REAL ) + - col1 FROM tab1
  2972   2981   ----
  2973   2982   51
  2974   2983   NULL
  2975   2984   85
  2976   2985   NULL
................................................................................
  3252   3261   -96
  3253   3262   47
  3254   3263   -68
  3255   3264   5
  3256   3265   -59
  3257   3266   
  3258   3267   skipif mysql # not compatible
         3268  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3259   3269   query II rowsort label-359
  3260   3270   SELECT + col1 col0, col0 / col0 * - col2 FROM tab1 AS cor0
  3261   3271   ----
  3262   3272   14
  3263   3273   -96
  3264   3274   47
  3265   3275   -68
................................................................................
  3633   3643   query II rowsort label-395
  3634   3644   SELECT COUNT( * ) col2, MIN( ALL + - col0 ) FROM tab0
  3635   3645   ----
  3636   3646   3
  3637   3647   -97
  3638   3648   
  3639   3649   skipif mysql # not compatible
         3650  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3640   3651   query II rowsort label-395
  3641   3652   SELECT COUNT ( * ) col2, MIN ( ALL + - col0 ) FROM tab0
  3642   3653   ----
  3643   3654   3
  3644   3655   -97
  3645   3656   
  3646   3657   onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................
  6106   6117   
  6107   6118   skipif mysql # not compatible
  6108   6119   query I rowsort label-671
  6109   6120   SELECT ALL MIN ( - col1 ) * + + 86 / + 65 FROM tab0 AS cor0 WHERE col1 < - + 36
  6110   6121   ----
  6111   6122   NULL
  6112   6123   
         6124  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  6113   6125   query II rowsort
  6114   6126   SELECT - col1 col0, col1 * + col2 FROM tab0 AS cor0
  6115   6127   ----
  6116   6128   -1
  6117   6129   99
  6118   6130   -21
  6119   6131   210
................................................................................
  7393   7405   ----
  7394   7406   
  7395   7407   skipif mysql # not compatible
  7396   7408   query III rowsort label-812
  7397   7409   SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = + + col0 - col0
  7398   7410   ----
  7399   7411   
         7412  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7400   7413   query II rowsort
  7401   7414   SELECT + col1 col2, 63 FROM tab1 AS cor0
  7402   7415   ----
  7403   7416   14
  7404   7417   63
  7405   7418   47
  7406   7419   63
................................................................................
  9368   9381   query II rowsort label-1024
  9369   9382   SELECT - + 65 col2, 16 * - COUNT( * ) FROM tab1 AS cor0
  9370   9383   ----
  9371   9384   -65
  9372   9385   -48
  9373   9386   
  9374   9387   skipif mysql # not compatible
         9388  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9375   9389   query II rowsort label-1024
  9376   9390   SELECT - + 65 col2, 16 * - COUNT ( * ) FROM tab1 AS cor0
  9377   9391   ----
  9378   9392   -65
  9379   9393   -48
  9380   9394   
  9381   9395   query III rowsort
................................................................................
 11615  11629   
 11616  11630   skipif mysql # not compatible
 11617  11631   query I rowsort label-1271
 11618  11632   SELECT - CAST ( NULL AS INTEGER ) + - - 74 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
 11619  11633   ----
 11620  11634   9 values hashing to cd7a7901e47c15155404aff0d216fe0b
 11621  11635   
        11636  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11622  11637   query II rowsort
 11623  11638   SELECT DISTINCT col0 col1, - col1 AS col0 FROM tab0
 11624  11639   ----
 11625  11640   15
 11626  11641   -81
 11627  11642   87
 11628  11643   -21
................................................................................
 11736  11751   query II rowsort label-1287
 11737  11752   SELECT + + 1 col2, ( + + 10 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
 11738  11753   ----
 11739  11754   1
 11740  11755   7
 11741  11756   
 11742  11757   skipif mysql # not compatible
        11758  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11743  11759   query II rowsort label-1287
 11744  11760   SELECT + + 1 col2, ( + + 10 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
 11745  11761   ----
 11746  11762   1
 11747  11763   7
 11748  11764   
 11749  11765   onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
 12448  12464   query I rowsort
 12449  12465   SELECT + 43 * col2 AS col2 FROM tab2 AS cor0
 12450  12466   ----
 12451  12467   1720
 12452  12468   2494
 12453  12469   989
 12454  12470   
        12471  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12455  12472   query II rowsort
 12456  12473   SELECT + + col2 col1, - col2 FROM tab0 AS cor0
 12457  12474   ----
 12458  12475   10
 12459  12476   -10
 12460  12477   47
 12461  12478   -47
................................................................................
 14333  14350   query II rowsort label-1577
 14334  14351   SELECT AVG ( ALL CAST( NULL AS SIGNED ) ) col1, 49 FROM tab0
 14335  14352   ----
 14336  14353   NULL
 14337  14354   49
 14338  14355   
 14339  14356   skipif mysql # not compatible
        14357  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14340  14358   query II rowsort label-1577
 14341  14359   SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) col1, 49 FROM tab0
 14342  14360   ----
 14343  14361   NULL
 14344  14362   49
 14345  14363   
 14346  14364   query I rowsort
................................................................................
 14490  14508   3880
 14491  14509   -87
 14492  14510   283
 14493  14511   -97
 14494  14512   172
 14495  14513   
 14496  14514   skipif mysql # not compatible
        14515  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14497  14516   query II rowsort label-1596
 14498  14517   SELECT - + col0 col1, + 73 - - col1 * - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
 14499  14518   ----
 14500  14519   -15
 14501  14520   3880
 14502  14521   -87
 14503  14522   283
................................................................................
 14705  14724   ----
 14706  14725   
 14707  14726   query I rowsort
 14708  14727   SELECT + - col0 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) <= 70
 14709  14728   ----
 14710  14729   -51
 14711  14730   
        14731  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14712  14732   query II rowsort
 14713  14733   SELECT ALL + col0 * - col2 * + + 0 col0, 26 * + col1 FROM tab2
 14714  14734   ----
 14715  14735   0
 14716  14736   1326
 14717  14737   0
 14718  14738   1742
................................................................................
 16011  16031   29
 16012  16032   46
 16013  16033   29
 16014  16034   46
 16015  16035   29
 16016  16036   46
 16017  16037   
        16038  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16018  16039   query II rowsort
 16019  16040   SELECT - col1 col0, col1 + + 35 AS col1 FROM tab1
 16020  16041   ----
 16021  16042   -14
 16022  16043   49
 16023  16044   -47
 16024  16045   82
................................................................................
 16390  16411   
 16391  16412   skipif mysql # not compatible
 16392  16413   query I rowsort label-1801
 16393  16414   SELECT 80 + - COUNT ( * ) + 35 AS col0 FROM tab2
 16394  16415   ----
 16395  16416   112
 16396  16417   
        16418  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16397  16419   query II rowsort
 16398  16420   SELECT ALL - col2 col2, 4 FROM tab0
 16399  16421   ----
 16400  16422   -10
 16401  16423   4
 16402  16424   -47
 16403  16425   4
................................................................................
 17323  17345   -1
 17324  17346   40
 17325  17347   -1
 17326  17348   58
 17327  17349   -1
 17328  17350   
 17329  17351   skipif mysql # not compatible
        17352  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 17330  17353   query II rowsort label-1902
 17331  17354   SELECT DISTINCT col2 col0, + col2 / + - col2 AS col0 FROM tab2
 17332  17355   ----
 17333  17356   23
 17334  17357   -1
 17335  17358   40
 17336  17359   -1
................................................................................
 19306  19329   -5385
 19307  19330   0
 19308  19331   -5385
 19309  19332   0
 19310  19333   -5385
 19311  19334   
 19312  19335   skipif mysql # not compatible
        19336  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19313  19337   query II rowsort label-2107
 19314  19338   SELECT ALL - col0 / - 95 col2, + ( - 86 ) * 63 - 88 / - ( - col1 ) + - - 34 FROM tab2
 19315  19339   ----
 19316  19340   0
 19317  19341   -5385
 19318  19342   0
 19319  19343   -5385
................................................................................
 19395  19419   query II rowsort label-2118
 19396  19420   SELECT ALL CAST( NULL AS SIGNED ) + 28 col1, ( + SUM( DISTINCT col2 ) ) FROM tab1
 19397  19421   ----
 19398  19422   NULL
 19399  19423   223
 19400  19424   
 19401  19425   skipif mysql # not compatible
        19426  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19402  19427   query II rowsort label-2118
 19403  19428   SELECT ALL CAST ( NULL AS INTEGER ) + 28 col1, ( + SUM ( DISTINCT col2 ) ) FROM tab1
 19404  19429   ----
 19405  19430   NULL
 19406  19431   223
 19407  19432   
 19408  19433   query I rowsort
................................................................................
 19422  19447   query I rowsort
 19423  19448   SELECT DISTINCT + ( - - col0 ) * - col0 AS col1 FROM tab1 AS cor0
 19424  19449   ----
 19425  19450   -2601
 19426  19451   -7225
 19427  19452   -8281
 19428  19453   
        19454  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19429  19455   query II rowsort
 19430  19456   SELECT ALL - col1 * 80 col1, - 28 AS col2 FROM tab1 cor0
 19431  19457   ----
 19432  19458   -1120
 19433  19459   -28
 19434  19460   -3760
 19435  19461   -28
................................................................................
 21500  21526   query I rowsort
 21501  21527   SELECT ALL ( - 83 ) * col0 + + col1 * col0 FROM tab2
 21502  21528   ----
 21503  21529   -1200
 21504  21530   -1472
 21505  21531   -384
 21506  21532   
        21533  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21507  21534   query II rowsort
 21508  21535   SELECT DISTINCT 87 col1, - 10 + + col2 AS col1 FROM tab1 AS cor0
 21509  21536   ----
 21510  21537   87
 21511  21538   49
 21512  21539   87
 21513  21540   58
................................................................................
 21960  21987   49
 21961  21988   2479
 21962  21989   49
 21963  21990   2849
 21964  21991   49
 21965  21992   
 21966  21993   skipif mysql # not compatible
        21994  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21967  21995   query II rowsort label-2397
 21968  21996   SELECT DISTINCT CAST ( - - col1 AS INTEGER ) * + + 37 col0, 49 FROM tab2 AS cor0
 21969  21997   ----
 21970  21998   1887
 21971  21999   49
 21972  22000   2479
 21973  22001   49
................................................................................
 22703  22731   -1
 22704  22732   64
 22705  22733   0
 22706  22734   75
 22707  22735   0
 22708  22736   
 22709  22737   skipif mysql # not compatible
        22738  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22710  22739   query II rowsort label-2486
 22711  22740   SELECT ALL + + col0 col2, ( - 51 ) / col0 FROM tab2 AS cor0
 22712  22741   ----
 22713  22742   46
 22714  22743   -1
 22715  22744   64
 22716  22745   0
................................................................................
 24277  24306   NULL
 24278  24307   40
 24279  24308   NULL
 24280  24309   58
 24281  24310   NULL
 24282  24311   
 24283  24312   skipif mysql # not compatible
        24313  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24284  24314   query II rowsort label-2647
 24285  24315   SELECT col2 col2, CAST ( NULL AS REAL ) AS col2 FROM tab2
 24286  24316   ----
 24287  24317   23
 24288  24318   NULL
 24289  24319   40
 24290  24320   NULL
................................................................................
 25133  25163   SELECT + col1 col2 FROM tab2 WHERE NOT col2 IS NOT NULL
 25134  25164   ----
 25135  25165   
 25136  25166   query I rowsort
 25137  25167   SELECT DISTINCT + + 76 FROM tab1 WHERE NOT ( NULL ) <> - ( + col0 ) * - col0 - col2
 25138  25168   ----
 25139  25169   
        25170  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25140  25171   query II rowsort
 25141  25172   SELECT ALL 35 col0, + 48 FROM tab1 cor0
 25142  25173   ----
 25143  25174   35
 25144  25175   48
 25145  25176   35
 25146  25177   48
................................................................................
 25514  25545   ----
 25515  25546   NULL
 25516  25547   
 25517  25548   query I rowsort
 25518  25549   SELECT DISTINCT col2 FROM tab1 WHERE NOT - + col2 IS NOT NULL
 25519  25550   ----
 25520  25551   
        25552  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25521  25553   query II rowsort
 25522  25554   SELECT col1 col0, + col2 * col1 * - - 8 FROM tab0
 25523  25555   ----
 25524  25556   1
 25525  25557   792
 25526  25558   21
 25527  25559   1680
................................................................................
 27940  27972   97
 27941  27973   59
 27942  27974   
 27943  27975   query III rowsort
 27944  27976   SELECT ALL * FROM tab2 WHERE ( + 2 ) IN ( col0 )
 27945  27977   ----
 27946  27978   
        27979  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27947  27980   query II rowsort
 27948  27981   SELECT ALL 48 col1, - 61 * + col1 + - col2 FROM tab0
 27949  27982   ----
 27950  27983   48
 27951  27984   -1291
 27952  27985   48
 27953  27986   -160
................................................................................
 27994  28027   query II rowsort label-3066
 27995  28028   SELECT - 45 col1, MAX( + 38 ) FROM tab1
 27996  28029   ----
 27997  28030   -45
 27998  28031   38
 27999  28032   
 28000  28033   skipif mysql # not compatible
        28034  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28001  28035   query II rowsort label-3066
 28002  28036   SELECT - 45 col1, MAX ( + 38 ) FROM tab1
 28003  28037   ----
 28004  28038   -45
 28005  28039   38
 28006  28040   
 28007  28041   query I rowsort
................................................................................
 28150  28184   ----
 28151  28185   
 28152  28186   skipif mysql # not compatible
 28153  28187   query I rowsort label-3083
 28154  28188   SELECT DISTINCT + 97 FROM tab1 WHERE NOT + - 77 + - col2 >= - col0 * + - col2 * + - CAST ( NULL AS INTEGER ) + + col2 * + + 95 + col1
 28155  28189   ----
 28156  28190   
        28191  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28157  28192   query II rowsort
 28158  28193   SELECT col1 col0, 40 + - col1 FROM tab1 AS cor0
 28159  28194   ----
 28160  28195   14
 28161  28196   26
 28162  28197   47
 28163  28198   -7
................................................................................
 28844  28879   query I rowsort label-3156
 28845  28880   SELECT CAST ( col2 AS INTEGER ) / col0 + - 4 + + col2 + + col0 + - 69 FROM tab1 cor0
 28846  28881   ----
 28847  28882   71
 28848  28883   75
 28849  28884   86
 28850  28885   
        28886  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28851  28887   query II rowsort
 28852  28888   SELECT DISTINCT col2 col0, col1 AS col1 FROM tab1 AS cor0
 28853  28889   ----
 28854  28890   59
 28855  28891   5
 28856  28892   68
 28857  28893   47
................................................................................
 29694  29730   query I rowsort
 29695  29731   SELECT DISTINCT + 82 + + + col1 AS col0 FROM tab1
 29696  29732   ----
 29697  29733   129
 29698  29734   87
 29699  29735   96
 29700  29736   
        29737  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29701  29738   query II rowsort
 29702  29739   SELECT + col1 col2, col1 FROM tab2
 29703  29740   ----
 29704  29741   51
 29705  29742   51
 29706  29743   67
 29707  29744   67
................................................................................
 29786  29823   0
 29787  29824   21
 29788  29825   8
 29789  29826   81
 29790  29827   0
 29791  29828   
 29792  29829   skipif mysql # not compatible
        29830  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29793  29831   query II rowsort label-3259
 29794  29832   SELECT DISTINCT col1 col1, + col0 / + + col2 AS col0 FROM tab0 AS cor0
 29795  29833   ----
 29796  29834   1
 29797  29835   0
 29798  29836   21
 29799  29837   8
................................................................................
 30075  30113   query II rowsort label-3287
 30076  30114   SELECT ALL COUNT( * ) * + 61 + + MAX( - ( - col0 ) ) col0, 66 AS col0 FROM tab2
 30077  30115   ----
 30078  30116   258
 30079  30117   66
 30080  30118   
 30081  30119   skipif mysql # not compatible
        30120  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30082  30121   query II rowsort label-3287
 30083  30122   SELECT ALL COUNT ( * ) * + 61 + + MAX ( - ( - col0 ) ) col0, 66 AS col0 FROM tab2
 30084  30123   ----
 30085  30124   258
 30086  30125   66
 30087  30126   
 30088  30127   query I rowsort
................................................................................
 30438  30477   query I rowsort
 30439  30478   SELECT DISTINCT 38 + - col0 * - col2 FROM tab2 AS cor0
 30440  30479   ----
 30441  30480   1096
 30442  30481   2598
 30443  30482   4388
 30444  30483   
        30484  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30445  30485   query II rowsort
 30446  30486   SELECT DISTINCT + - col2 col2, - ( - 92 ) FROM tab2 AS cor0
 30447  30487   ----
 30448  30488   -23
 30449  30489   92
 30450  30490   -40
 30451  30491   92
................................................................................
 30540  30580   14
 30541  30581   
 30542  30582   query I rowsort
 30543  30583   SELECT DISTINCT ( 48 ) * 3 AS col1 FROM tab0
 30544  30584   ----
 30545  30585   144
 30546  30586   
        30587  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30547  30588   query II rowsort
 30548  30589   SELECT DISTINCT + 56 * - col2 col1, - 2 AS col2 FROM tab0
 30549  30590   ----
 30550  30591   -2632
 30551  30592   -2
 30552  30593   -5544
 30553  30594   -2
................................................................................
 32470  32511   query I rowsort
 32471  32512   SELECT ALL col2 + - 43 AS col2 FROM tab0
 32472  32513   ----
 32473  32514   -33
 32474  32515   4
 32475  32516   56
 32476  32517   
        32518  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32477  32519   query II rowsort
 32478  32520   SELECT - col0 col1, + col1 * col1 FROM tab1
 32479  32521   ----
 32480  32522   -51
 32481  32523   196
 32482  32524   -85
 32483  32525   25
 32484  32526   -91
 32485  32527   2209
 32486  32528   
        32529  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32487  32530   query II rowsort
 32488  32531   SELECT DISTINCT - col1 col0, - col2 AS col2 FROM tab1
 32489  32532   ----
 32490  32533   -14
 32491  32534   -96
 32492  32535   -47
 32493  32536   -68
................................................................................
 32975  33018   skipif mysql # not compatible
 32976  33019   query II rowsort label-3603
 32977  33020   SELECT DISTINCT 75 AS col0, COUNT ( * ) AS col2 FROM tab0
 32978  33021   ----
 32979  33022   75
 32980  33023   3
 32981  33024   
        33025  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32982  33026   query II rowsort
 32983  33027   SELECT col2 col1, - col2 AS col0 FROM tab1 AS cor0
 32984  33028   ----
 32985  33029   59
 32986  33030   -59
 32987  33031   68
 32988  33032   -68
................................................................................
 33172  33216   query II rowsort label-3625
 33173  33217   SELECT ALL - 79 + - 72 + COUNT( * ) col1, COUNT( * ) FROM tab1 AS cor0
 33174  33218   ----
 33175  33219   -148
 33176  33220   3
 33177  33221   
 33178  33222   skipif mysql # not compatible
        33223  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33179  33224   query II rowsort label-3625
 33180  33225   SELECT ALL - 79 + - 72 + COUNT ( * ) col1, COUNT ( * ) FROM tab1 AS cor0
 33181  33226   ----
 33182  33227   -148
 33183  33228   3
 33184  33229   
 33185  33230   onlyif mysql # DIV for integer division: 
................................................................................
 33726  33771   query I rowsort
 33727  33772   SELECT - col1 - + + col1 FROM tab1 AS cor0
 33728  33773   ----
 33729  33774   -10
 33730  33775   -28
 33731  33776   -94
 33732  33777   
        33778  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33733  33779   query II rowsort
 33734  33780   SELECT col1 - + col2 col0, + 4 AS col0 FROM tab1
 33735  33781   ----
 33736  33782   -21
 33737  33783   4
 33738  33784   -54
 33739  33785   4
................................................................................
 34114  34160   query II rowsort label-3727
 34115  34161   SELECT - CAST( NULL AS SIGNED ) col2, - MAX( DISTINCT - col0 ) AS col2 FROM tab2
 34116  34162   ----
 34117  34163   NULL
 34118  34164   46
 34119  34165   
 34120  34166   skipif mysql # not compatible
        34167  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34121  34168   query II rowsort label-3727
 34122  34169   SELECT - CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT - col0 ) AS col2 FROM tab2
 34123  34170   ----
 34124  34171   NULL
 34125  34172   46
 34126  34173   
 34127  34174   onlyif mysql # aggregate syntax: 
................................................................................
 35431  35478   skipif mysql # not compatible
 35432  35479   query I rowsort label-3871
 35433  35480   SELECT DISTINCT + col2 / 92 * - col1 + 14 FROM tab0
 35434  35481   ----
 35435  35482   13
 35436  35483   14
 35437  35484   
        35485  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35438  35486   query II rowsort
 35439  35487   SELECT + col0 * col0 col1, 46 AS col1 FROM tab2
 35440  35488   ----
 35441  35489   2116
 35442  35490   46
 35443  35491   4096
 35444  35492   46
................................................................................
 36928  36976   92
 36929  36977   870
 36930  36978   92
 36931  36979   870
 36932  36980   92
 36933  36981   870
 36934  36982   
        36983  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 36935  36984   query II rowsort
 36936  36985   SELECT ALL - col2 col1, 18 FROM tab2 AS cor0
 36937  36986   ----
 36938  36987   -23
 36939  36988   18
 36940  36989   -40
 36941  36990   18
................................................................................
 37385  37434   query I rowsort label-4084
 37386  37435   SELECT DISTINCT col0 + + + 73 + + col2 * + ( + + col0 ) / col0 * + + col1 FROM tab0
 37387  37436   ----
 37388  37437   269
 37389  37438   370
 37390  37439   3895
 37391  37440   
        37441  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37392  37442   query II rowsort
 37393  37443   SELECT - 36 col2, + col1 AS col0 FROM tab2
 37394  37444   ----
 37395  37445   -36
 37396  37446   51
 37397  37447   -36
 37398  37448   67
................................................................................
 38100  38150   query III rowsort
 38101  38151   SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col0 ) >= 80
 38102  38152   ----
 38103  38153   51
 38104  38154   14
 38105  38155   96
 38106  38156   
        38157  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38107  38158   query II rowsort
 38108  38159   SELECT DISTINCT + col1 col0, 92 FROM tab0 AS cor0
 38109  38160   ----
 38110  38161   1
 38111  38162   92
 38112  38163   21
 38113  38164   92
................................................................................
 38237  38288   18
 38238  38289   10
 38239  38290   18
 38240  38291   47
 38241  38292   18
 38242  38293   99
 38243  38294   
        38295  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38244  38296   query II rowsort
 38245  38297   SELECT + col1 col1, + ( col1 ) FROM tab0 AS cor0
 38246  38298   ----
 38247  38299   1
 38248  38300   1
 38249  38301   21
 38250  38302   21
................................................................................
 38346  38398   
 38347  38399   skipif mysql # not compatible
 38348  38400   query I rowsort label-4191
 38349  38401   SELECT - COUNT ( * ) * - + COUNT ( * ) / + + COUNT ( * ) FROM tab0 AS cor0
 38350  38402   ----
 38351  38403   3
 38352  38404   
        38405  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38353  38406   query II rowsort
 38354  38407   SELECT - col2 * col2 col0, - col2 FROM tab0 AS cor0
 38355  38408   ----
 38356  38409   -100
 38357  38410   -10
 38358  38411   -2209
 38359  38412   -47
................................................................................
 38736  38789   query I rowsort
 38737  38790   SELECT DISTINCT + col1 * - 37 + + + col0 FROM tab1 AS cor0
 38738  38791   ----
 38739  38792   -100
 38740  38793   -1648
 38741  38794   -467
 38742  38795   
        38796  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38743  38797   query II rowsort
 38744  38798   SELECT + + 62 - + 16 * 49 col1, - 46 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
 38745  38799   ----
 38746  38800   -722
 38747  38801   -46
 38748  38802   -722
 38749  38803   -46
................................................................................
 41398  41452   query II rowsort label-4523
 41399  41453   SELECT DISTINCT + CAST( + 48 AS SIGNED ) col0, 61 DIV 65 * + col1 AS col1 FROM tab0
 41400  41454   ----
 41401  41455   48
 41402  41456   0
 41403  41457   
 41404  41458   skipif mysql # not compatible
        41459  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41405  41460   query II rowsort label-4523
 41406  41461   SELECT DISTINCT + CAST ( + 48 AS INTEGER ) col0, 61 / 65 * + col1 AS col1 FROM tab0
 41407  41462   ----
 41408  41463   48
 41409  41464   0
 41410  41465   
 41411  41466   onlyif mysql # aggregate syntax: 
................................................................................
 41949  42004   query II rowsort label-4587
 41950  42005   SELECT DISTINCT - 2 col1, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
 41951  42006   ----
 41952  42007   -2
 41953  42008   3
 41954  42009   
 41955  42010   skipif mysql # not compatible
        42011  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41956  42012   query II rowsort label-4587
 41957  42013   SELECT DISTINCT - 2 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
 41958  42014   ----
 41959  42015   -2
 41960  42016   3
 41961  42017   
 41962  42018   onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
 41997  42053   SELECT ALL col2 * + 7 * - + col0 FROM tab1 AS cor0 WHERE NULL > 35
 41998  42054   ----
 41999  42055   
 42000  42056   query III rowsort
 42001  42057   SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 + + 73 + + + col2 + - col0 * 20 / + col2 * - 57 + col1
 42002  42058   ----
 42003  42059   
        42060  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42004  42061   query II rowsort
 42005  42062   SELECT - + col0 col0, + col1 + - + 33 AS col0 FROM tab1 AS cor0
 42006  42063   ----
 42007  42064   -51
 42008  42065   -19
 42009  42066   -85
 42010  42067   -28
................................................................................
 43909  43966   10
 43910  43967   NULL
 43911  43968   47
 43912  43969   NULL
 43913  43970   99
 43914  43971   
 43915  43972   skipif mysql # not compatible
        43973  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43916  43974   query II rowsort label-4797
 43917  43975   SELECT + + 87 * - CAST ( NULL AS INTEGER ) col1, col2 FROM tab0 AS cor0
 43918  43976   ----
 43919  43977   NULL
 43920  43978   10
 43921  43979   NULL
 43922  43980   47
................................................................................
 44295  44353   59
 44296  44354   -64
 44297  44355   68
 44298  44356   -115
 44299  44357   96
 44300  44358   -110
 44301  44359   
        44360  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 44302  44361   query II rowsort
 44303  44362   SELECT DISTINCT - col0 col1, 4 + - ( - - 58 ) + + - col2 AS col0 FROM tab1
 44304  44363   ----
 44305  44364   -51
 44306  44365   -150
 44307  44366   -85
 44308  44367   -113
................................................................................
 44957  45016   SELECT * FROM tab1 WHERE NOT + ( - + col1 ) * - + col2 > 36 + col1
 44958  45017   ----
 44959  45018   
 44960  45019   query III rowsort
 44961  45020   SELECT ALL * FROM tab1 WHERE col1 - col0 NOT BETWEEN NULL AND col1
 44962  45021   ----
 44963  45022   
        45023  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 44964  45024   query II rowsort
 44965  45025   SELECT 44 col2, col1 FROM tab2
 44966  45026   ----
 44967  45027   44
 44968  45028   51
 44969  45029   44
 44970  45030   67
................................................................................
 44994  45054   -10
 44995  45055   -1
 44996  45056   -10
 44997  45057   -441
 44998  45058   -10
 44999  45059   -6561
 45000  45060   
        45061  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45001  45062   query II rowsort
 45002  45063   SELECT ALL - col0 col0, - 83 * + col2 FROM tab1 AS cor0
 45003  45064   ----
 45004  45065   -51
 45005  45066   -7968
 45006  45067   -85
 45007  45068   -4897
................................................................................
 48078  48139   -44
 48079  48140   14
 48080  48141   -44
 48081  48142   47
 48082  48143   -44
 48083  48144   5
 48084  48145   
        48146  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48085  48147   query II rowsort
 48086  48148   SELECT col2 col0, + 5 FROM tab1 AS cor0
 48087  48149   ----
 48088  48150   59
 48089  48151   5
 48090  48152   68
 48091  48153   5
 48092  48154   96
 48093  48155   5
 48094  48156   
        48157  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48095  48158   query II rowsort
 48096  48159   SELECT ALL 53 col1, 96 FROM tab2
 48097  48160   ----
 48098  48161   53
 48099  48162   96
 48100  48163   53
 48101  48164   96
................................................................................
 49126  49189   query II rowsort label-5356
 49127  49190   SELECT DISTINCT - - ( + 42 ) col0, - MIN( + 25 ) AS col1 FROM tab2 AS cor0
 49128  49191   ----
 49129  49192   42
 49130  49193   -25
 49131  49194   
 49132  49195   skipif mysql # not compatible
        49196  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49133  49197   query II rowsort label-5356
 49134  49198   SELECT DISTINCT - - ( + 42 ) col0, - MIN ( + 25 ) AS col1 FROM tab2 AS cor0
 49135  49199   ----
 49136  49200   42
 49137  49201   -25
 49138  49202   
 49139  49203   skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
 49172  49236   15
 49173  49237   -85
 49174  49238   87
 49175  49239   -85
 49176  49240   97
 49177  49241   
 49178  49242   skipif mysql # not compatible
        49243  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49179  49244   query II rowsort label-5360
 49180  49245   SELECT - CAST ( + 85 AS INTEGER ) col0, col0 FROM tab0 cor0
 49181  49246   ----
 49182  49247   -85
 49183  49248   15
 49184  49249   -85
 49185  49250   87
................................................................................
 49433  49498   
 49434  49499   skipif mysql # not compatible
 49435  49500   query I rowsort label-5388
 49436  49501   SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
 49437  49502   ----
 49438  49503   -3
 49439  49504   
        49505  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49440  49506   query II rowsort
 49441  49507   SELECT + col2 col0, col1 + - 29 FROM tab1 cor0
 49442  49508   ----
 49443  49509   59
 49444  49510   -24
 49445  49511   68
 49446  49512   18
................................................................................
 49612  49678   
 49613  49679   skipif mysql # not compatible
 49614  49680   query I rowsort label-5409
 49615  49681   SELECT 4 + - + COUNT ( * ) AS col2 FROM tab0
 49616  49682   ----
 49617  49683   1
 49618  49684   
        49685  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49619  49686   query II rowsort
 49620  49687   SELECT col1 + - - 56 col2, col2 AS col0 FROM tab2
 49621  49688   ----
 49622  49689   107
 49623  49690   23
 49624  49691   123
 49625  49692   58
................................................................................
 49788  49855   
 49789  49856   skipif mysql # not compatible
 49790  49857   query I rowsort label-5426
 49791  49858   SELECT SUM ( ALL - 43 ) * - 57 * + + 84 FROM tab2
 49792  49859   ----
 49793  49860   617652
 49794  49861   
        49862  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49795  49863   query II rowsort
 49796  49864   SELECT ALL 43 col2, - col2 + - col1 FROM tab0
 49797  49865   ----
 49798  49866   43
 49799  49867   -100
 49800  49868   43
 49801  49869   -128
................................................................................
 50037  50105   query II rowsort label-5454
 50038  50106   SELECT DISTINCT + ( - + 37 ) col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
 50039  50107   ----
 50040  50108   -37
 50041  50109   -3
 50042  50110   
 50043  50111   skipif mysql # not compatible
        50112  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50044  50113   query II rowsort label-5454
 50045  50114   SELECT DISTINCT + ( - + 37 ) col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
 50046  50115   ----
 50047  50116   -37
 50048  50117   -3
 50049  50118   
 50050  50119   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 50376  50445   SELECT DISTINCT - - 54 col1 FROM tab0 WHERE NOT - ( - col2 ) + col1 IS NOT NULL
 50377  50446   ----
 50378  50447   
 50379  50448   query I rowsort
 50380  50449   SELECT ALL 88 FROM tab1 WHERE NOT - + col0 IS NOT NULL
 50381  50450   ----
 50382  50451   
        50452  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50383  50453   query II rowsort
 50384  50454   SELECT ALL + 85 col2, 44 * col0 + + col2 AS col0 FROM tab2
 50385  50455   ----
 50386  50456   85
 50387  50457   2047
 50388  50458   85
 50389  50459   2856
................................................................................
 50710  50780   query II rowsort label-5530
 50711  50781   SELECT ALL COUNT( * ) * COUNT( * ) + + 14 col1, 25 AS col0 FROM tab2 WHERE + + 90 + col1 > - CAST( NULL AS SIGNED )
 50712  50782   ----
 50713  50783   14
 50714  50784   25
 50715  50785   
 50716  50786   skipif mysql # not compatible
        50787  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50717  50788   query II rowsort label-5530
 50718  50789   SELECT ALL COUNT ( * ) * COUNT ( * ) + + 14 col1, 25 AS col0 FROM tab2 WHERE + + 90 + col1 > - CAST ( NULL AS INTEGER )
 50719  50790   ----
 50720  50791   14
 50721  50792   25
 50722  50793   
 50723  50794   query I rowsort
................................................................................
 51158  51229   
 51159  51230   skipif mysql # not compatible
 51160  51231   query I rowsort label-5576
 51161  51232   SELECT ALL 43 * SUM ( - col2 ) AS col0 FROM tab0
 51162  51233   ----
 51163  51234   -6708
 51164  51235   
        51236  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 51165  51237   query II rowsort
 51166  51238   SELECT + col2 col1, col2 + + col2 + ( + + col0 ) FROM tab2
 51167  51239   ----
 51168  51240   23
 51169  51241   92
 51170  51242   40
 51171  51243   144
................................................................................
 51291  51363   query I rowsort
 51292  51364   SELECT ALL + col0 + - - col1 + + - col0 * + - col1 col1 FROM tab1
 51293  51365   ----
 51294  51366   4415
 51295  51367   515
 51296  51368   779
 51297  51369   
        51370  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 51298  51371   query II rowsort
 51299  51372   SELECT ALL col2 col0, + 40 AS col2 FROM tab2
 51300  51373   ----
 51301  51374   23
 51302  51375   40
 51303  51376   40
 51304  51377   40
................................................................................
 53532  53605   query II rowsort label-5850
 53533  53606   SELECT DISTINCT + 23 + - CAST( NULL AS DECIMAL ) - + + 67 * + + col2 col1, + col1 * + CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0
 53534  53607   ----
 53535  53608   NULL
 53536  53609   NULL
 53537  53610   
 53538  53611   skipif mysql # not compatible
        53612  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53539  53613   query II rowsort label-5850
 53540  53614   SELECT DISTINCT + 23 + - CAST ( NULL AS REAL ) - + + 67 * + + col2 col1, + col1 * + CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 AS cor0
 53541  53615   ----
 53542  53616   NULL
 53543  53617   NULL
 53544  53618   
 53545  53619   query III rowsort
................................................................................
 53784  53858   73
 53785  53859   -88
 53786  53860   73
 53787  53861   -88
 53788  53862   73
 53789  53863   -88
 53790  53864   
        53865  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53791  53866   query II rowsort
 53792  53867   SELECT - col1 col1, - col0 * + - col0 AS col1 FROM tab2
 53793  53868   ----
 53794  53869   -51
 53795  53870   2116
 53796  53871   -67
 53797  53872   5625
................................................................................
 54594  54669   query II rowsort label-5971
 54595  54670   SELECT + 79 * + COUNT( * ) + - 54 col0, CAST( NULL AS SIGNED ) FROM tab0 cor0
 54596  54671   ----
 54597  54672   183
 54598  54673   NULL
 54599  54674   
 54600  54675   skipif mysql # not compatible
        54676  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54601  54677   query II rowsort label-5971
 54602  54678   SELECT + 79 * + COUNT ( * ) + - 54 col0, CAST ( NULL AS INTEGER ) FROM tab0 cor0
 54603  54679   ----
 54604  54680   183
 54605  54681   NULL
 54606  54682   
 54607  54683   onlyif mysql # DIV for integer division: 
................................................................................
 54801  54877   query I rowsort label-5992
 54802  54878   SELECT - + ( col2 ) / col0 AS col0 FROM tab1 AS cor0
 54803  54879   ----
 54804  54880   -1
 54805  54881   0
 54806  54882   0
 54807  54883   
        54884  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54808  54885   query II rowsort
 54809  54886   SELECT - + col0 col0, + col0 * col0 AS col0 FROM tab0 AS cor0
 54810  54887   ----
 54811  54888   -15
 54812  54889   225
 54813  54890   -87
 54814  54891   7569
................................................................................
 55130  55207   
 55131  55208   skipif mysql # not compatible
 55132  55209   query I rowsort label-6031
 55133  55210   SELECT ALL MIN ( - col2 ) AS col1 FROM tab2 WHERE + - col1 + col2 IS NULL
 55134  55211   ----
 55135  55212   NULL
 55136  55213   
        55214  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 55137  55215   query II rowsort
 55138  55216   SELECT 93 + - 88 col2, col1 AS col2 FROM tab2
 55139  55217   ----
 55140  55218   5
 55141  55219   51
 55142  55220   5
 55143  55221   67
................................................................................
 56136  56214   query II rowsort label-6150
 56137  56215   SELECT COUNT( * ) col2, + COUNT( * ) FROM tab0
 56138  56216   ----
 56139  56217   3
 56140  56218   3
 56141  56219   
 56142  56220   skipif mysql # not compatible
        56221  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56143  56222   query II rowsort label-6150
 56144  56223   SELECT COUNT ( * ) col2, + COUNT ( * ) FROM tab0
 56145  56224   ----
 56146  56225   3
 56147  56226   3
 56148  56227   
 56149  56228   query I rowsort
................................................................................
 56218  56297   
 56219  56298   skipif mysql # not compatible
 56220  56299   query I rowsort label-6160
 56221  56300   SELECT + 35 + - COUNT ( * ) * + - COUNT ( * ) + 20 FROM tab1 cor0 WHERE ( NOT NULL = - col0 )
 56222  56301   ----
 56223  56302   55
 56224  56303   
        56304  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56225  56305   query II rowsort
 56226  56306   SELECT ALL + 31 * - 57 col1, ( - - col2 ) AS col1 FROM tab1 AS cor0
 56227  56307   ----
 56228  56308   -1767
 56229  56309   59
 56230  56310   -1767
 56231  56311   68
................................................................................
 56987  57067   query I rowsort
 56988  57068   SELECT DISTINCT - col2 * + 10 FROM tab1
 56989  57069   ----
 56990  57070   -590
 56991  57071   -680
 56992  57072   -960
 56993  57073   
        57074  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56994  57075   query II rowsort
 56995  57076   SELECT + col1 col1, + col2 FROM tab2
 56996  57077   ----
 56997  57078   51
 56998  57079   23
 56999  57080   67
 57000  57081   58
................................................................................
 57551  57632   query I rowsort
 57552  57633   SELECT DISTINCT 87 + + col0 AS col1 FROM tab2
 57553  57634   ----
 57554  57635   133
 57555  57636   151
 57556  57637   162
 57557  57638   
        57639  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57558  57640   query II rowsort
 57559  57641   SELECT - 74 + - 28 col0, + col1 AS col2 FROM tab1
 57560  57642   ----
 57561  57643   -102
 57562  57644   14
 57563  57645   -102
 57564  57646   47
................................................................................
 57714  57796   
 57715  57797   skipif mysql # not compatible
 57716  57798   query I rowsort label-6320
 57717  57799   SELECT DISTINCT + SUM ( col1 ) AS col0 FROM tab1 cor0
 57718  57800   ----
 57719  57801   66
 57720  57802   
        57803  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57721  57804   query II rowsort
 57722  57805   SELECT ALL - - 16 col0, - col0 FROM tab1 AS cor0
 57723  57806   ----
 57724  57807   16
 57725  57808   -51
 57726  57809   16
 57727  57810   -85
................................................................................
 58204  58287   ----
 58205  58288   -9
 58206  58289   
 58207  58290   query III rowsort
 58208  58291   SELECT * FROM tab2 WHERE NOT - col1 * 27 * - col2 * - col2 IS NOT NULL
 58209  58292   ----
 58210  58293   
        58294  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58211  58295   query II rowsort
 58212  58296   SELECT col0 col1, + col2 AS col2 FROM tab2
 58213  58297   ----
 58214  58298   46
 58215  58299   23
 58216  58300   64
 58217  58301   40
................................................................................
 59014  59098   query II rowsort label-6461
 59015  59099   SELECT ALL - + 14 col1, - 83 * - - SUM( - + col2 ) AS col2 FROM tab1 AS cor0
 59016  59100   ----
 59017  59101   -14
 59018  59102   18509
 59019  59103   
 59020  59104   skipif mysql # not compatible
        59105  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59021  59106   query II rowsort label-6461
 59022  59107   SELECT ALL - + 14 col1, - 83 * - - SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
 59023  59108   ----
 59024  59109   -14
 59025  59110   18509
 59026  59111   
 59027  59112   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 60774  60859   query II rowsort label-6655
 60775  60860   SELECT + COUNT( * ) col0, 2 AS col2 FROM tab2 AS cor0
 60776  60861   ----
 60777  60862   3
 60778  60863   2
 60779  60864   
 60780  60865   skipif mysql # not compatible
        60866  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60781  60867   query II rowsort label-6655
 60782  60868   SELECT + COUNT ( * ) col0, 2 AS col2 FROM tab2 AS cor0
 60783  60869   ----
 60784  60870   3
 60785  60871   2
 60786  60872   
 60787  60873   query III rowsort
................................................................................
 60849  60935   
 60850  60936   skipif mysql # not compatible
 60851  60937   query I rowsort label-6663
 60852  60938   SELECT 33 * - COUNT ( * ) + - - 57 FROM tab0
 60853  60939   ----
 60854  60940   -42
 60855  60941   
        60942  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60856  60943   query III rowsort
 60857  60944   SELECT - 61 + - + 74 AS col2, col1 col0, + + col1 AS col2 FROM tab1
 60858  60945   ----
 60859  60946   9 values hashing to 6499cc82ab59d0e85b8829ee9435d2ef
 60860  60947   
 60861  60948   query III rowsort
 60862  60949   SELECT ALL * FROM tab1 WHERE NOT - - 85 IS NULL
................................................................................
 61713  61800   onlyif mysql # CAST syntax: SIGNED type: 
 61714  61801   query II rowsort label-6760
 61715  61802   SELECT + 80 col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
 61716  61803   ----
 61717  61804   18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0
 61718  61805   
 61719  61806   skipif mysql # not compatible
        61807  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61720  61808   query II rowsort label-6760
 61721  61809   SELECT + 80 col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
 61722  61810   ----
 61723  61811   18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0
 61724  61812   
 61725  61813   onlyif mysql # CAST syntax: SIGNED type: 
 61726  61814   query I rowsort label-6761
................................................................................
 61887  61975   query I rowsort
 61888  61976   SELECT col0 AS col1 FROM tab0 WHERE NOT + 12 IS NULL
 61889  61977   ----
 61890  61978   15
 61891  61979   87
 61892  61980   97
 61893  61981   
        61982  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61894  61983   query II rowsort
 61895  61984   SELECT - 23 col0, - col1 FROM tab1
 61896  61985   ----
 61897  61986   -23
 61898  61987   -14
 61899  61988   -23
 61900  61989   -47
................................................................................
 64741  64830   -50
 64742  64831   40
 64743  64832   -77
 64744  64833   58
 64745  64834   -67
 64746  64835   
 64747  64836   skipif mysql # not compatible
        64837  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 64748  64838   query II rowsort label-7099
 64749  64839   SELECT ALL col2 col1, + 32 / + col2 - + col1 FROM tab2
 64750  64840   ----
 64751  64841   23
 64752  64842   -50
 64753  64843   40
 64754  64844   -77
................................................................................
 66996  67086   
 66997  67087   skipif mysql # not compatible
 66998  67088   query I rowsort label-7349
 66999  67089   SELECT ALL - SUM ( DISTINCT 3 ) AS col1 FROM tab2 AS cor0
 67000  67090   ----
 67001  67091   -3
 67002  67092   
        67093  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67003  67094   query II rowsort
 67004  67095   SELECT DISTINCT col2 * - - col1 col0, 91 FROM tab2
 67005  67096   ----
 67006  67097   1173
 67007  67098   91
 67008  67099   3080
 67009  67100   91
................................................................................
 68364  68455   query II rowsort label-7497
 68365  68456   SELECT ALL + 81 col0, + ( - COUNT( * ) ) FROM tab0 AS cor0
 68366  68457   ----
 68367  68458   81
 68368  68459   -3
 68369  68460   
 68370  68461   skipif mysql # not compatible
        68462  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68371  68463   query II rowsort label-7497
 68372  68464   SELECT ALL + 81 col0, + ( - COUNT ( * ) ) FROM tab0 AS cor0
 68373  68465   ----
 68374  68466   81
 68375  68467   -3
 68376  68468   
 68377  68469   query I rowsort
................................................................................
 68509  68601   query II rowsort label-7512
 68510  68602   SELECT ALL 18 col2, COUNT( * ) AS col0 FROM tab1
 68511  68603   ----
 68512  68604   18
 68513  68605   3
 68514  68606   
 68515  68607   skipif mysql # not compatible
        68608  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68516  68609   query II rowsort label-7512
 68517  68610   SELECT ALL 18 col2, COUNT ( * ) AS col0 FROM tab1
 68518  68611   ----
 68519  68612   18
 68520  68613   3
 68521  68614   
 68522  68615   onlyif mysql # aggregate syntax: 
................................................................................
 69226  69319   -1
 69227  69320   4486
 69228  69321   -1
 69229  69322   5926
 69230  69323   -1
 69231  69324   
 69232  69325   skipif mysql # not compatible
        69326  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69233  69327   query II rowsort label-7584
 69234  69328   SELECT ALL + col1 * + + col1 + - 55 + + 52 col2, - col1 / col1 AS col1 FROM tab2 AS cor0
 69235  69329   ----
 69236  69330   2598
 69237  69331   -1
 69238  69332   4486
 69239  69333   -1
................................................................................
 70789  70883   query II rowsort label-7752
 70790  70884   SELECT COUNT( * ) col1, 30 AS col0 FROM tab2 AS cor0
 70791  70885   ----
 70792  70886   3
 70793  70887   30
 70794  70888   
 70795  70889   skipif mysql # not compatible
        70890  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 70796  70891   query II rowsort label-7752
 70797  70892   SELECT COUNT ( * ) col1, 30 AS col0 FROM tab2 AS cor0
 70798  70893   ----
 70799  70894   3
 70800  70895   30
 70801  70896   
 70802  70897   onlyif mysql # aggregate syntax: 
................................................................................
 71424  71519   
 71425  71520   skipif mysql # not compatible
 71426  71521   query I rowsort label-7826
 71427  71522   SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - - col2 IS NULL
 71428  71523   ----
 71429  71524   0
 71430  71525   
        71526  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71431  71527   query II rowsort
 71432  71528   SELECT DISTINCT col0 col1, ( - + 83 ) * col1 + - + 1 FROM tab1
 71433  71529   ----
 71434  71530   51
 71435  71531   -1163
 71436  71532   85
 71437  71533   -416
................................................................................
 71903  71999   query I rowsort
 71904  72000   SELECT ALL + - col1 + - col2 AS col0 FROM tab2 AS cor0
 71905  72001   ----
 71906  72002   -117
 71907  72003   -125
 71908  72004   -74
 71909  72005   
        72006  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71910  72007   query II rowsort
 71911  72008   SELECT ALL - col2 col0, - ( - - 21 ) AS col0 FROM tab1
 71912  72009   ----
 71913  72010   -59
 71914  72011   -21
 71915  72012   -68
 71916  72013   -21
................................................................................
 71965  72062   query II rowsort label-7887
 71966  72063   SELECT - 74 col1, - COUNT( * ) AS col2 FROM tab2
 71967  72064   ----
 71968  72065   -74
 71969  72066   -3
 71970  72067   
 71971  72068   skipif mysql # not compatible
        72069  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71972  72070   query II rowsort label-7887
 71973  72071   SELECT - 74 col1, - COUNT ( * ) AS col2 FROM tab2
 71974  72072   ----
 71975  72073   -74
 71976  72074   -3
 71977  72075   
 71978  72076   query I rowsort
................................................................................
 72808  72906   SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
 72809  72907   ----
 72810  72908   
 72811  72909   query I rowsort
 72812  72910   SELECT - col2 AS col0 FROM tab0 WHERE NOT - col2 <= + - 6 / - ( - col1 )
 72813  72911   ----
 72814  72912   
        72913  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72815  72914   query II rowsort
 72816  72915   SELECT DISTINCT - col0 col1, col0 FROM tab2
 72817  72916   ----
 72818  72917   -46
 72819  72918   46
 72820  72919   -64
 72821  72920   64
................................................................................
 73274  73373   query II rowsort label-8039
 73275  73374   SELECT ALL - CAST( NULL AS SIGNED ) col1, - MIN( ALL + col2 ) + 60 AS col2 FROM tab2 AS cor0
 73276  73375   ----
 73277  73376   NULL
 73278  73377   37
 73279  73378   
 73280  73379   skipif mysql # not compatible
        73380  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 73281  73381   query II rowsort label-8039
 73282  73382   SELECT ALL - CAST ( NULL AS INTEGER ) col1, - MIN ( ALL + col2 ) + 60 AS col2 FROM tab2 AS cor0
 73283  73383   ----
 73284  73384   NULL
 73285  73385   37
 73286  73386   
 73287  73387   query II rowsort
................................................................................
 74501  74601   query II rowsort label-8179
 74502  74602   SELECT ALL - COUNT( - col0 ) col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
 74503  74603   ----
 74504  74604   -3
 74505  74605   -3
 74506  74606   
 74507  74607   skipif mysql # not compatible
        74608  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74508  74609   query II rowsort label-8179
 74509  74610   SELECT ALL - COUNT ( - col0 ) col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
 74510  74611   ----
 74511  74612   -3
 74512  74613   -3
 74513  74614   
 74514  74615   onlyif mysql # DIV for integer division: 
................................................................................
 74588  74689   
 74589  74690   query II rowsort
 74590  74691   SELECT DISTINCT 37 AS col0, 42 FROM tab1
 74591  74692   ----
 74592  74693   37
 74593  74694   42
 74594  74695   
        74696  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74595  74697   query II rowsort
 74596  74698   SELECT + col1 col2, col2 FROM tab1
 74597  74699   ----
 74598  74700   14
 74599  74701   96
 74600  74702   47
 74601  74703   68
................................................................................
 74623  74725   skipif mysql # not compatible
 74624  74726   query II rowsort label-8191
 74625  74727   SELECT ALL - - COUNT ( * ) AS col2, COUNT ( col2 ) FROM tab0 AS cor0
 74626  74728   ----
 74627  74729   3
 74628  74730   3
 74629  74731   
        74732  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74630  74733   query II rowsort
 74631  74734   SELECT - 83 col2, + col0 * - + 72 + + + 90 AS col1 FROM tab1 AS cor0
 74632  74735   ----
 74633  74736   -83
 74634  74737   -3582
 74635  74738   -83
 74636  74739   -6030
................................................................................
 74649  74752   query I rowsort label-8193
 74650  74753   SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
 74651  74754   ----
 74652  74755   -59
 74653  74756   -68
 74654  74757   -96
 74655  74758   
        74759  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74656  74760   query II rowsort
 74657  74761   SELECT ALL - - col1 col2, col0 FROM tab1 AS cor0
 74658  74762   ----
 74659  74763   14
 74660  74764   51
 74661  74765   47
 74662  74766   91
................................................................................
 75665  75769   query I rowsort
 75666  75770   SELECT ALL col1 * - + col1 AS col0 FROM tab2
 75667  75771   ----
 75668  75772   -2601
 75669  75773   -4489
 75670  75774   -5929
 75671  75775   
        75776  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75672  75777   query III rowsort
 75673  75778   SELECT ( - col1 ), ( + - ( - col0 ) ) col0, + + col1 AS col2 FROM tab1
 75674  75779   ----
 75675  75780   9 values hashing to fca5c454bef48c98a9adc51beffe0229
 75676  75781   
 75677  75782   query II rowsort
 75678  75783   SELECT DISTINCT + col0 * - - col0, + col2 FROM tab2
................................................................................
 76085  76190   
 76086  76191   skipif mysql # not compatible
 76087  76192   query I rowsort label-8342
 76088  76193   SELECT ALL + COUNT ( ALL 8 ) AS col0 FROM tab1
 76089  76194   ----
 76090  76195   3
 76091  76196   
        76197  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76092  76198   query III rowsort
 76093  76199   SELECT + col0 col0, + 48 AS col2, - col1 FROM tab0
 76094  76200   ----
 76095  76201   9 values hashing to abcfd563ed022a5d3549af0282f57442
 76096  76202   
 76097  76203   query II rowsort
 76098  76204   SELECT + col1, 12 FROM tab0
................................................................................
 78749  78855   NULL
 78750  78856   
 78751  78857   query I rowsort
 78752  78858   SELECT DISTINCT - 47 * + 93 AS col0 FROM tab2
 78753  78859   ----
 78754  78860   -4371
 78755  78861   
        78862  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78756  78863   query II rowsort
 78757  78864   SELECT + col1 col1, 51 FROM tab0
 78758  78865   ----
 78759  78866   1
 78760  78867   51
 78761  78868   21
 78762  78869   51
................................................................................
 79937  80044   0
 79938  80045   -85
 79939  80046   -1
 79940  80047   -91
 79941  80048   -1
 79942  80049   
 79943  80050   skipif mysql # not compatible
        80051  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79944  80052   query II rowsort label-8767
 79945  80053   SELECT DISTINCT - col0 col0, col0 / - + 56 FROM tab1 AS cor0
 79946  80054   ----
 79947  80055   -51
 79948  80056   0
 79949  80057   -85
 79950  80058   -1
................................................................................
 81081  81189   
 81082  81190   skipif mysql # not compatible
 81083  81191   query I rowsort label-8899
 81084  81192   SELECT - COUNT ( * ) * + - 48 * MIN ( ALL + 55 ) FROM tab1
 81085  81193   ----
 81086  81194   7920
 81087  81195   
        81196  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81088  81197   query II rowsort
 81089  81198   SELECT ALL + col2 * + col2 col1, col1 FROM tab2
 81090  81199   ----
 81091  81200   1600
 81092  81201   77
 81093  81202   3364
 81094  81203   67
................................................................................
 81466  81575   7569
 81467  81576   9409
 81468  81577   
 81469  81578   query I rowsort
 81470  81579   SELECT DISTINCT col2 + - ( 35 ) + - + col1 / + - col1 FROM tab2 WHERE NOT NULL = ( NULL )
 81471  81580   ----
 81472  81581   
        81582  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81473  81583   query II rowsort
 81474  81584   SELECT DISTINCT + col2 col1, - 70 FROM tab2 cor0
 81475  81585   ----
 81476  81586   23
 81477  81587   -70
 81478  81588   40
 81479  81589   -70
................................................................................
 81673  81783   -49
 81674  81784   -15
 81675  81785   -98
 81676  81786   -87
 81677  81787   1
 81678  81788   -97
 81679  81789   
        81790  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81680  81791   query II rowsort
 81681  81792   SELECT DISTINCT - col2 col2, + col1 * + + ( + - col2 ) FROM tab1 AS cor0
 81682  81793   ----
 81683  81794   -59
 81684  81795   -295
 81685  81796   -68
 81686  81797   -3196
................................................................................
 81836  81947   query I rowsort
 81837  81948   SELECT DISTINCT - ( + 75 ) * + ( ( + col2 ) ) AS col1 FROM tab1
 81838  81949   ----
 81839  81950   -4425
 81840  81951   -5100
 81841  81952   -7200
 81842  81953   
        81954  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81843  81955   query II rowsort
 81844  81956   SELECT DISTINCT 77 col2, + ( col1 ) - + ( + - 10 ) - col2 + + col0 * col0 AS col1 FROM tab2
 81845  81957   ----
 81846  81958   77
 81847  81959   2154
 81848  81960   77
 81849  81961   4143
................................................................................
 84620  84732   
 84621  84733   skipif mysql # not compatible
 84622  84734   query I rowsort label-9271
 84623  84735   SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
 84624  84736   ----
 84625  84737   9 values hashing to cd7a7901e47c15155404aff0d216fe0b
 84626  84738   
        84739  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 84627  84740   query II rowsort
 84628  84741   SELECT 96 col2, - 65 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
 84629  84742   ----
 84630  84743   
 84631  84744   onlyif mysql # aggregate syntax: 
 84632  84745   query I rowsort label-9273
 84633  84746   SELECT ALL - MAX( DISTINCT - - col1 ) + - ( - 55 ) + + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
................................................................................
 85586  85699   SELECT - col1 AS col0, + col0 + - col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 12 IS NULL )
 85587  85700   ----
 85588  85701   
 85589  85702   query I rowsort
 85590  85703   SELECT DISTINCT - 31 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 )
 85591  85704   ----
 85592  85705   
        85706  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85593  85707   query II rowsort
 85594  85708   SELECT ALL + col1 col1, + ( - 83 ) FROM tab0
 85595  85709   ----
 85596  85710   1
 85597  85711   -83
 85598  85712   21
 85599  85713   -83
................................................................................
 85820  85934   -639
 85821  85935   -6718
 85822  85936   
 85823  85937   query III rowsort
 85824  85938   SELECT * FROM tab2 cor0 WHERE NOT col0 - - col2 NOT IN ( + col0 * col2 * - ( - - col0 ) * col1 * 17 )
 85825  85939   ----
 85826  85940   
        85941  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85827  85942   query II rowsort
 85828  85943   SELECT DISTINCT col1 col2, - col2 FROM tab1 AS cor0
 85829  85944   ----
 85830  85945   14
 85831  85946   -96
 85832  85947   47
 85833  85948   -68
................................................................................
 85875  85990   SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
 85876  85991   ----
 85877  85992   
 85878  85993   query I rowsort
 85879  85994   SELECT ALL + 25 FROM tab0 AS cor0 WHERE NOT + 28 IS NOT NULL
 85880  85995   ----
 85881  85996   
        85997  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85882  85998   query II rowsort
 85883  85999   SELECT col1 col1, col2 FROM tab0 AS cor0
 85884  86000   ----
 85885  86001   1
 85886  86002   99
 85887  86003   21
 85888  86004   10
................................................................................
 86201  86317   35
 86202  86318   35
 86203  86319   
 86204  86320   query III rowsort
 86205  86321   SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 )
 86206  86322   ----
 86207  86323   
        86324  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86208  86325   query II rowsort
 86209  86326   SELECT 15 col1, - col1 + + 28 AS col2 FROM tab0
 86210  86327   ----
 86211  86328   15
 86212  86329   -53
 86213  86330   15
 86214  86331   27
................................................................................
 86419  86536   ----
 86420  86537   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 86421  86538   
 86422  86539   query III rowsort
 86423  86540   SELECT DISTINCT * FROM tab2 WHERE NOT + col1 <= NULL
 86424  86541   ----
 86425  86542   
        86543  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86426  86544   query II rowsort
 86427  86545   SELECT DISTINCT + col1 col0, - 47 * - 43 FROM tab2
 86428  86546   ----
 86429  86547   51
 86430  86548   2021
 86431  86549   67
 86432  86550   2021
................................................................................
 86620  86738   48
 86621  86739   81147
 86622  86740   65
 86623  86741   81147
 86624  86742   76
 86625  86743   
 86626  86744   skipif mysql # not compatible
        86745  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86627  86746   query II rowsort label-9494
 86628  86747   SELECT - 78 + 95 * + 9 * 95 col2, col0 - - col0 / + col2 FROM tab2 cor0
 86629  86748   ----
 86630  86749   81147
 86631  86750   48
 86632  86751   81147
 86633  86752   65
................................................................................
 87374  87493   skipif mysql # not compatible
 87375  87494   skipif postgresql # PostgreSQL requires AS when renaming output columns
 87376  87495   query I rowsort label-9578
 87377  87496   SELECT - ( + + 71 ) * 86 + - + MAX ( - col0 ) col0 FROM tab0
 87378  87497   ----
 87379  87498   -6091
 87380  87499   
        87500  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 87381  87501   query II rowsort
 87382  87502   SELECT ALL + col0 col0, col0 AS col1 FROM tab0
 87383  87503   ----
 87384  87504   15
 87385  87505   15
 87386  87506   87
 87387  87507   87
................................................................................
 88538  88658   
 88539  88659   skipif mysql # not compatible
 88540  88660   query I rowsort label-9698
 88541  88661   SELECT DISTINCT + col1 + ( - col2 ) + - col1 + - + col1 / + - col2 * - + ( - col0 ) - col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
 88542  88662   ----
 88543  88663   NULL
 88544  88664   
        88665  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 88545  88666   query II rowsort
 88546  88667   SELECT col1 * - - col1 col0, - 66 + 76 AS col2 FROM tab1
 88547  88668   ----
 88548  88669   196
 88549  88670   10
 88550  88671   2209
 88551  88672   10
................................................................................
 89418  89539   0
 89419  89540   0
 89420  89541   
 89421  89542   query III rowsort
 89422  89543   SELECT * FROM tab0 WHERE NOT - col0 * - col0 + col2 IS NOT NULL
 89423  89544   ----
 89424  89545   
        89546  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89425  89547   query II rowsort
 89426  89548   SELECT ALL 5 col2, - col2 * - col0 AS col0 FROM tab2
 89427  89549   ----
 89428  89550   5
 89429  89551   1058
 89430  89552   5
 89431  89553   2560
................................................................................
 89542  89664   39
 89543  89665   -14
 89544  89666   39
 89545  89667   -47
 89546  89668   39
 89547  89669   -5
 89548  89670   
        89671  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89549  89672   query II rowsort
 89550  89673   SELECT + 56 col1, 40 FROM tab2
 89551  89674   ----
 89552  89675   56
 89553  89676   40
 89554  89677   56
 89555  89678   40
................................................................................
 89928  90051   
 89929  90052   skipif mysql # not compatible
 89930  90053   query I rowsort label-9864
 89931  90054   SELECT + 36 + + - COUNT ( * ) AS col2 FROM tab2
 89932  90055   ----
 89933  90056   33
 89934  90057   
        90058  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89935  90059   query II rowsort
 89936  90060   SELECT - col2 col0, + 21 FROM tab1
 89937  90061   ----
 89938  90062   -59
 89939  90063   21
 89940  90064   -68
 89941  90065   21
................................................................................
 90416  90540   query II rowsort label-9915
 90417  90541   SELECT + + COUNT( * ) + - - COUNT( ALL col2 ) col2, + 63 FROM tab2 WHERE NOT + + col1 + col2 IS NULL
 90418  90542   ----
 90419  90543   6
 90420  90544   63
 90421  90545   
 90422  90546   skipif mysql # not compatible
        90547  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 90423  90548   query II rowsort label-9915
 90424  90549   SELECT + + COUNT ( * ) + - - COUNT ( ALL col2 ) col2, + 63 FROM tab2 WHERE NOT + + col1 + col2 IS NULL
 90425  90550   ----
 90426  90551   6
 90427  90552   63
 90428  90553   
 90429  90554   onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................
 90688  90813   NULL
 90689  90814   47
 90690  90815   NULL
 90691  90816   99
 90692  90817   NULL
 90693  90818   
 90694  90819   skipif mysql # not compatible
        90820  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 90695  90821   query II rowsort label-9944
 90696  90822   SELECT + col2 col2, - ( - + 7 ) * CAST ( NULL AS INTEGER ) - + col2 FROM tab0
 90697  90823   ----
 90698  90824   10
 90699  90825   NULL
 90700  90826   47
 90701  90827   NULL
................................................................................
 90720  90846   84
 90721  90847   NULL
 90722  90848   84
 90723  90849   NULL
 90724  90850   84
 90725  90851   NULL
 90726  90852   
        90853  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 90727  90854   query II rowsort
 90728  90855   SELECT ALL col2 col0, + 93 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
 90729  90856   ----
 90730  90857   
 90731  90858   onlyif mysql # aggregate syntax: 
 90732  90859   query I rowsort label-9947
 90733  90860   SELECT DISTINCT - COUNT( + - col1 ) FROM tab2 AS cor0

Changes to test/random/aggregates/slt_good_101.test.

   511    511   query II rowsort label-51
   512    512   SELECT + COUNT( * ) col0, + ( + COUNT( * ) ) AS col1 FROM tab2
   513    513   ----
   514    514   3
   515    515   3
   516    516   
   517    517   skipif mysql # not compatible
          518  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   518    519   query II rowsort label-51
   519    520   SELECT + COUNT ( * ) col0, + ( + COUNT ( * ) ) AS col1 FROM tab2
   520    521   ----
   521    522   3
   522    523   3
   523    524   
   524    525   onlyif mysql # aggregate syntax: 
................................................................................
   958    959   
   959    960   skipif mysql # not compatible
   960    961   query I rowsort label-98
   961    962   SELECT - COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 cor0
   962    963   ----
   963    964   -27
   964    965   
          966  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   965    967   query II rowsort
   966    968   SELECT DISTINCT 6 * + - 73 * 87 col1, + 90 AS col1 FROM tab0
   967    969   ----
   968    970   -38106
   969    971   90
   970    972   
   971    973   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
  1409   1411   query I rowsort
  1410   1412   SELECT 48 * - 68 AS col2 FROM tab2 AS cor0
  1411   1413   ----
  1412   1414   -3264
  1413   1415   -3264
  1414   1416   -3264
  1415   1417   
         1418  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  1416   1419   query II rowsort
  1417   1420   SELECT - + col1 col0, - col2 + - 25 AS col1 FROM tab1 AS cor0
  1418   1421   ----
  1419   1422   -14
  1420   1423   -121
  1421   1424   -47
  1422   1425   -93
................................................................................
  2625   2628   NULL
  2626   2629   15
  2627   2630   NULL
  2628   2631   15
  2629   2632   NULL
  2630   2633   
  2631   2634   skipif mysql # not compatible
         2635  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2632   2636   query II rowsort label-276
  2633   2637   SELECT 15 col2, CAST ( NULL AS INTEGER ) FROM tab0
  2634   2638   ----
  2635   2639   15
  2636   2640   NULL
  2637   2641   15
  2638   2642   NULL
................................................................................
  2692   2696   ----
  2693   2697   -12
  2694   2698   
  2695   2699   query III rowsort
  2696   2700   SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND NULL
  2697   2701   ----
  2698   2702   
         2703  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2699   2704   query II rowsort
  2700   2705   SELECT + col1 col2, - col1 AS col2 FROM tab2 cor0
  2701   2706   ----
  2702   2707   51
  2703   2708   -51
  2704   2709   67
  2705   2710   -67
................................................................................
  2738   2743   -225
  2739   2744   9
  2740   2745   -7569
  2741   2746   9
  2742   2747   -9409
  2743   2748   9
  2744   2749   
         2750  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2745   2751   query II rowsort
  2746   2752   SELECT DISTINCT + col1 + col2 col2, + col2 + + col1 * - 89 AS col2 FROM tab2 AS cor0
  2747   2753   ----
  2748   2754   117
  2749   2755   -6813
  2750   2756   125
  2751   2757   -5905
................................................................................
  3467   3473   query II rowsort label-369
  3468   3474   SELECT ALL 64 col2, COUNT( * ) FROM tab1
  3469   3475   ----
  3470   3476   64
  3471   3477   3
  3472   3478   
  3473   3479   skipif mysql # not compatible
         3480  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3474   3481   query II rowsort label-369
  3475   3482   SELECT ALL 64 col2, COUNT ( * ) FROM tab1
  3476   3483   ----
  3477   3484   64
  3478   3485   3
  3479   3486   
  3480   3487   query I rowsort
................................................................................
  4369   4376   5
  4370   4377   47
  4371   4378   1
  4372   4379   5
  4373   4380   15
  4374   4381   
  4375   4382   skipif mysql # not compatible
         4383  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  4376   4384   query II rowsort label-466
  4377   4385   SELECT ALL col1 col2, 78 / col1 FROM tab1 AS cor0
  4378   4386   ----
  4379   4387   14
  4380   4388   5
  4381   4389   47
  4382   4390   1
................................................................................
  7832   7840   query II rowsort label-845
  7833   7841   SELECT ALL + + 87 + - SUM( - col1 ) col1, CAST( ( + + COUNT( * ) ) AS SIGNED ) * MAX( - - 12 ) AS col1 FROM tab2 AS cor0
  7834   7842   ----
  7835   7843   282
  7836   7844   36
  7837   7845   
  7838   7846   skipif mysql # not compatible
         7847  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7839   7848   query II rowsort label-845
  7840   7849   SELECT ALL + + 87 + - SUM ( - col1 ) col1, CAST ( ( + + COUNT ( * ) ) AS INTEGER ) * MAX ( - - 12 ) AS col1 FROM tab2 AS cor0
  7841   7850   ----
  7842   7851   282
  7843   7852   36
  7844   7853   
  7845   7854   onlyif mysql # aggregate syntax: 
................................................................................
  9058   9067   query II rowsort label-975
  9059   9068   SELECT DISTINCT - COUNT( + - col2 ) - + + ( + - 91 ) col2, + 80 FROM tab1
  9060   9069   ----
  9061   9070   88
  9062   9071   80
  9063   9072   
  9064   9073   skipif mysql # not compatible
         9074  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9065   9075   query II rowsort label-975
  9066   9076   SELECT DISTINCT - COUNT ( + - col2 ) - + + ( + - 91 ) col2, + 80 FROM tab1
  9067   9077   ----
  9068   9078   88
  9069   9079   80
  9070   9080   
  9071   9081   query I rowsort
................................................................................
  9759   9769   
  9760   9770   onlyif mysql # CAST syntax: SIGNED type: 
  9761   9771   query II rowsort label-1050
  9762   9772   SELECT - 59 col2, - ( - - col1 ) / col0 FROM tab0 WHERE NOT + + 3 * - 27 * - + col1 * - - col1 + - 45 / - CAST( ( + 67 ) AS SIGNED ) IS NOT NULL
  9763   9773   ----
  9764   9774   
  9765   9775   skipif mysql # not compatible
         9776  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9766   9777   query II rowsort label-1050
  9767   9778   SELECT - 59 col2, - ( - - col1 ) / col0 FROM tab0 WHERE NOT + + 3 * - 27 * - + col1 * - - col1 + - 45 / - CAST ( ( + 67 ) AS INTEGER ) IS NOT NULL
  9768   9779   ----
  9769   9780   
  9770   9781   onlyif mysql # aggregate syntax: 
  9771   9782   query II rowsort label-1051
  9772   9783   SELECT ALL - SUM( + ( - - 13 ) ) AS col2, - 40 AS col0 FROM tab2
................................................................................
  9919   9930   SELECT ALL + - 83 AS col1, COUNT( * ) col0, + + COUNT( + 83 ) * - 95 FROM tab2 AS cor0 WHERE 92 BETWEEN + 45 AND NULL
  9920   9931   ----
  9921   9932   -83
  9922   9933   0
  9923   9934   0
  9924   9935   
  9925   9936   skipif mysql # not compatible
         9937  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9926   9938   query III rowsort label-1068
  9927   9939   SELECT ALL + - 83 AS col1, COUNT ( * ) col0, + + COUNT ( + 83 ) * - 95 FROM tab2 AS cor0 WHERE 92 BETWEEN + 45 AND NULL
  9928   9940   ----
  9929   9941   -83
  9930   9942   0
  9931   9943   0
  9932   9944   
................................................................................
 10027  10039   150232
 10028  10040   18836
 10029  10041   
 10030  10042   query III rowsort
 10031  10043   SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL <> + col2 * - 77
 10032  10044   ----
 10033  10045   
        10046  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 10034  10047   query II rowsort
 10035  10048   SELECT DISTINCT col1 col0, - 71 FROM tab1
 10036  10049   ----
 10037  10050   14
 10038  10051   -71
 10039  10052   47
 10040  10053   -71
................................................................................
 11607  11620   9
 11608  11621   
 11609  11622   query IIIIII rowsort
 11610  11623   SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON ( - + 52 ) < NULL
 11611  11624   ----
 11612  11625   18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6
 11613  11626   
        11627  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11614  11628   query II rowsort
 11615  11629   SELECT - col0 col2, col2 FROM tab0 AS cor0
 11616  11630   ----
 11617  11631   -15
 11618  11632   47
 11619  11633   -87
 11620  11634   10
................................................................................
 11753  11767   query I rowsort
 11754  11768   SELECT - 91 + 67 FROM tab0
 11755  11769   ----
 11756  11770   -24
 11757  11771   -24
 11758  11772   -24
 11759  11773   
        11774  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11760  11775   query II rowsort
 11761  11776   SELECT DISTINCT + 83 col2, col2 * + col0 AS col1 FROM tab1
 11762  11777   ----
 11763  11778   83
 11764  11779   4896
 11765  11780   83
 11766  11781   5015
................................................................................
 12211  12226   skipif mysql # not compatible
 12212  12227   query II rowsort label-1325
 12213  12228   SELECT ALL + - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
 12214  12229   ----
 12215  12230   -3
 12216  12231   3
 12217  12232   
        12233  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12218  12234   query II rowsort
 12219  12235   SELECT - + col1 col2, col1 FROM tab0 AS cor0
 12220  12236   ----
 12221  12237   -1
 12222  12238   1
 12223  12239   -21
 12224  12240   21
................................................................................
 12339  12355   query I rowsort label-1338
 12340  12356   SELECT ALL - + col1 / col0 + + 14 AS col2 FROM tab2 AS cor0
 12341  12357   ----
 12342  12358   13
 12343  12359   13
 12344  12360   14
 12345  12361   
        12362  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12346  12363   query II rowsort
 12347  12364   SELECT + 15 col0, + col1 * col2 + col2 AS col1 FROM tab0 AS cor0
 12348  12365   ----
 12349  12366   15
 12350  12367   198
 12351  12368   15
 12352  12369   220
................................................................................
 12372  12389   -1
 12373  12390   -47
 12374  12391   -1
 12375  12392   -5
 12376  12393   -1
 12377  12394   
 12378  12395   skipif mysql # not compatible
        12396  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12379  12397   query II rowsort label-1342
 12380  12398   SELECT - col1 col2, - col0 / col0 AS col2 FROM tab1 AS cor0
 12381  12399   ----
 12382  12400   -14
 12383  12401   -1
 12384  12402   -47
 12385  12403   -1
................................................................................
 12394  12412   NULL
 12395  12413   85
 12396  12414   NULL
 12397  12415   91
 12398  12416   NULL
 12399  12417   
 12400  12418   skipif mysql # not compatible
        12419  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12401  12420   query II rowsort label-1343
 12402  12421   SELECT DISTINCT col0 col2, + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
 12403  12422   ----
 12404  12423   51
 12405  12424   NULL
 12406  12425   85
 12407  12426   NULL
................................................................................
 13438  13457   -1
 13439  13458   4096
 13440  13459   -2
 13441  13460   5625
 13442  13461   -2
 13443  13462   
 13444  13463   skipif mysql # not compatible
        13464  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13445  13465   query II rowsort label-1464
 13446  13466   SELECT - + col0 * - col0 col0, col0 / - + ( + + 30 ) FROM tab2 AS cor0
 13447  13467   ----
 13448  13468   2116
 13449  13469   -1
 13450  13470   4096
 13451  13471   -2
................................................................................
 13874  13894   
 13875  13895   skipif mysql # not compatible
 13876  13896   query I rowsort label-1510
 13877  13897   SELECT ALL + 26 + 0 * - - COUNT ( + + col1 ) FROM tab0 AS cor0
 13878  13898   ----
 13879  13899   26
 13880  13900   
        13901  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13881  13902   query II rowsort
 13882  13903   SELECT ALL col0 col2, col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
 13883  13904   ----
 13884  13905   51
 13885  13906   96
 13886  13907   85
 13887  13908   59
................................................................................
 13961  13982   
 13962  13983   skipif mysql # not compatible
 13963  13984   query I rowsort label-1521
 13964  13985   SELECT SUM ( ALL 50 ) FROM tab0
 13965  13986   ----
 13966  13987   150
 13967  13988   
        13989  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13968  13990   query II rowsort
 13969  13991   SELECT ALL - col1 col2, 38 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
 13970  13992   ----
 13971  13993   
 13972  13994   onlyif mysql # aggregate syntax: 
 13973  13995   query I rowsort label-1523
 13974  13996   SELECT COUNT( ALL + col1 ) * - 73 col0 FROM tab1 AS cor0
................................................................................
 15842  15864   query I rowsort
 15843  15865   SELECT ( + + ( - col2 ) ) + + col0 FROM tab1
 15844  15866   ----
 15845  15867   -45
 15846  15868   23
 15847  15869   26
 15848  15870   
        15871  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15849  15872   query II rowsort
 15850  15873   SELECT ALL - col2 col2, + ( col0 ) FROM tab1
 15851  15874   ----
 15852  15875   -59
 15853  15876   85
 15854  15877   -68
 15855  15878   91
................................................................................
 19028  19051   query II rowsort label-2092
 19029  19052   SELECT DISTINCT COUNT( * ) col1, - 32 FROM tab0
 19030  19053   ----
 19031  19054   3
 19032  19055   -32
 19033  19056   
 19034  19057   skipif mysql # not compatible
        19058  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19035  19059   query II rowsort label-2092
 19036  19060   SELECT DISTINCT COUNT ( * ) col1, - 32 FROM tab0
 19037  19061   ----
 19038  19062   3
 19039  19063   -32
 19040  19064   
 19041  19065   query II rowsort
................................................................................
 20413  20437   34
 20414  20438   2
 20415  20439   
 20416  20440   query III rowsort
 20417  20441   SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 89 + + col1, - 78 * - + col2, - col2 / - col1 * col2 )
 20418  20442   ----
 20419  20443   
        20444  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20420  20445   query II rowsort
 20421  20446   SELECT DISTINCT - col0 col2, col2 + + 4 FROM tab0 AS cor0
 20422  20447   ----
 20423  20448   -15
 20424  20449   51
 20425  20450   -87
 20426  20451   14
................................................................................
 20894  20919   0
 20895  20920   -85
 20896  20921   0
 20897  20922   -91
 20898  20923   0
 20899  20924   
 20900  20925   skipif mysql # not compatible
        20926  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20901  20927   query II rowsort label-2296
 20902  20928   SELECT - ( col0 ) col2, - 38 / + col0 AS col1 FROM tab1
 20903  20929   ----
 20904  20930   -51
 20905  20931   0
 20906  20932   -85
 20907  20933   0
................................................................................
 21199  21225   query II rowsort label-2323
 21200  21226   SELECT + COUNT( * ) * MIN( + col2 ) col2, + COUNT( * ) AS col1 FROM tab1
 21201  21227   ----
 21202  21228   177
 21203  21229   3
 21204  21230   
 21205  21231   skipif mysql # not compatible
        21232  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21206  21233   query II rowsort label-2323
 21207  21234   SELECT + COUNT ( * ) * MIN ( + col2 ) col2, + COUNT ( * ) AS col1 FROM tab1
 21208  21235   ----
 21209  21236   177
 21210  21237   3
 21211  21238   
 21212  21239   onlyif mysql # aggregate syntax: 
................................................................................
 22139  22166   query II rowsort label-2427
 22140  22167   SELECT SUM( DISTINCT + col0 ) * - - 33 * - - 20 col0, 26 FROM tab2
 22141  22168   ----
 22142  22169   122100
 22143  22170   26
 22144  22171   
 22145  22172   skipif mysql # not compatible
        22173  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22146  22174   query II rowsort label-2427
 22147  22175   SELECT SUM ( DISTINCT + col0 ) * - - 33 * - - 20 col0, 26 FROM tab2
 22148  22176   ----
 22149  22177   122100
 22150  22178   26
 22151  22179   
 22152  22180   query I rowsort
................................................................................
 22945  22973   query II rowsort label-2519
 22946  22974   SELECT DISTINCT COUNT( * ) col0, - SUM( - + 97 ) AS col2 FROM tab2
 22947  22975   ----
 22948  22976   3
 22949  22977   291
 22950  22978   
 22951  22979   skipif mysql # not compatible
        22980  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22952  22981   query II rowsort label-2519
 22953  22982   SELECT DISTINCT COUNT ( * ) col0, - SUM ( - + 97 ) AS col2 FROM tab2
 22954  22983   ----
 22955  22984   3
 22956  22985   291
 22957  22986   
 22958  22987   query I rowsort
................................................................................
 23366  23395   ----
 23367  23396   24
 23368  23397   
 23369  23398   query I rowsort
 23370  23399   SELECT ALL - 49 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
 23371  23400   ----
 23372  23401   
        23402  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 23373  23403   query II rowsort
 23374  23404   SELECT - 71 - + col2 col0, col0 + + col0 AS col2 FROM tab2 WHERE + 25 <= NULL
 23375  23405   ----
 23376  23406   
 23377  23407   query III rowsort
 23378  23408   SELECT * FROM tab0 WHERE NULL < - 90
 23379  23409   ----
................................................................................
 23846  23876   query II rowsort label-2611
 23847  23877   SELECT ALL - + MAX( DISTINCT - + CAST( - + 47 AS SIGNED ) ) col1, + 60 FROM tab1 AS cor0
 23848  23878   ----
 23849  23879   -47
 23850  23880   60
 23851  23881   
 23852  23882   skipif mysql # not compatible
        23883  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 23853  23884   query II rowsort label-2611
 23854  23885   SELECT ALL - + MAX ( DISTINCT - + CAST ( - + 47 AS INTEGER ) ) col1, + 60 FROM tab1 AS cor0
 23855  23886   ----
 23856  23887   -47
 23857  23888   60
 23858  23889   
 23859  23890   query II rowsort
................................................................................
 24422  24453   ----
 24423  24454   
 24424  24455   query I rowsort
 24425  24456   SELECT DISTINCT - 20 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
 24426  24457   ----
 24427  24458   -20
 24428  24459   
        24460  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24429  24461   query II rowsort
 24430  24462   SELECT - col0 col0, col0 + + col1 FROM tab1 AS cor0
 24431  24463   ----
 24432  24464   -51
 24433  24465   65
 24434  24466   -85
 24435  24467   90
................................................................................
 25163  25195   
 25164  25196   skipif mysql # not compatible
 25165  25197   query I rowsort label-2754
 25166  25198   SELECT - + MAX ( ALL ( col0 ) ) FROM tab1 AS cor0
 25167  25199   ----
 25168  25200   -91
 25169  25201   
        25202  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25170  25203   query II rowsort
 25171  25204   SELECT - col1 * - col1 + 37 + col1 col1, 96 * + col0 * 67 FROM tab2 AS cor0
 25172  25205   ----
 25173  25206   2689
 25174  25207   295872
 25175  25208   4593
 25176  25209   482400
................................................................................
 25355  25388   
 25356  25389   skipif mysql # not compatible
 25357  25390   query I rowsort label-2770
 25358  25391   SELECT - CAST ( MIN ( + 94 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
 25359  25392   ----
 25360  25393   -94
 25361  25394   
        25395  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25362  25396   query II rowsort
 25363  25397   SELECT ALL 37 col1, 69 FROM tab2
 25364  25398   ----
 25365  25399   37
 25366  25400   69
 25367  25401   37
 25368  25402   69
................................................................................
 25646  25680   -37
 25647  25681   -37
 25648  25682   
 25649  25683   query I rowsort
 25650  25684   SELECT ALL + col0 FROM tab1 WHERE NOT NULL < - + col1
 25651  25685   ----
 25652  25686   
        25687  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25653  25688   query II rowsort
 25654  25689   SELECT ALL 85 col1, + 74 AS col0 FROM tab2
 25655  25690   ----
 25656  25691   85
 25657  25692   74
 25658  25693   85
 25659  25694   74
................................................................................
 27744  27779   query II rowsort label-3035
 27745  27780   SELECT + + COUNT( * ) col0, + MIN( + col0 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
 27746  27781   ----
 27747  27782   0
 27748  27783   NULL
 27749  27784   
 27750  27785   skipif mysql # not compatible
        27786  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27751  27787   query II rowsort label-3035
 27752  27788   SELECT + + COUNT ( * ) col0, + MIN ( + col0 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
 27753  27789   ----
 27754  27790   0
 27755  27791   NULL
 27756  27792   
 27757  27793   onlyif mysql # aggregate syntax: 
................................................................................
 28296  28332   -46
 28297  28333   93
 28298  28334   -8
 28299  28335   93
 28300  28336   -99
 28301  28337   93
 28302  28338   
        28339  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28303  28340   query II rowsort
 28304  28341   SELECT DISTINCT - 10 col1, - col1 + + + 22 AS col1 FROM tab2 cor0
 28305  28342   ----
 28306  28343   -10
 28307  28344   -29
 28308  28345   -10
 28309  28346   -45
................................................................................
 28936  28973   query I rowsort
 28937  28974   SELECT + ( - 81 ) AS col1 FROM tab2
 28938  28975   ----
 28939  28976   -81
 28940  28977   -81
 28941  28978   -81
 28942  28979   
        28980  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28943  28981   query II rowsort
 28944  28982   SELECT DISTINCT col2 col2, col1 AS col0 FROM tab1
 28945  28983   ----
 28946  28984   59
 28947  28985   5
 28948  28986   68
 28949  28987   47
................................................................................
 28963  29001   ----
 28964  29002   3
 28965  29003   
 28966  29004   query III rowsort
 28967  29005   SELECT ALL * FROM tab2 AS cor0 WHERE NOT 37 <= + 98
 28968  29006   ----
 28969  29007   
        29008  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28970  29009   query II rowsort
 28971  29010   SELECT + 30 col0, col1 FROM tab2 AS cor0
 28972  29011   ----
 28973  29012   30
 28974  29013   51
 28975  29014   30
 28976  29015   67
................................................................................
 31860  31899   query II rowsort label-3486
 31861  31900   SELECT 3 - COUNT( * ) col2, - MAX( - col2 ) AS col0 FROM tab1
 31862  31901   ----
 31863  31902   0
 31864  31903   59
 31865  31904   
 31866  31905   skipif mysql # not compatible
        31906  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 31867  31907   query II rowsort label-3486
 31868  31908   SELECT 3 - COUNT ( * ) col2, - MAX ( - col2 ) AS col0 FROM tab1
 31869  31909   ----
 31870  31910   0
 31871  31911   59
 31872  31912   
 31873  31913   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 32595  32635   8
 32596  32636   
 32597  32637   query I rowsort
 32598  32638   SELECT ALL + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
 32599  32639   ----
 32600  32640   9 values hashing to f9dee8c21116f1aed64ac5160e190809
 32601  32641   
        32642  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32602  32643   query II rowsort
 32603  32644   SELECT ALL + col2 col2, - col0 FROM tab1 AS cor0
 32604  32645   ----
 32605  32646   59
 32606  32647   -85
 32607  32648   68
 32608  32649   -91
................................................................................
 32768  32809   
 32769  32810   onlyif mysql # CAST syntax: SIGNED type: 
 32770  32811   query II rowsort label-3586
 32771  32812   SELECT 80 * - 72 col0, - ( 57 ) FROM tab0 WHERE + col2 - CAST( col2 AS SIGNED ) + col1 + col2 * - + col1 / + col1 IS NULL
 32772  32813   ----
 32773  32814   
 32774  32815   skipif mysql # not compatible
        32816  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32775  32817   query II rowsort label-3586
 32776  32818   SELECT 80 * - 72 col0, - ( 57 ) FROM tab0 WHERE + col2 - CAST ( col2 AS INTEGER ) + col1 + col2 * - + col1 / + col1 IS NULL
 32777  32819   ----
 32778  32820   
 32779  32821   query III rowsort
 32780  32822   SELECT ALL - 48 AS col1, col0 * + col1 * - - col0, col0 AS col0 FROM tab1
 32781  32823   ----
................................................................................
 33599  33641   NULL
 33600  33642   51
 33601  33643   NULL
 33602  33644   85
 33603  33645   NULL
 33604  33646   91
 33605  33647   
        33648  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33606  33649   query II rowsort
 33607  33650   SELECT DISTINCT col0 col1, col0 FROM tab0
 33608  33651   ----
 33609  33652   15
 33610  33653   15
 33611  33654   87
 33612  33655   87
................................................................................
 33745  33788   -59
 33746  33789   77
 33747  33790   -59
 33748  33791   77
 33749  33792   -59
 33750  33793   77
 33751  33794   
        33795  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33752  33796   query II rowsort
 33753  33797   SELECT - + col2 * + + 74 - + + col2 * 26 col2, 38 AS col0 FROM tab2 AS cor0
 33754  33798   ----
 33755  33799   -2300
 33756  33800   38
 33757  33801   -4000
 33758  33802   38
................................................................................
 36982  37026   
 36983  37027   skipif mysql # not compatible
 36984  37028   query I rowsort label-4038
 36985  37029   SELECT - ( - 20 ) * + + ( - MIN ( - + col1 ) ) FROM tab2 AS cor0
 36986  37030   ----
 36987  37031   1540
 36988  37032   
        37033  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 36989  37034   query II rowsort
 36990  37035   SELECT - col1 col2, 68 AS col2 FROM tab0 AS cor0
 36991  37036   ----
 36992  37037   -1
 36993  37038   68
 36994  37039   -21
 36995  37040   68
................................................................................
 38124  38169   query II rowsort label-4164
 38125  38170   SELECT COUNT( * ) + - - COUNT( * ) * COUNT( * ) col2, + MAX( DISTINCT - 86 ) AS col1 FROM tab1
 38126  38171   ----
 38127  38172   12
 38128  38173   -86
 38129  38174   
 38130  38175   skipif mysql # not compatible
        38176  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38131  38177   query II rowsort label-4164
 38132  38178   SELECT COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) col2, + MAX ( DISTINCT - 86 ) AS col1 FROM tab1
 38133  38179   ----
 38134  38180   12
 38135  38181   -86
 38136  38182   
 38137  38183   query III rowsort
................................................................................
 38316  38362   -46
 38317  38363   NULL
 38318  38364   -64
 38319  38365   NULL
 38320  38366   -75
 38321  38367   
 38322  38368   skipif mysql # not compatible
        38369  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38323  38370   query II rowsort label-4179
 38324  38371   SELECT + CAST ( NULL AS REAL ) * - - col1 col0, - col0 FROM tab2 cor0
 38325  38372   ----
 38326  38373   NULL
 38327  38374   -46
 38328  38375   NULL
 38329  38376   -64
................................................................................
 41549  41596   61
 41550  41597   57
 41551  41598   109
 41552  41599   85
 41553  41600   36
 41554  41601   
 41555  41602   skipif mysql # not compatible
        41603  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41556  41604   query II rowsort label-4539
 41557  41605   SELECT - - col2 + - 11 col0, 48 + - 77 + - - CAST ( col0 AS INTEGER ) + - - col1 AS col2 FROM tab1 AS cor0
 41558  41606   ----
 41559  41607   48
 41560  41608   61
 41561  41609   57
 41562  41610   109
................................................................................
 41746  41794   query I rowsort
 41747  41795   SELECT + + 76 + - 22 FROM tab0 AS cor0
 41748  41796   ----
 41749  41797   54
 41750  41798   54
 41751  41799   54
 41752  41800   
        41801  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41753  41802   query II rowsort
 41754  41803   SELECT + + 41 * - col1 + col1 * 52 + + col2 col1, + 97 AS col1 FROM tab2 cor0
 41755  41804   ----
 41756  41805   584
 41757  41806   97
 41758  41807   795
 41759  41808   97
................................................................................
 41879  41928   query I rowsort
 41880  41929   SELECT ALL - + 59 AS col2 FROM tab0 AS cor0
 41881  41930   ----
 41882  41931   -59
 41883  41932   -59
 41884  41933   -59
 41885  41934   
        41935  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41886  41936   query II rowsort
 41887  41937   SELECT DISTINCT - - col1 col1, + 98 * - ( - col2 ) * col0 FROM tab0 AS cor0 WHERE NOT + col1 <= 34
 41888  41938   ----
 41889  41939   81
 41890  41940   69090
 41891  41941   
 41892  41942   skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
 42211  42261   
 42212  42262   skipif mysql # not compatible
 42213  42263   query I rowsort label-4610
 42214  42264   SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab1, tab1 AS cor0
 42215  42265   ----
 42216  42266   81
 42217  42267   
        42268  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42218  42269   query II rowsort
 42219  42270   SELECT - col2 col2, col2 * - 62 AS col1 FROM tab0
 42220  42271   ----
 42221  42272   -10
 42222  42273   -620
 42223  42274   -47
 42224  42275   -2914
................................................................................
 42758  42809   ----
 42759  42810   
 42760  42811   skipif mysql # not compatible
 42761  42812   query III rowsort label-4669
 42762  42813   SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 3 * + col0 NOT IN ( + 17 * - + col2, + col2 / + ( + - 77 ) - CAST ( NULL AS REAL ), + col1, + 28 )
 42763  42814   ----
 42764  42815   
        42816  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42765  42817   query II rowsort
 42766  42818   SELECT + col2 col1, 39 FROM tab0 AS cor0
 42767  42819   ----
 42768  42820   10
 42769  42821   39
 42770  42822   47
 42771  42823   39
................................................................................
 43757  43809   query I rowsort label-4779
 43758  43810   SELECT + ( + CAST ( NULL AS INTEGER ) ) * 84 AS col1 FROM tab0
 43759  43811   ----
 43760  43812   NULL
 43761  43813   NULL
 43762  43814   NULL
 43763  43815   
        43816  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43764  43817   query II rowsort
 43765  43818   SELECT - 39 * 99 col0, + col2 AS col1 FROM tab2
 43766  43819   ----
 43767  43820   -3861
 43768  43821   23
 43769  43822   -3861
 43770  43823   40
................................................................................
 45548  45601   query I rowsort
 45549  45602   SELECT col1 * - - 32 FROM tab0
 45550  45603   ----
 45551  45604   2592
 45552  45605   32
 45553  45606   672
 45554  45607   
        45608  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45555  45609   query II rowsort
 45556  45610   SELECT + col0 col1, - 99 * + col0 FROM tab0
 45557  45611   ----
 45558  45612   15
 45559  45613   -1485
 45560  45614   87
 45561  45615   -8613
................................................................................
 45665  45719   
 45666  45720   skipif mysql # not compatible
 45667  45721   query I rowsort label-4989
 45668  45722   SELECT MIN ( - - col0 ) * 6 FROM tab1
 45669  45723   ----
 45670  45724   306
 45671  45725   
        45726  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45672  45727   query II rowsort
 45673  45728   SELECT ALL col0 col0, + 60 FROM tab2
 45674  45729   ----
 45675  45730   46
 45676  45731   60
 45677  45732   64
 45678  45733   60
................................................................................
 46305  46360   1
 46306  46361   45
 46307  46362   21
 46308  46363   45
 46309  46364   81
 46310  46365   45
 46311  46366   
        46367  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46312  46368   query II rowsort
 46313  46369   SELECT 4 col0, - 94 + - col0 AS col2 FROM tab1 AS cor0
 46314  46370   ----
 46315  46371   4
 46316  46372   -145
 46317  46373   4
 46318  46374   -179
................................................................................
 46360  46416   query I rowsort
 46361  46417   SELECT ALL - col1 + col2 + col0 + 63 FROM tab2 AS cor0
 46362  46418   ----
 46363  46419   129
 46364  46420   81
 46365  46421   90
 46366  46422   
        46423  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46367  46424   query II rowsort
 46368  46425   SELECT ALL - col1 col0, - col1 + - 11 AS col2 FROM tab0
 46369  46426   ----
 46370  46427   -1
 46371  46428   -12
 46372  46429   -21
 46373  46430   -32
................................................................................
 47793  47850   -2
 47794  47851   
 47795  47852   query III rowsort
 47796  47853   SELECT * FROM tab2 WHERE - 7 + + col1 NOT IN ( - col2 )
 47797  47854   ----
 47798  47855   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
 47799  47856   
        47857  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47800  47858   query II rowsort
 47801  47859   SELECT DISTINCT + ( - col2 ) col1, - col1 AS col1 FROM tab1
 47802  47860   ----
 47803  47861   -59
 47804  47862   -5
 47805  47863   -68
 47806  47864   -47
................................................................................
 48692  48750   query I rowsort label-5325
 48693  48751   SELECT + col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
 48694  48752   ----
 48695  48753   NULL
 48696  48754   NULL
 48697  48755   NULL
 48698  48756   
        48757  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48699  48758   query II rowsort
 48700  48759   SELECT - 85 col2, col1 AS col0 FROM tab2
 48701  48760   ----
 48702  48761   -85
 48703  48762   51
 48704  48763   -85
 48705  48764   67
................................................................................
 49048  49107   query II rowsort label-5361
 49049  49108   SELECT ALL - MIN( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2
 49050  49109   ----
 49051  49110   -46
 49052  49111   -2
 49053  49112   
 49054  49113   skipif mysql # not compatible
        49114  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49055  49115   query II rowsort label-5361
 49056  49116   SELECT ALL - MIN ( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2
 49057  49117   ----
 49058  49118   -46
 49059  49119   -2
 49060  49120   
 49061  49121   query III rowsort
................................................................................
 49503  49563   query II rowsort label-5405
 49504  49564   SELECT ALL COUNT( * ) + - COUNT( * ) col2, 50 + + - COUNT( * ) FROM tab2 AS cor0
 49505  49565   ----
 49506  49566   0
 49507  49567   47
 49508  49568   
 49509  49569   skipif mysql # not compatible
        49570  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49510  49571   query II rowsort label-5405
 49511  49572   SELECT ALL COUNT ( * ) + - COUNT ( * ) col2, 50 + + - COUNT ( * ) FROM tab2 AS cor0
 49512  49573   ----
 49513  49574   0
 49514  49575   47
 49515  49576   
 49516  49577   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 52741  52802   query I rowsort
 52742  52803   SELECT DISTINCT col0 + + col0 - + col0 AS col2 FROM tab1 AS cor0
 52743  52804   ----
 52744  52805   51
 52745  52806   85
 52746  52807   91
 52747  52808   
        52809  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52748  52810   query II rowsort
 52749  52811   SELECT DISTINCT col2 col2, - 55 AS col2 FROM tab2 AS cor0
 52750  52812   ----
 52751  52813   23
 52752  52814   -55
 52753  52815   40
 52754  52816   -55
................................................................................
 53348  53410   query I rowsort
 53349  53411   SELECT DISTINCT col2 - + - 63 AS col1 FROM tab1
 53350  53412   ----
 53351  53413   122
 53352  53414   131
 53353  53415   159
 53354  53416   
        53417  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53355  53418   query II rowsort
 53356  53419   SELECT ALL - ( - + col2 ) col1, - 60 AS col1 FROM tab0
 53357  53420   ----
 53358  53421   10
 53359  53422   -60
 53360  53423   47
 53361  53424   -60
................................................................................
 53939  54002   47
 53940  54003   0
 53941  54004   99
 53942  54005   2
 53943  54006   10
 53944  54007   
 53945  54008   skipif mysql # not compatible
        54009  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53946  54010   query II rowsort label-5889
 53947  54011   SELECT ALL + 23 / + col2 col2, + col2 AS col2 FROM tab0 AS cor0
 53948  54012   ----
 53949  54013   0
 53950  54014   47
 53951  54015   0
 53952  54016   99
................................................................................
 54232  54296   ----
 54233  54297   -92
 54234  54298   
 54235  54299   query IIIIII rowsort
 54236  54300   SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NULL IS NOT NULL
 54237  54301   ----
 54238  54302   
        54303  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54239  54304   query II rowsort
 54240  54305   SELECT DISTINCT col0 col0, - 73 * + col1 * - col0 * - col0 FROM tab1 WHERE NOT ( NULL IS NULL )
 54241  54306   ----
 54242  54307   
 54243  54308   onlyif mysql # DIV for integer division: 
 54244  54309   query II rowsort label-5925
 54245  54310   SELECT - col2 - + col0 DIV - col2, - col2 * col2 - ( col0 ) AS col1 FROM tab0
................................................................................
 56263  56328   skipif postgresql # PostgreSQL requires AS when renaming output columns
 56264  56329   query II rowsort label-6148
 56265  56330   SELECT - 0 AS col1, 96 / - MIN ( - col1 ) col0 FROM tab0
 56266  56331   ----
 56267  56332   0
 56268  56333   1
 56269  56334   
        56335  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56270  56336   query II rowsort
 56271  56337   SELECT 43 col2, - 80 FROM tab1
 56272  56338   ----
 56273  56339   43
 56274  56340   -80
 56275  56341   43
 56276  56342   -80
................................................................................
 56353  56419   query II rowsort label-6158
 56354  56420   SELECT ALL + - CAST( NULL AS SIGNED ) + - COUNT( * ) col2, - 3 FROM tab0 AS cor0
 56355  56421   ----
 56356  56422   NULL
 56357  56423   -3
 56358  56424   
 56359  56425   skipif mysql # not compatible
        56426  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56360  56427   query II rowsort label-6158
 56361  56428   SELECT ALL + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2, - 3 FROM tab0 AS cor0
 56362  56429   ----
 56363  56430   NULL
 56364  56431   -3
 56365  56432   
 56366  56433   query I rowsort
................................................................................
 56435  56502   query I rowsort
 56436  56503   SELECT 52 * - col0 - 8 FROM tab1 WHERE NULL IS NULL
 56437  56504   ----
 56438  56505   -2660
 56439  56506   -4428
 56440  56507   -4740
 56441  56508   
        56509  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56442  56510   query II rowsort
 56443  56511   SELECT DISTINCT 31 col1, + 86 * - 92 AS col2 FROM tab1
 56444  56512   ----
 56445  56513   31
 56446  56514   -7912
 56447  56515   
 56448  56516   query I rowsort
................................................................................
 56852  56920   query II rowsort label-6212
 56853  56921   SELECT - 82 - - - COUNT( * ) col0, ( - MIN( ALL - + CAST( col1 AS SIGNED ) ) ) FROM tab2 AS cor0
 56854  56922   ----
 56855  56923   -85
 56856  56924   77
 56857  56925   
 56858  56926   skipif mysql # not compatible
        56927  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56859  56928   query II rowsort label-6212
 56860  56929   SELECT - 82 - - - COUNT ( * ) col0, ( - MIN ( ALL - + CAST ( col1 AS INTEGER ) ) ) FROM tab2 AS cor0
 56861  56930   ----
 56862  56931   -85
 56863  56932   77
 56864  56933   
 56865  56934   query I rowsort
................................................................................
 57505  57574   
 57506  57575   skipif mysql # not compatible
 57507  57576   query I rowsort label-6282
 57508  57577   SELECT 16 / COUNT ( * ) AS col2 FROM tab0 AS cor0
 57509  57578   ----
 57510  57579   5
 57511  57580   
        57581  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57512  57582   query II rowsort
 57513  57583   SELECT ALL - 52 col1, + col0 FROM tab0 AS cor0
 57514  57584   ----
 57515  57585   -52
 57516  57586   15
 57517  57587   -52
 57518  57588   87
................................................................................
 57840  57910   -3807
 57841  57911   -99
 57842  57912   
 57843  57913   query III rowsort
 57844  57914   SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
 57845  57915   ----
 57846  57916   
        57917  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57847  57918   query II rowsort
 57848  57919   SELECT DISTINCT 13 col2, - col1 AS col2 FROM tab1
 57849  57920   ----
 57850  57921   13
 57851  57922   -14
 57852  57923   13
 57853  57924   -47
................................................................................
 58530  58601   query I rowsort
 58531  58602   SELECT DISTINCT + col0 * - ( - col0 ) FROM tab0
 58532  58603   ----
 58533  58604   225
 58534  58605   7569
 58535  58606   9409
 58536  58607   
        58608  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58537  58609   query II rowsort
 58538  58610   SELECT ALL + col0 * + col2 col1, + col1 AS col0 FROM tab2
 58539  58611   ----
 58540  58612   1058
 58541  58613   51
 58542  58614   2560
 58543  58615   77
................................................................................
 58586  58658   query I rowsort
 58587  58659   SELECT ( col2 ) * - - col0 * + col2 AS col0 FROM tab1 cor0
 58588  58660   ----
 58589  58661   295885
 58590  58662   420784
 58591  58663   470016
 58592  58664   
        58665  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58593  58666   query II rowsort
 58594  58667   SELECT col2 col0, ( + col1 ) FROM tab0
 58595  58668   ----
 58596  58669   10
 58597  58670   21
 58598  58671   47
 58599  58672   81
................................................................................
 59322  59395   
 59323  59396   skipif mysql # not compatible
 59324  59397   query I rowsort label-6479
 59325  59398   SELECT - MAX ( ALL - 48 ) FROM tab2
 59326  59399   ----
 59327  59400   48
 59328  59401   
        59402  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59329  59403   query II rowsort
 59330  59404   SELECT DISTINCT - ( col1 ) col0, 56 AS col0 FROM tab0
 59331  59405   ----
 59332  59406   -1
 59333  59407   56
 59334  59408   -21
 59335  59409   56
................................................................................
 61792  61866   query I rowsort
 61793  61867   SELECT + col0 * col0 + - 42 FROM tab0
 61794  61868   ----
 61795  61869   183
 61796  61870   7527
 61797  61871   9367
 61798  61872   
        61873  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61799  61874   query III rowsort
 61800  61875   SELECT ALL - - col2 AS col1, col2 col1, - - col0 FROM tab2 AS cor0
 61801  61876   ----
 61802  61877   9 values hashing to cab274f6910f0989b8e21ed8f2765415
 61803  61878   
 61804  61879   query I rowsort
 61805  61880   SELECT col2 * - - col0 * + col2 + + col2 AS col0 FROM tab2 cor0
................................................................................
 65405  65480   64
 65406  65481   
 65407  65482   query III rowsort
 65408  65483   SELECT DISTINCT * FROM tab1 WHERE + + 47 IS NOT NULL
 65409  65484   ----
 65410  65485   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 65411  65486   
        65487  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 65412  65488   query II rowsort
 65413  65489   SELECT - col2 col1, col1 + - + col2 FROM tab2 AS cor0
 65414  65490   ----
 65415  65491   -23
 65416  65492   28
 65417  65493   -40
 65418  65494   37
................................................................................
 67063  67139   query II rowsort label-7331
 67064  67140   SELECT - COUNT( * ) col2, 16 DIV + 36 FROM tab0
 67065  67141   ----
 67066  67142   -3
 67067  67143   0
 67068  67144   
 67069  67145   skipif mysql # not compatible
        67146  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67070  67147   query II rowsort label-7331
 67071  67148   SELECT - COUNT ( * ) col2, 16 / + 36 FROM tab0
 67072  67149   ----
 67073  67150   -3
 67074  67151   0
 67075  67152   
 67076  67153   onlyif mysql # aggregate syntax: 
................................................................................
 67525  67602   NULL
 67526  67603   68
 67527  67604   NULL
 67528  67605   96
 67529  67606   NULL
 67530  67607   
 67531  67608   skipif mysql # not compatible
        67609  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67532  67610   query II rowsort label-7380
 67533  67611   SELECT + + col2 col1, - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
 67534  67612   ----
 67535  67613   59
 67536  67614   NULL
 67537  67615   68
 67538  67616   NULL
................................................................................
 67687  67765   
 67688  67766   skipif mysql # not compatible
 67689  67767   query I rowsort label-7398
 67690  67768   SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab2 cor0
 67691  67769   ----
 67692  67770   -23
 67693  67771   
        67772  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67694  67773   query II rowsort
 67695  67774   SELECT ALL + 52 col2, 94 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
 67696  67775   ----
 67697  67776   
 67698  67777   onlyif mysql # DIV for integer division: 
 67699  67778   query I rowsort label-7400
 67700  67779   SELECT DISTINCT 73 DIV - - ( - col0 ) AS col1 FROM tab1 AS cor0
................................................................................
 67861  67940   NULL
 67862  67941   95
 67863  67942   NULL
 67864  67943   95
 67865  67944   NULL
 67866  67945   
 67867  67946   skipif mysql # not compatible
        67947  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67868  67948   query II rowsort label-7416
 67869  67949   SELECT + 95 col2, col1 * - + col2 * CAST ( NULL AS INTEGER ) + - + col2 FROM tab2 AS cor0
 67870  67950   ----
 67871  67951   95
 67872  67952   NULL
 67873  67953   95
 67874  67954   NULL
................................................................................
 68015  68095   
 68016  68096   skipif mysql # not compatible
 68017  68097   query I rowsort label-7433
 68018  68098   SELECT - COUNT ( ALL + + col0 ) FROM tab2 AS cor0
 68019  68099   ----
 68020  68100   -3
 68021  68101   
        68102  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68022  68103   query II rowsort
 68023  68104   SELECT col1 col0, 48 FROM tab2 AS cor0
 68024  68105   ----
 68025  68106   51
 68026  68107   48
 68027  68108   67
 68028  68109   48
................................................................................
 68222  68303   query I rowsort
 68223  68304   SELECT 64 * 95 AS col1 FROM tab0
 68224  68305   ----
 68225  68306   6080
 68226  68307   6080
 68227  68308   6080
 68228  68309   
        68310  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68229  68311   query II rowsort
 68230  68312   SELECT DISTINCT col2 col0, col1 AS col0 FROM tab0
 68231  68313   ----
 68232  68314   10
 68233  68315   21
 68234  68316   47
 68235  68317   81
................................................................................
 69056  69138   query I rowsort label-7549
 69057  69139   SELECT + - CAST ( + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
 69058  69140   ----
 69059  69141   NULL
 69060  69142   NULL
 69061  69143   NULL
 69062  69144   
        69145  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69063  69146   query II rowsort
 69064  69147   SELECT + + 73 col2, col0 * - ( - 34 ) FROM tab0 AS cor0
 69065  69148   ----
 69066  69149   73
 69067  69150   2958
 69068  69151   73
 69069  69152   3298
................................................................................
 69242  69325   -55
 69243  69326   
 69244  69327   query III rowsort
 69245  69328   SELECT * FROM tab2 AS cor0 WHERE NOT col1 / col1 * col1 IS NULL
 69246  69329   ----
 69247  69330   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
 69248  69331   
        69332  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69249  69333   query II rowsort
 69250  69334   SELECT ALL + col1 col0, col1 AS col0 FROM tab2 AS cor0
 69251  69335   ----
 69252  69336   51
 69253  69337   51
 69254  69338   67
 69255  69339   67
................................................................................
 69587  69671   query I rowsort
 69588  69672   SELECT ALL 23 * + col1 FROM tab0
 69589  69673   ----
 69590  69674   1863
 69591  69675   23
 69592  69676   483
 69593  69677   
        69678  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69594  69679   query II rowsort
 69595  69680   SELECT ALL col2 col2, col1 FROM tab2
 69596  69681   ----
 69597  69682   23
 69598  69683   51
 69599  69684   40
 69600  69685   77
................................................................................
 71089  71174   NULL
 71090  71175   0
 71091  71176   NULL
 71092  71177   0
 71093  71178   NULL
 71094  71179   
 71095  71180   skipif mysql # not compatible
        71181  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71096  71182   query II rowsort label-7772
 71097  71183   SELECT - - 48 / + 57 * col2 col2, + col0 + ( - ( col0 ) ) - CAST ( NULL AS REAL ) FROM tab1 AS cor0
 71098  71184   ----
 71099  71185   0
 71100  71186   NULL
 71101  71187   0
 71102  71188   NULL
................................................................................
 71214  71300   97
 71215  71301   47
 71216  71302   157
 71217  71303   99
 71218  71304   77
 71219  71305   
 71220  71306   skipif mysql # not compatible
        71307  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71221  71308   query II rowsort label-7785
 71222  71309   SELECT ALL + + col2 col2, + col1 + - - 83 / 42 + - - 75 AS col0 FROM tab0 AS cor0
 71223  71310   ----
 71224  71311   10
 71225  71312   97
 71226  71313   47
 71227  71314   157
................................................................................
 71308  71395   
 71309  71396   onlyif mysql # CAST syntax: SIGNED type: 
 71310  71397   query II rowsort label-7795
 71311  71398   SELECT col2 + - col0 col1, CAST( - 96 AS SIGNED ) + - - col1 FROM tab0 AS cor0 WHERE + 63 + + - col0 BETWEEN col0 * - + 12 AND ( NULL )
 71312  71399   ----
 71313  71400   
 71314  71401   skipif mysql # not compatible
        71402  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71315  71403   query II rowsort label-7795
 71316  71404   SELECT col2 + - col0 col1, CAST ( - 96 AS INTEGER ) + - - col1 FROM tab0 AS cor0 WHERE + 63 + + - col0 BETWEEN col0 * - + 12 AND ( NULL )
 71317  71405   ----
 71318  71406   
 71319  71407   query I rowsort
 71320  71408   SELECT DISTINCT ( + 78 ) - - 60 AS col2 FROM tab2 AS cor0
 71321  71409   ----
................................................................................
 71646  71734   95
 71647  71735   NULL
 71648  71736   95
 71649  71737   NULL
 71650  71738   95
 71651  71739   
 71652  71740   skipif mysql # not compatible
        71741  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71653  71742   query II rowsort label-7828
 71654  71743   SELECT ALL CAST ( NULL AS REAL ) col2, + 95 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
 71655  71744   ----
 71656  71745   NULL
 71657  71746   95
 71658  71747   NULL
 71659  71748   95
................................................................................
 71686  71775   query I rowsort
 71687  71776   SELECT DISTINCT + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
 71688  71777   ----
 71689  71778   -59
 71690  71779   -68
 71691  71780   -96
 71692  71781   
        71782  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71693  71783   query II rowsort
 71694  71784   SELECT + col1 * + col0 col1, + 69 * - - col0 + + col1 + + + 92 + col0 * 29 * + col2 * + col1 + col0 FROM tab2
 71695  71785   ----
 71696  71786   2346
 71697  71787   1568145
 71698  71788   4928
 71699  71789   5721129
................................................................................
 71990  72080   query II rowsort label-7865
 71991  72081   SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST( + - 42 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
 71992  72082   ----
 71993  72083   NULL
 71994  72084   -42
 71995  72085   
 71996  72086   skipif mysql # not compatible
        72087  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71997  72088   query II rowsort label-7865
 71998  72089   SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST ( + - 42 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
 71999  72090   ----
 72000  72091   NULL
 72001  72092   -42
 72002  72093   
 72003  72094   query I rowsort
................................................................................
 72392  72483   query I rowsort
 72393  72484   SELECT + 98 col0 FROM tab1
 72394  72485   ----
 72395  72486   98
 72396  72487   98
 72397  72488   98
 72398  72489   
        72490  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72399  72491   query II rowsort
 72400  72492   SELECT DISTINCT - 92 * + 20 col1, col2 + - col2 FROM tab0
 72401  72493   ----
 72402  72494   -1840
 72403  72495   0
 72404  72496   
 72405  72497   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 73897  73989   query II rowsort label-8072
 73898  73990   SELECT DISTINCT 98 col0, col2 DIV - col1 FROM tab2
 73899  73991   ----
 73900  73992   98
 73901  73993   0
 73902  73994   
 73903  73995   skipif mysql # not compatible
        73996  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 73904  73997   query II rowsort label-8072
 73905  73998   SELECT DISTINCT 98 col0, col2 / - col1 FROM tab2
 73906  73999   ----
 73907  74000   98
 73908  74001   0
 73909  74002   
 73910  74003   query II rowsort
................................................................................
 74869  74962   -394914
 74870  74963   85
 74871  74964   -394914
 74872  74965   91
 74873  74966   -394914
 74874  74967   
 74875  74968   skipif mysql # not compatible
        74969  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74876  74970   query II rowsort label-8181
 74877  74971   SELECT col0 col2, 61 * CAST ( + - 83 AS INTEGER ) * 78 FROM tab1
 74878  74972   ----
 74879  74973   51
 74880  74974   -394914
 74881  74975   85
 74882  74976   -394914
................................................................................
 74924  75018   102
 74925  75019   8
 74926  75020   170
 74927  75021   8
 74928  75022   182
 74929  75023   
 74930  75024   skipif mysql # not compatible
        75025  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74931  75026   query II rowsort label-8186
 74932  75027   SELECT col0 / 47 - - 7 col1, col0 + + col0 FROM tab1
 74933  75028   ----
 74934  75029   8
 74935  75030   102
 74936  75031   8
 74937  75032   170
................................................................................
 75056  75151   query I rowsort label-8198
 75057  75152   SELECT - 38 / + - col1 - - 85 AS col2 FROM tab1 AS cor0
 75058  75153   ----
 75059  75154   85
 75060  75155   87
 75061  75156   92
 75062  75157   
        75158  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75063  75159   query II rowsort
 75064  75160   SELECT 85 * col1 col2, - col2 FROM tab0 AS cor0
 75065  75161   ----
 75066  75162   1785
 75067  75163   -10
 75068  75164   6885
 75069  75165   -47
 75070  75166   85
 75071  75167   -99
 75072  75168   
        75169  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75073  75170   query II rowsort
 75074  75171   SELECT DISTINCT col1 * col2 col0, col1 AS col0 FROM tab0
 75075  75172   ----
 75076  75173   210
 75077  75174   21
 75078  75175   3807
 75079  75176   81
................................................................................
 75090  75187   skipif mysql # not compatible
 75091  75188   query II rowsort label-8201
 75092  75189   SELECT MIN ( + col2 ) AS col0, - COUNT ( * ) FROM tab2
 75093  75190   ----
 75094  75191   23
 75095  75192   -3
 75096  75193   
        75194  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75097  75195   query II rowsort
 75098  75196   SELECT ALL - col1 col1, col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
 75099  75197   ----
 75100  75198   
 75101  75199   query I rowsort
 75102  75200   SELECT DISTINCT - 91 + + col1 + col0 * - 36 * col1 FROM tab2 AS cor0
 75103  75201   ----
................................................................................
 75937  76035   NULL
 75938  76036   64
 75939  76037   NULL
 75940  76038   75
 75941  76039   NULL
 75942  76040   
 75943  76041   skipif mysql # not compatible
        76042  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75944  76043   query II rowsort label-8288
 75945  76044   SELECT + col0 col1, + ( + 19 ) * - 90 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
 75946  76045   ----
 75947  76046   46
 75948  76047   NULL
 75949  76048   64
 75950  76049   NULL
................................................................................
 76385  76484   
 76386  76485   onlyif mysql # CAST syntax: SIGNED type: 
 76387  76486   query II rowsort label-8340
 76388  76487   SELECT + + CAST( + 5 AS SIGNED ) col0, col0 FROM tab0 AS cor0 WHERE + col0 + + col0 <> NULL
 76389  76488   ----
 76390  76489   
 76391  76490   skipif mysql # not compatible
        76491  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76392  76492   query II rowsort label-8340
 76393  76493   SELECT + + CAST ( + 5 AS INTEGER ) col0, col0 FROM tab0 AS cor0 WHERE + col0 + + col0 <> NULL
 76394  76494   ----
 76395  76495   
 76396  76496   query III rowsort
 76397  76497   SELECT * FROM tab1 AS cor0 WHERE col2 - - 19 + + + col0 NOT IN ( - 97, - col0 * + col2 + 42, 68 * col2 )
 76398  76498   ----
................................................................................
 78262  78362   SELECT * FROM tab2 WHERE NULL IN ( - col2, col0 )
 78263  78363   ----
 78264  78364   
 78265  78365   query III rowsort
 78266  78366   SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL BETWEEN - col0 AND NULL )
 78267  78367   ----
 78268  78368   
        78369  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78269  78370   query II rowsort
 78270  78371   SELECT col2 * - col0 * + - col2 * - col1 col1, ( - - col2 ) AS col1 FROM tab0
 78271  78372   ----
 78272  78373   -182700
 78273  78374   10
 78274  78375   -2683935
 78275  78376   47
................................................................................
 79268  79369   36
 79269  79370   NULL
 79270  79371   36
 79271  79372   NULL
 79272  79373   36
 79273  79374   
 79274  79375   skipif mysql # not compatible
        79376  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79275  79377   query II rowsort label-8655
 79276  79378   SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) / + + col1 col2, + 36 FROM tab0
 79277  79379   ----
 79278  79380   NULL
 79279  79381   36
 79280  79382   NULL
 79281  79383   36
................................................................................
 79327  79429   query I rowsort
 79328  79430   SELECT ALL - 48 - - + 62 FROM tab2 AS cor0
 79329  79431   ----
 79330  79432   14
 79331  79433   14
 79332  79434   14
 79333  79435   
        79436  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79334  79437   query II rowsort
 79335  79438   SELECT - col2 col0, - col0 * col0 * - col2 * + 0 FROM tab2 AS cor0
 79336  79439   ----
 79337  79440   -23
 79338  79441   0
 79339  79442   -40
 79340  79443   0
................................................................................
 79655  79758   query I rowsort
 79656  79759   SELECT ALL col2 FROM tab2 AS cor0 WHERE col2 * + 83 <> 50 + - - ( + col0 )
 79657  79760   ----
 79658  79761   23
 79659  79762   40
 79660  79763   58
 79661  79764   
        79765  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79662  79766   query II rowsort
 79663  79767   SELECT + col0 col1, 55 AS col2 FROM tab1
 79664  79768   ----
 79665  79769   51
 79666  79770   55
 79667  79771   85
 79668  79772   55
................................................................................
 79965  80069   query II rowsort label-8732
 79966  80070   SELECT ALL + 48 col2, + COUNT( * ) AS col1 FROM tab0
 79967  80071   ----
 79968  80072   48
 79969  80073   3
 79970  80074   
 79971  80075   skipif mysql # not compatible
        80076  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79972  80077   query II rowsort label-8732
 79973  80078   SELECT ALL + 48 col2, + COUNT ( * ) AS col1 FROM tab0
 79974  80079   ----
 79975  80080   48
 79976  80081   3
 79977  80082   
 79978  80083   onlyif mysql # aggregate syntax: 
................................................................................
 80152  80257   query II rowsort label-8752
 80153  80258   SELECT COUNT( * ) col0, + 47 FROM tab2
 80154  80259   ----
 80155  80260   3
 80156  80261   47
 80157  80262   
 80158  80263   skipif mysql # not compatible
        80264  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80159  80265   query II rowsort label-8752
 80160  80266   SELECT COUNT ( * ) col0, + 47 FROM tab2
 80161  80267   ----
 80162  80268   3
 80163  80269   47
 80164  80270   
 80165  80271   onlyif mysql # aggregate syntax: 
................................................................................
 80279  80385   
 80280  80386   skipif mysql # not compatible
 80281  80387   query I rowsort label-8767
 80282  80388   SELECT MIN ( - 28 ) FROM tab1
 80283  80389   ----
 80284  80390   -28
 80285  80391   
        80392  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80286  80393   query II rowsort
 80287  80394   SELECT ALL col0 col1, - 54 FROM tab2
 80288  80395   ----
 80289  80396   46
 80290  80397   -54
 80291  80398   64
 80292  80399   -54
 80293  80400   75
 80294  80401   -54
 80295  80402   
        80403  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80296  80404   query III rowsort
 80297  80405   SELECT col1 col1, ( + ( + col1 ) ) AS col0, - 27 FROM tab2 AS cor0
 80298  80406   ----
 80299  80407   9 values hashing to 624809d65edc7e8d5f51920ecd5615c8
 80300  80408   
 80301  80409   query II rowsort
 80302  80410   SELECT DISTINCT - 92, + col0 FROM tab0 cor0
................................................................................
 80851  80959   ----
 80852  80960   
 80853  80961   query III rowsort
 80854  80962   SELECT * FROM tab0 WHERE NOT - - 26 IS NULL
 80855  80963   ----
 80856  80964   9 values hashing to c4b42765dff94eaaa46040e537fb43b7
 80857  80965   
        80966  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80858  80967   query II rowsort
 80859  80968   SELECT DISTINCT + col1 * - 45 * - col1 col1, col2 + + 66 AS col2 FROM tab0
 80860  80969   ----
 80861  80970   19845
 80862  80971   76
 80863  80972   295245
 80864  80973   113
................................................................................
 81467  81576   NULL
 81468  81577   870
 81469  81578   NULL
 81470  81579   9603
 81471  81580   NULL
 81472  81581   
 81473  81582   skipif mysql # not compatible
        81583  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81474  81584   query II rowsort label-8884
 81475  81585   SELECT DISTINCT + + col0 * + + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
 81476  81586   ----
 81477  81587   705
 81478  81588   NULL
 81479  81589   870
 81480  81590   NULL
................................................................................
 82583  82693   1187
 82584  82694   NULL
 82585  82695   3794
 82586  82696   NULL
 82587  82697   476
 82588  82698   
 82589  82699   skipif mysql # not compatible
        82700  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82590  82701   query II rowsort label-9010
 82591  82702   SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / col0 + 18 col1, + 31 + + 50 + + col1 * 79 FROM tab1 AS cor0
 82592  82703   ----
 82593  82704   NULL
 82594  82705   1187
 82595  82706   NULL
 82596  82707   3794
................................................................................
 82711  82822   query II rowsort label-9024
 82712  82823   SELECT + ( - - 14 ) col2, COUNT( * ) FROM tab2
 82713  82824   ----
 82714  82825   14
 82715  82826   3
 82716  82827   
 82717  82828   skipif mysql # not compatible
        82829  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82718  82830   query II rowsort label-9024
 82719  82831   SELECT + ( - - 14 ) col2, COUNT ( * ) FROM tab2
 82720  82832   ----
 82721  82833   14
 82722  82834   3
 82723  82835   
 82724  82836   query I rowsort
................................................................................
 83045  83157   237
 83046  83158   
 83047  83159   query III rowsort
 83048  83160   SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 93 + + 46 >= 14
 83049  83161   ----
 83050  83162   9 values hashing to c4b42765dff94eaaa46040e537fb43b7
 83051  83163   
        83164  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83052  83165   query II rowsort
 83053  83166   SELECT + col1 col0, 95 AS col1 FROM tab0 AS cor0
 83054  83167   ----
 83055  83168   1
 83056  83169   95
 83057  83170   21
 83058  83171   95
................................................................................
 83815  83928   skipif mysql # not compatible
 83816  83929   query II rowsort label-9141
 83817  83930   SELECT + - SUM ( + + col0 ) / - - ( 79 ), 48 AS col2 FROM tab2 cor0
 83818  83931   ----
 83819  83932   -2
 83820  83933   48
 83821  83934   
        83935  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83822  83936   query II rowsort
 83823  83937   SELECT - - 3 col1, 80 FROM tab2 AS cor0
 83824  83938   ----
 83825  83939   3
 83826  83940   80
 83827  83941   3
 83828  83942   80
................................................................................
 83895  84009   query II rowsort label-9149
 83896  84010   SELECT DISTINCT + - COUNT( DISTINCT - + 69 ) col2, - 30 * + COUNT( * ) FROM tab2 WHERE + col0 IS NOT NULL
 83897  84011   ----
 83898  84012   -1
 83899  84013   -90
 83900  84014   
 83901  84015   skipif mysql # not compatible
        84016  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83902  84017   query II rowsort label-9149
 83903  84018   SELECT DISTINCT + - COUNT ( DISTINCT - + 69 ) col2, - 30 * + COUNT ( * ) FROM tab2 WHERE + col0 IS NOT NULL
 83904  84019   ----
 83905  84020   -1
 83906  84021   -90
 83907  84022   
 83908  84023   query I rowsort
................................................................................
 85280  85395   ----
 85281  85396   -15
 85282  85397   
 85283  85398   query I rowsort
 85284  85399   SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
 85285  85400   ----
 85286  85401   
        85402  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85287  85403   query II rowsort
 85288  85404   SELECT + col2 col1, - col1 AS col0 FROM tab2
 85289  85405   ----
 85290  85406   23
 85291  85407   -51
 85292  85408   40
 85293  85409   -77
................................................................................
 85647  85763   query II rowsort label-9328
 85648  85764   SELECT DISTINCT - 15 + - - 90 * + + CAST( NULL AS DECIMAL ) col2, - 38 + CAST( + AVG ( ALL + 75 ) AS SIGNED ) FROM tab0 cor0
 85649  85765   ----
 85650  85766   NULL
 85651  85767   37
 85652  85768   
 85653  85769   skipif mysql # not compatible
        85770  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 85654  85771   query II rowsort label-9328
 85655  85772   SELECT DISTINCT - 15 + - - 90 * + + CAST ( NULL AS REAL ) col2, - 38 + CAST ( + AVG ( ALL + 75 ) AS INTEGER ) FROM tab0 cor0
 85656  85773   ----
 85657  85774   NULL
 85658  85775   37
 85659  85776   
 85660  85777   onlyif mysql # aggregate syntax: 
................................................................................
 86700  86817   query I rowsort
 86701  86818   SELECT - ( - 35 ) * + + col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
 86702  86819   ----
 86703  86820   2065
 86704  86821   2380
 86705  86822   3360
 86706  86823   
        86824  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86707  86825   query II rowsort
 86708  86826   SELECT ALL + + col2 col2, - col2 * - 48 FROM tab2 cor0
 86709  86827   ----
 86710  86828   23
 86711  86829   1104
 86712  86830   40
 86713  86831   1920
................................................................................
 87537  87655   ----
 87538  87656   
 87539  87657   skipif mysql # not compatible
 87540  87658   query I rowsort label-9535
 87541  87659   SELECT + 64 + 79 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 63 + col2 + 66 BETWEEN NULL AND - 71
 87542  87660   ----
 87543  87661   
        87662  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 87544  87663   query II rowsort
 87545  87664   SELECT + - col2 col1, 16 FROM tab1 AS cor0
 87546  87665   ----
 87547  87666   -59
 87548  87667   16
 87549  87668   -68
 87550  87669   16
................................................................................
 87952  88071   -950600
 87953  88072   21
 87954  88073   -182613
 87955  88074   81
 87956  88075   -2683920
 87957  88076   
 87958  88077   skipif mysql # not compatible
        88078  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 87959  88079   query II rowsort label-9579
 87960  88080   SELECT - CAST ( - col1 AS INTEGER ) col0, + col0 + col2 * - col0 * + col1 * col2 FROM tab0 AS cor0
 87961  88081   ----
 87962  88082   1
 87963  88083   -950600
 87964  88084   21
 87965  88085   -182613
................................................................................
 88414  88534   query II rowsort label-9626
 88415  88535   SELECT - + 81 col2, COUNT( * ) AS col1 FROM tab0 AS cor0
 88416  88536   ----
 88417  88537   -81
 88418  88538   3
 88419  88539   
 88420  88540   skipif mysql # not compatible
        88541  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 88421  88542   query II rowsort label-9626
 88422  88543   SELECT - + 81 col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
 88423  88544   ----
 88424  88545   -81
 88425  88546   3
 88426  88547   
 88427  88548   onlyif mysql # aggregate syntax: 
................................................................................
 89858  89979   query I rowsort
 89859  89980   SELECT DISTINCT + col1 + 86 AS col2 FROM tab0 AS cor0
 89860  89981   ----
 89861  89982   107
 89862  89983   167
 89863  89984   87
 89864  89985   
        89986  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89865  89987   query II rowsort
 89866  89988   SELECT DISTINCT + - col1 * + col0 + - 89 col0, + col2 * + col1 FROM tab1 AS cor0
 89867  89989   ----
 89868  89990   -4366
 89869  89991   3196
 89870  89992   -514
 89871  89993   295
................................................................................
 91259  91381   query I rowsort
 91260  91382   SELECT 35 * ( - col2 ) AS col1 FROM tab1
 91261  91383   ----
 91262  91384   -2065
 91263  91385   -2380
 91264  91386   -3360
 91265  91387   
        91388  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 91266  91389   query II rowsort
 91267  91390   SELECT - col0 col2, - 10 FROM tab0
 91268  91391   ----
 91269  91392   -15
 91270  91393   -10
 91271  91394   -87
 91272  91395   -10
................................................................................
 91442  91565   query II rowsort label-9948
 91443  91566   SELECT ALL + COUNT( * ) col1, - ( SUM( - col0 ) ) AS col2 FROM tab1
 91444  91567   ----
 91445  91568   3
 91446  91569   227
 91447  91570   
 91448  91571   skipif mysql # not compatible
        91572  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 91449  91573   query II rowsort label-9948
 91450  91574   SELECT ALL + COUNT ( * ) col1, - ( SUM ( - col0 ) ) AS col2 FROM tab1
 91451  91575   ----
 91452  91576   3
 91453  91577   227
 91454  91578   
 91455  91579   query II rowsort

Changes to test/random/aggregates/slt_good_102.test.

  1722   1722   
  1723   1723   skipif mysql # not compatible
  1724   1724   query I rowsort label-186
  1725   1725   SELECT COUNT ( + + col1 ) FROM tab1 AS cor0
  1726   1726   ----
  1727   1727   3
  1728   1728   
         1729  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  1729   1730   query II rowsort
  1730   1731   SELECT col1 col0, col2 AS col1 FROM tab2 AS cor0
  1731   1732   ----
  1732   1733   51
  1733   1734   23
  1734   1735   67
  1735   1736   58
................................................................................
  2774   2775   72
  2775   2776   54
  2776   2777   72
  2777   2778   54
  2778   2779   72
  2779   2780   
  2780   2781   skipif mysql # not compatible
         2782  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2781   2783   query II rowsort label-291
  2782   2784   SELECT + 54 col1, + CAST ( + 72 AS INTEGER ) AS col0 FROM tab2
  2783   2785   ----
  2784   2786   54
  2785   2787   72
  2786   2788   54
  2787   2789   72
................................................................................
  3394   3396   query I rowsort
  3395   3397   SELECT - col2 * + 92 AS col1 FROM tab0
  3396   3398   ----
  3397   3399   -4324
  3398   3400   -9108
  3399   3401   -920
  3400   3402   
         3403  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3401   3404   query II rowsort
  3402   3405   SELECT DISTINCT - col2 * - - col0 col1, - col2 + + 58 FROM tab2
  3403   3406   ----
  3404   3407   -1058
  3405   3408   35
  3406   3409   -2560
  3407   3410   18
................................................................................
  3997   4000   
  3998   4001   skipif mysql # not compatible
  3999   4002   query I rowsort label-434
  4000   4003   SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) IS NULL
  4001   4004   ----
  4002   4005   0
  4003   4006   
         4007  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  4004   4008   query II rowsort
  4005   4009   SELECT - + 68 col2, col2 * col2 * - col2 FROM tab1 AS cor0
  4006   4010   ----
  4007   4011   -68
  4008   4012   -205379
  4009   4013   -68
  4010   4014   -314432
................................................................................
  5088   5092   ----
  5089   5093   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
  5090   5094   
  5091   5095   query III rowsort
  5092   5096   SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 < ( NULL )
  5093   5097   ----
  5094   5098   
         5099  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5095   5100   query II rowsort
  5096   5101   SELECT + col1 col0, - col2 * + + col0 AS col1 FROM tab0 AS cor0
  5097   5102   ----
  5098   5103   1
  5099   5104   -9603
  5100   5105   21
  5101   5106   -870
................................................................................
  5337   5342   
  5338   5343   skipif mysql # not compatible
  5339   5344   query I rowsort label-580
  5340   5345   SELECT - SUM ( DISTINCT - - col1 ) FROM tab2 AS cor0
  5341   5346   ----
  5342   5347   -195
  5343   5348   
         5349  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5344   5350   query II rowsort
  5345   5351   SELECT 59 col1, + col2 FROM tab1 AS cor0
  5346   5352   ----
  5347   5353   59
  5348   5354   59
  5349   5355   59
  5350   5356   68
................................................................................
  7890   7896   
  7891   7897   skipif mysql # not compatible
  7892   7898   query I rowsort label-856
  7893   7899   SELECT + COUNT ( * ) * - - MAX ( - col2 ) AS col2 FROM tab0
  7894   7900   ----
  7895   7901   -30
  7896   7902   
         7903  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7897   7904   query II rowsort
  7898   7905   SELECT DISTINCT col2 * - + 86 col0, - 54 - 11 * + col2 FROM tab0
  7899   7906   ----
  7900   7907   -4042
  7901   7908   -571
  7902   7909   -8514
  7903   7910   -1143
  7904   7911   -860
  7905   7912   -164
  7906   7913   
         7914  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7907   7915   query II rowsort
  7908   7916   SELECT + col1 col1, - 29 FROM tab2
  7909   7917   ----
  7910   7918   51
  7911   7919   -29
  7912   7920   67
  7913   7921   -29
................................................................................
  9178   9186   query II rowsort label-994
  9179   9187   SELECT COUNT( * ) col2, - COUNT( * ) AS col2 FROM tab1 AS cor0
  9180   9188   ----
  9181   9189   3
  9182   9190   -3
  9183   9191   
  9184   9192   skipif mysql # not compatible
         9193  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9185   9194   query II rowsort label-994
  9186   9195   SELECT COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0
  9187   9196   ----
  9188   9197   3
  9189   9198   -3
  9190   9199   
  9191   9200   query I rowsort
................................................................................
  9958   9967   NULL
  9959   9968   -44
  9960   9969   NULL
  9961   9970   -80
  9962   9971   NULL
  9963   9972   
  9964   9973   skipif mysql # not compatible
         9974  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9965   9975   query II rowsort label-1076
  9966   9976   SELECT + col1 + + ( - col0 ) col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
  9967   9977   ----
  9968   9978   -37
  9969   9979   NULL
  9970   9980   -44
  9971   9981   NULL
................................................................................
 10597  10607   query I rowsort label-1140
 10598  10608   SELECT - CAST ( - col1 AS INTEGER ) * - col0 - + col2 AS col2 FROM tab2
 10599  10609   ----
 10600  10610   -2369
 10601  10611   -4968
 10602  10612   -5083
 10603  10613   
        10614  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 10604  10615   query II rowsort
 10605  10616   SELECT ALL - col2 col0, + col1 + col2 FROM tab0
 10606  10617   ----
 10607  10618   -10
 10608  10619   31
 10609  10620   -47
 10610  10621   128
................................................................................
 10995  11006   skipif mysql # not compatible
 10996  11007   skipif postgresql # PostgreSQL requires AS when renaming output columns
 10997  11008   query I rowsort label-1185
 10998  11009   SELECT - SUM ( + - col0 ) * + 75 col1 FROM tab2
 10999  11010   ----
 11000  11011   13875
 11001  11012   
        11013  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11002  11014   query II rowsort
 11003  11015   SELECT ALL col2 + - col0 col2, col0 * 51 AS col0 FROM tab2
 11004  11016   ----
 11005  11017   -17
 11006  11018   3825
 11007  11019   -23
 11008  11020   2346
................................................................................
 11304  11316   query I rowsort
 11305  11317   SELECT - col0 * 38 AS col0 FROM tab0 AS cor0
 11306  11318   ----
 11307  11319   -3306
 11308  11320   -3686
 11309  11321   -570
 11310  11322   
        11323  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11311  11324   query III rowsort
 11312  11325   SELECT 45 - + col2, - col1 * - + col2 col1, col1 + + col2 AS col2 FROM tab1
 11313  11326   ----
 11314  11327   9 values hashing to 1b92f2a7bf19cb8deff0fe40cdcc21b2
 11315  11328   
 11316  11329   onlyif mysql # aggregate syntax: 
 11317  11330   query I rowsort label-1220
................................................................................
 13979  13992   13
 13980  13993   147
 13981  13994   9
 13982  13995   153
 13983  13996   10
 13984  13997   
 13985  13998   skipif mysql # not compatible
        13999  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13986  14000   query II rowsort label-1519
 13987  14001   SELECT col0 + + CAST ( + 62 AS INTEGER ) col0, - CAST ( - 3 AS INTEGER ) + - + col2 / - 9 FROM tab1
 13988  14002   ----
 13989  14003   113
 13990  14004   13
 13991  14005   147
 13992  14006   9
................................................................................
 14153  14167   query II rowsort label-1539
 14154  14168   SELECT + - COUNT( * ) col0, - ( + + 46 ) FROM tab2 AS cor0
 14155  14169   ----
 14156  14170   -3
 14157  14171   -46
 14158  14172   
 14159  14173   skipif mysql # not compatible
        14174  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14160  14175   query II rowsort label-1539
 14161  14176   SELECT + - COUNT ( * ) col0, - ( + + 46 ) FROM tab2 AS cor0
 14162  14177   ----
 14163  14178   -3
 14164  14179   -46
 14165  14180   
 14166  14181   query I rowsort
................................................................................
 14495  14510   -83
 14496  14511   -1125
 14497  14512   -83
 14498  14513   -690
 14499  14514   -83
 14500  14515   -960
 14501  14516   
        14517  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14502  14518   query II rowsort
 14503  14519   SELECT + col0 col0, - 1 * + col0 * col0 FROM tab2
 14504  14520   ----
 14505  14521   46
 14506  14522   -2116
 14507  14523   64
 14508  14524   -4096
................................................................................
 15253  15269   
 15254  15270   skipif mysql # not compatible
 15255  15271   query I rowsort label-1661
 15256  15272   SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab2 cor0
 15257  15273   ----
 15258  15274   1
 15259  15275   
        15276  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15260  15277   query II rowsort
 15261  15278   SELECT + + ( - col0 ) + 21 - - col1 col2, + col2 * + 1 AS col1 FROM tab2 AS cor0
 15262  15279   ----
 15263  15280   13
 15264  15281   58
 15265  15282   26
 15266  15283   23
................................................................................
 16200  16217   query I rowsort
 16201  16218   SELECT - col2 FROM tab2 WHERE NOT col1 IS NULL
 16202  16219   ----
 16203  16220   -23
 16204  16221   -40
 16205  16222   -58
 16206  16223   
        16224  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16207  16225   query II rowsort
 16208  16226   SELECT ALL 87 col1, - col1 FROM tab1
 16209  16227   ----
 16210  16228   87
 16211  16229   -14
 16212  16230   87
 16213  16231   -47
................................................................................
 16425  16443   SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
 16426  16444   ----
 16427  16445   
 16428  16446   query I rowsort
 16429  16447   SELECT DISTINCT - ( + col0 ) + col2 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
 16430  16448   ----
 16431  16449   
        16450  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16432  16451   query II rowsort
 16433  16452   SELECT DISTINCT col0 - + 37 col2, 49 FROM tab0 AS cor0
 16434  16453   ----
 16435  16454   -22
 16436  16455   49
 16437  16456   50
 16438  16457   49
................................................................................
 16678  16697   
 16679  16698   skipif mysql # not compatible
 16680  16699   query I rowsort label-1820
 16681  16700   SELECT DISTINCT + MAX ( - + 75 ) AS col0 FROM tab2 AS cor0
 16682  16701   ----
 16683  16702   -75
 16684  16703   
        16704  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16685  16705   query II rowsort
 16686  16706   SELECT ALL + 33 col0, + col2 + + col0 FROM tab2 AS cor0
 16687  16707   ----
 16688  16708   33
 16689  16709   104
 16690  16710   33
 16691  16711   133
................................................................................
 16788  16808   query II rowsort label-1832
 16789  16809   SELECT DISTINCT - 96 col1, COUNT( * ) AS col0 FROM tab0 AS cor0
 16790  16810   ----
 16791  16811   -96
 16792  16812   3
 16793  16813   
 16794  16814   skipif mysql # not compatible
        16815  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16795  16816   query II rowsort label-1832
 16796  16817   SELECT DISTINCT - 96 col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
 16797  16818   ----
 16798  16819   -96
 16799  16820   3
 16800  16821   
 16801  16822   query I rowsort
................................................................................
 19099  19120   query I rowsort label-2073
 19100  19121   SELECT ALL - ( - col2 ) / - - 97 * col0 col0 FROM tab1 AS cor0
 19101  19122   ----
 19102  19123   0
 19103  19124   0
 19104  19125   0
 19105  19126   
        19127  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19106  19128   query II rowsort
 19107  19129   SELECT DISTINCT - col0 col0, 85 + + 86 FROM tab2 AS cor0
 19108  19130   ----
 19109  19131   -46
 19110  19132   171
 19111  19133   -64
 19112  19134   171
................................................................................
 19210  19232   46
 19211  19233   NULL
 19212  19234   64
 19213  19235   NULL
 19214  19236   75
 19215  19237   
 19216  19238   skipif mysql # not compatible
        19239  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19217  19240   query II rowsort label-2083
 19218  19241   SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, col0 FROM tab2
 19219  19242   ----
 19220  19243   NULL
 19221  19244   46
 19222  19245   NULL
 19223  19246   64
................................................................................
 21452  21475   query III rowsort
 21453  21476   SELECT * FROM tab2 WHERE 70 <= + col0
 21454  21477   ----
 21455  21478   75
 21456  21479   67
 21457  21480   58
 21458  21481   
        21482  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21459  21483   query II rowsort
 21460  21484   SELECT - 22 col1, + col2 * ( 63 ) + + + col1 AS col0 FROM tab0
 21461  21485   ----
 21462  21486   -22
 21463  21487   3042
 21464  21488   -22
 21465  21489   6238
................................................................................
 21622  21646   
 21623  21647   skipif mysql # not compatible
 21624  21648   query I rowsort label-2349
 21625  21649   SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab1 WHERE NOT - col1 < NULL
 21626  21650   ----
 21627  21651   0
 21628  21652   
        21653  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21629  21654   query II rowsort
 21630  21655   SELECT DISTINCT - 17 col0, col0 FROM tab1
 21631  21656   ----
 21632  21657   -17
 21633  21658   51
 21634  21659   -17
 21635  21660   85
................................................................................
 22587  22612   query I rowsort label-2456
 22588  22613   SELECT ALL + 57 / - 14 col2 FROM tab1 AS cor0
 22589  22614   ----
 22590  22615   -4
 22591  22616   -4
 22592  22617   -4
 22593  22618   
        22619  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22594  22620   query II rowsort
 22595  22621   SELECT DISTINCT 60 col1, col2 - - 96 * 39 AS col1 FROM tab0 AS cor0
 22596  22622   ----
 22597  22623   60
 22598  22624   3754
 22599  22625   60
 22600  22626   3791
................................................................................
 24901  24927   skipif mysql # not compatible
 24902  24928   skipif postgresql # PostgreSQL requires AS when renaming output columns
 24903  24929   query I rowsort label-2710
 24904  24930   SELECT + - SUM ( ( col0 ) ) - + COUNT ( * ) col2 FROM tab0 AS cor0
 24905  24931   ----
 24906  24932   -202
 24907  24933   
        24934  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24908  24935   query II rowsort
 24909  24936   SELECT col2 - + col1 col1, col1 AS col2 FROM tab2
 24910  24937   ----
 24911  24938   -28
 24912  24939   51
 24913  24940   -37
 24914  24941   77
................................................................................
 25241  25268   
 25242  25269   skipif mysql # not compatible
 25243  25270   query I rowsort label-2746
 25244  25271   SELECT 59 * + COUNT ( * ) FROM tab2 AS cor0
 25245  25272   ----
 25246  25273   177
 25247  25274   
        25275  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25248  25276   query II rowsort
 25249  25277   SELECT + 9 col0, + ( col2 ) FROM tab1 cor0
 25250  25278   ----
 25251  25279   9
 25252  25280   59
 25253  25281   9
 25254  25282   68
................................................................................
 26015  26043   query II rowsort label-2826
 26016  26044   SELECT DISTINCT + COUNT( * ) col2, MIN( + + col1 ) AS col1 FROM tab1 AS cor0
 26017  26045   ----
 26018  26046   3
 26019  26047   5
 26020  26048   
 26021  26049   skipif mysql # not compatible
        26050  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 26022  26051   query II rowsort label-2826
 26023  26052   SELECT DISTINCT + COUNT ( * ) col2, MIN ( + + col1 ) AS col1 FROM tab1 AS cor0
 26024  26053   ----
 26025  26054   3
 26026  26055   5
 26027  26056   
 26028  26057   query III rowsort
................................................................................
 27337  27366   -2346
 27338  27367   -46
 27339  27368   -4928
 27340  27369   -64
 27341  27370   -5025
 27342  27371   -75
 27343  27372   
        27373  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27344  27374   query II rowsort
 27345  27375   SELECT DISTINCT col2 * col1 col1, 19 * - - col1 - - 14 AS col1 FROM tab1
 27346  27376   ----
 27347  27377   1344
 27348  27378   280
 27349  27379   295
 27350  27380   109
................................................................................
 27398  27428   SELECT DISTINCT - 46 col1 FROM tab1 AS cor0 WHERE col1 * + 89 / + ( - + col1 ) + col0 IS NULL
 27399  27429   ----
 27400  27430   
 27401  27431   query I rowsort
 27402  27432   SELECT ALL 80 - - + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
 27403  27433   ----
 27404  27434   
        27435  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27405  27436   query II rowsort
 27406  27437   SELECT - 1 col2, - col2 * - + 91 FROM tab0 AS cor0
 27407  27438   ----
 27408  27439   -1
 27409  27440   4277
 27410  27441   -1
 27411  27442   9009
................................................................................
 29007  29038   
 29008  29039   skipif mysql # not compatible
 29009  29040   query I rowsort label-3159
 29010  29041   SELECT DISTINCT - 61 / 82 AS col0 FROM tab0 AS cor0
 29011  29042   ----
 29012  29043   0
 29013  29044   
        29045  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29014  29046   query II rowsort
 29015  29047   SELECT - 41 col0, + 45 FROM tab2 AS cor0
 29016  29048   ----
 29017  29049   -41
 29018  29050   45
 29019  29051   -41
 29020  29052   45
................................................................................
 29255  29287   23
 29256  29288   
 29257  29289   query I rowsort
 29258  29290   SELECT DISTINCT + ( + 79 ) FROM tab0 AS cor0
 29259  29291   ----
 29260  29292   79
 29261  29293   
        29294  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29262  29295   query II rowsort
 29263  29296   SELECT ALL + col0 col0, + 33 * + col1 FROM tab1 AS cor0
 29264  29297   ----
 29265  29298   51
 29266  29299   462
 29267  29300   85
 29268  29301   165
 29269  29302   91
 29270  29303   1551
 29271  29304   
        29305  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29272  29306   query II rowsort
 29273  29307   SELECT DISTINCT 69 col2, col1 AS col1 FROM tab1 AS cor0
 29274  29308   ----
 29275  29309   69
 29276  29310   14
 29277  29311   69
 29278  29312   47
................................................................................
 29320  29354   query II rowsort label-3195
 29321  29355   SELECT DISTINCT ( - 30 ) col0, COUNT( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
 29322  29356   ----
 29323  29357   -30
 29324  29358   3
 29325  29359   
 29326  29360   skipif mysql # not compatible
        29361  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29327  29362   query II rowsort label-3195
 29328  29363   SELECT DISTINCT ( - 30 ) col0, COUNT ( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
 29329  29364   ----
 29330  29365   -30
 29331  29366   3
 29332  29367   
 29333  29368   onlyif mysql # aggregate syntax: 
................................................................................
 29807  29842   query I rowsort
 29808  29843   SELECT ALL col1 * 32 AS col0 FROM tab1 cor0
 29809  29844   ----
 29810  29845   1504
 29811  29846   160
 29812  29847   448
 29813  29848   
        29849  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29814  29850   query II rowsort
 29815  29851   SELECT DISTINCT ( 2 ) col1, + 76 AS col2 FROM tab0 AS cor0
 29816  29852   ----
 29817  29853   2
 29818  29854   76
 29819  29855   
 29820  29856   query I rowsort
................................................................................
 30630  30666   query I rowsort label-3328
 30631  30667   SELECT + col0 + + - col1 / + + col1 AS col1 FROM tab1 AS cor0
 30632  30668   ----
 30633  30669   50
 30634  30670   84
 30635  30671   90
 30636  30672   
        30673  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30637  30674   query II rowsort
 30638  30675   SELECT ALL + 32 col0, 65 + col0 FROM tab2
 30639  30676   ----
 30640  30677   32
 30641  30678   111
 30642  30679   32
 30643  30680   129
................................................................................
 31820  31857   NULL
 31821  31858   -295
 31822  31859   NULL
 31823  31860   -3196
 31824  31861   NULL
 31825  31862   
 31826  31863   skipif mysql # not compatible
        31864  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 31827  31865   query II rowsort label-3460
 31828  31866   SELECT ALL + ( + col2 ) * - col1 col1, + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
 31829  31867   ----
 31830  31868   -1344
 31831  31869   NULL
 31832  31870   -295
 31833  31871   NULL
................................................................................
 32030  32068   skipif mysql # not compatible
 32031  32069   skipif postgresql # PostgreSQL requires AS when renaming output columns
 32032  32070   query I rowsort label-3482
 32033  32071   SELECT - COUNT ( * ) col2 FROM tab0 WHERE NOT - + col1 IS NULL
 32034  32072   ----
 32035  32073   -3
 32036  32074   
        32075  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32037  32076   query II rowsort
 32038  32077   SELECT DISTINCT col1 col1, 54 FROM tab1
 32039  32078   ----
 32040  32079   14
 32041  32080   54
 32042  32081   47
 32043  32082   54
................................................................................
 32154  32193   
 32155  32194   onlyif mysql # CAST syntax: SIGNED type: 
 32156  32195   query II rowsort label-3497
 32157  32196   SELECT DISTINCT + col0 * - CAST( - col1 AS SIGNED ) + - 54 col2, + col0 - + col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * + 77 + - col0
 32158  32197   ----
 32159  32198   
 32160  32199   skipif mysql # not compatible
        32200  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32161  32201   query II rowsort label-3497
 32162  32202   SELECT DISTINCT + col0 * - CAST ( - col1 AS INTEGER ) + - 54 col2, + col0 - + col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * + 77 + - col0
 32163  32203   ----
 32164  32204   
 32165  32205   query III rowsort
 32166  32206   SELECT * FROM tab2 WHERE NULL <= - - col1 + - - col1 * + 14
 32167  32207   ----
................................................................................
 33254  33294   -182
 33255  33295   -192
 33256  33296   
 33257  33297   query I rowsort
 33258  33298   SELECT DISTINCT + 34 AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
 33259  33299   ----
 33260  33300   
        33301  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33261  33302   query II rowsort
 33262  33303   SELECT ALL - col2 col2, - 8 + col2 FROM tab0
 33263  33304   ----
 33264  33305   -10
 33265  33306   2
 33266  33307   -47
 33267  33308   39
................................................................................
 34247  34288   
 34248  34289   skipif mysql # not compatible
 34249  34290   query I rowsort label-3728
 34250  34291   SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * SUM ( - col1 ) - - 77 AS col1 FROM tab2 AS cor0
 34251  34292   ----
 34252  34293   NULL
 34253  34294   
        34295  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34254  34296   query II rowsort
 34255  34297   SELECT - col0 col0, + col2 AS col2 FROM tab2 AS cor0
 34256  34298   ----
 34257  34299   -46
 34258  34300   23
 34259  34301   -64
 34260  34302   40
................................................................................
 34681  34723   51
 34682  34724   51
 34683  34725   85
 34684  34726   85
 34685  34727   91
 34686  34728   91
 34687  34729   
        34730  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34688  34731   query II rowsort
 34689  34732   SELECT col1 col1, - col2 FROM tab2
 34690  34733   ----
 34691  34734   51
 34692  34735   -23
 34693  34736   67
 34694  34737   -58
................................................................................
 36068  36111   query I rowsort label-3919
 36069  36112   SELECT + CAST ( - - 45 AS INTEGER ) AS col1 FROM tab0
 36070  36113   ----
 36071  36114   45
 36072  36115   45
 36073  36116   45
 36074  36117   
        36118  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 36075  36119   query II rowsort
 36076  36120   SELECT - col1 col1, 27 + + 24 FROM tab2
 36077  36121   ----
 36078  36122   -51
 36079  36123   51
 36080  36124   -67
 36081  36125   51
................................................................................
 38776  38820   -1
 38777  38821   -47
 38778  38822   -1
 38779  38823   -99
 38780  38824   -1
 38781  38825   
 38782  38826   skipif mysql # not compatible
        38827  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38783  38828   query II rowsort label-4212
 38784  38829   SELECT DISTINCT - col2 col0, + col2 / - col2 FROM tab0 WHERE + col0 IS NOT NULL
 38785  38830   ----
 38786  38831   -10
 38787  38832   -1
 38788  38833   -47
 38789  38834   -1
................................................................................
 38983  39028   
 38984  39029   skipif mysql # not compatible
 38985  39030   query I rowsort label-4233
 38986  39031   SELECT - COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
 38987  39032   ----
 38988  39033   -1
 38989  39034   
        39035  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38990  39036   query II rowsort
 38991  39037   SELECT ALL + col0 col0, 86 * 92 * - + col2 FROM tab2 AS cor0
 38992  39038   ----
 38993  39039   46
 38994  39040   -181976
 38995  39041   64
 38996  39042   -316480
................................................................................
 39107  39153   51
 39108  39154   64
 39109  39155   77
 39110  39156   75
 39111  39157   67
 39112  39158   
 39113  39159   skipif mysql # not compatible
        39160  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39114  39161   query II rowsort label-4247
 39115  39162   SELECT col0 col1, CAST ( col1 AS INTEGER ) FROM tab2 cor0
 39116  39163   ----
 39117  39164   46
 39118  39165   51
 39119  39166   64
 39120  39167   77
................................................................................
 39298  39345   query II rowsort label-4270
 39299  39346   SELECT COUNT( * ) col2, COUNT( * ) AS col2 FROM tab0
 39300  39347   ----
 39301  39348   3
 39302  39349   3
 39303  39350   
 39304  39351   skipif mysql # not compatible
        39352  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39305  39353   query II rowsort label-4270
 39306  39354   SELECT COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0
 39307  39355   ----
 39308  39356   3
 39309  39357   3
 39310  39358   
 39311  39359   query I rowsort
................................................................................
 39352  39400   
 39353  39401   onlyif mysql # CAST syntax: SIGNED type: 
 39354  39402   query II rowsort label-4275
 39355  39403   SELECT col2 col1, col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
 39356  39404   ----
 39357  39405   
 39358  39406   skipif mysql # not compatible
        39407  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39359  39408   query II rowsort label-4275
 39360  39409   SELECT col2 col1, col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
 39361  39410   ----
 39362  39411   
 39363  39412   query I rowsort
 39364  39413   SELECT DISTINCT col0 * - 68 + + col1 + + + col0 + col1 * - - col0 + + col2 AS col0 FROM tab1 AS cor0
 39365  39414   ----
................................................................................
 39452  39501   query I rowsort
 39453  39502   SELECT ALL col2 * col1 + + col0 FROM tab0
 39454  39503   ----
 39455  39504   196
 39456  39505   297
 39457  39506   3822
 39458  39507   
        39508  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39459  39509   query II rowsort
 39460  39510   SELECT ALL - 78 + col2 col1, col0 AS col1 FROM tab2
 39461  39511   ----
 39462  39512   -20
 39463  39513   75
 39464  39514   -38
 39465  39515   64
................................................................................
 39638  39688   870
 39639  39689   -47
 39640  39690   705
 39641  39691   -99
 39642  39692   9603
 39643  39693   
 39644  39694   skipif mysql # not compatible
        39695  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39645  39696   query II rowsort label-4307
 39646  39697   SELECT - col2 col0, CAST ( - col2 AS INTEGER ) * ( - col0 ) AS col2 FROM tab0 AS cor0
 39647  39698   ----
 39648  39699   -10
 39649  39700   870
 39650  39701   -47
 39651  39702   705
................................................................................
 41776  41827   
 41777  41828   skipif mysql # not compatible
 41778  41829   query I rowsort label-4540
 41779  41830   SELECT DISTINCT - 30 + + COUNT ( * ) AS col0 FROM tab0
 41780  41831   ----
 41781  41832   -27
 41782  41833   
        41834  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41783  41835   query II rowsort
 41784  41836   SELECT ALL col0 col2, + 77 FROM tab2
 41785  41837   ----
 41786  41838   46
 41787  41839   77
 41788  41840   64
 41789  41841   77
................................................................................
 42130  42182   -2944
 42131  42183   -64
 42132  42184   -4096
 42133  42185   -75
 42134  42186   -4800
 42135  42187   
 42136  42188   skipif mysql # not compatible
        42189  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42137  42190   query II rowsort label-4578
 42138  42191   SELECT DISTINCT + col2 / - - col1 + - col0 col0, 64 * - col0 AS col0 FROM tab2
 42139  42192   ----
 42140  42193   -46
 42141  42194   -2944
 42142  42195   -64
 42143  42196   -4096
................................................................................
 42240  42293   query I rowsort
 42241  42294   SELECT - col2 * - col0 - + ( + col2 ) AS col2 FROM tab1 cor0
 42242  42295   ----
 42243  42296   4800
 42244  42297   4956
 42245  42298   6120
 42246  42299   
        42300  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42247  42301   query II rowsort
 42248  42302   SELECT DISTINCT + 43 col0, + col2 FROM tab1 cor0
 42249  42303   ----
 42250  42304   43
 42251  42305   59
 42252  42306   43
 42253  42307   68
................................................................................
 43287  43341   query I rowsort
 43288  43342   SELECT ALL - 91 * - ( - col2 ) FROM tab0 AS cor0
 43289  43343   ----
 43290  43344   -4277
 43291  43345   -9009
 43292  43346   -910
 43293  43347   
        43348  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43294  43349   query II rowsort
 43295  43350   SELECT ALL - - col0 + + col0 col1, col2 AS col2 FROM tab0 AS cor0
 43296  43351   ----
 43297  43352   174
 43298  43353   10
 43299  43354   194
 43300  43355   99
................................................................................
 43341  43396   query I rowsort
 43342  43397   SELECT DISTINCT - ( - + col2 ) - - 87 * + + 69 - col2 + + col0 + + 95 FROM tab0 AS cor0
 43343  43398   ----
 43344  43399   6113
 43345  43400   6185
 43346  43401   6195
 43347  43402   
        43403  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43348  43404   query II rowsort
 43349  43405   SELECT ALL col0 col2, - col2 AS col0 FROM tab2 AS cor0
 43350  43406   ----
 43351  43407   46
 43352  43408   -23
 43353  43409   64
 43354  43410   -40
................................................................................
 45031  45087   query I rowsort label-4890
 45032  45088   SELECT ALL - col0 / + - col1 FROM tab2 AS cor0
 45033  45089   ----
 45034  45090   0
 45035  45091   0
 45036  45092   1
 45037  45093   
        45094  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45038  45095   query II rowsort
 45039  45096   SELECT ( - ( + 97 ) ) col1, col0 * + col0 AS col1 FROM tab1
 45040  45097   ----
 45041  45098   -97
 45042  45099   2601
 45043  45100   -97
 45044  45101   7225
................................................................................
 47193  47250   query I rowsort label-5144
 47194  47251   SELECT 94 / - - 6 + + col2 * - col2 FROM tab1 AS cor0
 47195  47252   ----
 47196  47253   -3466
 47197  47254   -4609
 47198  47255   -9201
 47199  47256   
        47257  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47200  47258   query II rowsort
 47201  47259   SELECT - 81 col1, col0 * - 27 + - ( - 73 ) AS col2 FROM tab2 AS cor0
 47202  47260   ----
 47203  47261   -81
 47204  47262   -1169
 47205  47263   -81
 47206  47264   -1655
................................................................................
 47862  47920   
 47863  47921   onlyif mysql # CAST syntax: DECIMAL type: 
 47864  47922   query II rowsort label-5221
 47865  47923   SELECT ALL col0 + - ( CAST( + 55 AS DECIMAL ) ) * + - ( - ( + col0 ) ) col1, 72 FROM tab1 WHERE NOT + col1 = NULL
 47866  47924   ----
 47867  47925   
 47868  47926   skipif mysql # not compatible
        47927  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47869  47928   query II rowsort label-5221
 47870  47929   SELECT ALL col0 + - ( CAST ( + 55 AS REAL ) ) * + - ( - ( + col0 ) ) col1, 72 FROM tab1 WHERE NOT + col1 = NULL
 47871  47930   ----
 47872  47931   
 47873  47932   onlyif mysql # CAST syntax: SIGNED type: 
 47874  47933   query I rowsort label-5222
 47875  47934   SELECT ALL - CAST( NULL AS SIGNED ) * col0 + - 72 + col2 FROM tab0
................................................................................
 49358  49417   query I rowsort
 49359  49418   SELECT ALL + col2 + col2 + + + col0 * col2 FROM tab1
 49360  49419   ----
 49361  49420   5088
 49362  49421   5133
 49363  49422   6324
 49364  49423   
        49424  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49365  49425   query II rowsort
 49366  49426   SELECT col0 col0, + ( + + col1 ) FROM tab2
 49367  49427   ----
 49368  49428   46
 49369  49429   51
 49370  49430   64
 49371  49431   77
................................................................................
 50345  50405   ----
 50346  50406   -9250
 50347  50407   
 50348  50408   query III rowsort
 50349  50409   SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( + - col2 - - col1 )
 50350  50410   ----
 50351  50411   
        50412  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50352  50413   query II rowsort
 50353  50414   SELECT ALL - 22 col1, col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
 50354  50415   ----
 50355  50416   -22
 50356  50417   59
 50357  50418   -22
 50358  50419   68
................................................................................
 50941  51002   
 50942  51003   onlyif mysql # CAST syntax: DECIMAL type: 
 50943  51004   query II rowsort label-5570
 50944  51005   SELECT ALL - CAST( NULL AS DECIMAL ) * col2 / - col2 col2, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
 50945  51006   ----
 50946  51007   
 50947  51008   skipif mysql # not compatible
        51009  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50948  51010   query II rowsort label-5570
 50949  51011   SELECT ALL - CAST ( NULL AS REAL ) * col2 / - col2 col2, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
 50950  51012   ----
 50951  51013   
 50952  51014   query III rowsort
 50953  51015   SELECT * FROM tab1 WHERE NOT ( NOT + 18 IS NOT NULL )
 50954  51016   ----
................................................................................
 51534  51596   
 51535  51597   skipif mysql # not compatible
 51536  51598   query I rowsort label-5634
 51537  51599   SELECT + 8 + + SUM ( ALL + col2 ) AS col1 FROM tab2
 51538  51600   ----
 51539  51601   129
 51540  51602   
        51603  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 51541  51604   query II rowsort
 51542  51605   SELECT col2 + - - 79 col0, 76 * + 12 AS col0 FROM tab1
 51543  51606   ----
 51544  51607   138
 51545  51608   912
 51546  51609   147
 51547  51610   912
................................................................................
 52710  52773   query II rowsort label-5758
 52711  52774   SELECT - COUNT( * ) col1, COUNT( * ) AS col1 FROM tab1
 52712  52775   ----
 52713  52776   -3
 52714  52777   3
 52715  52778   
 52716  52779   skipif mysql # not compatible
        52780  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52717  52781   query II rowsort label-5758
 52718  52782   SELECT - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1
 52719  52783   ----
 52720  52784   -3
 52721  52785   3
 52722  52786   
 52723  52787   query I rowsort
................................................................................
 52788  52852   
 52789  52853   skipif mysql # not compatible
 52790  52854   query I rowsort label-5765
 52791  52855   SELECT + + CAST ( 67 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
 52792  52856   ----
 52793  52857   9 values hashing to b56f8a4f1fcebc9802481256df61e97c
 52794  52858   
        52859  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52795  52860   query II rowsort
 52796  52861   SELECT DISTINCT + col0 col2, 21 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
 52797  52862   ----
 52798  52863   
 52799  52864   onlyif mysql # aggregate syntax: 
 52800  52865   query I rowsort label-5767
 52801  52866   SELECT MIN( col2 ) * COUNT( * ) FROM tab1
................................................................................
 54936  55001   97
 54937  55002   
 54938  55003   query III rowsort
 54939  55004   SELECT * FROM tab2 WHERE NOT + col2 * col2 + + + col0 + + + col2 IS NULL
 54940  55005   ----
 54941  55006   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
 54942  55007   
        55008  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54943  55009   query II rowsort
 54944  55010   SELECT ALL 3 col0, 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
 54945  55011   ----
 54946  55012   18 values hashing to f829e9eb95fb45ccaa031943e7fbdae9
 54947  55013   
 54948  55014   query I rowsort
 54949  55015   SELECT 44 * - 11 FROM tab0
................................................................................
 55852  55918   46
 55853  55919   NULL
 55854  55920   64
 55855  55921   NULL
 55856  55922   75
 55857  55923   NULL
 55858  55924   
        55925  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 55859  55926   query II rowsort
 55860  55927   SELECT ALL 54 col2, + col1 AS col0 FROM tab0 AS cor0
 55861  55928   ----
 55862  55929   54
 55863  55930   1
 55864  55931   54
 55865  55932   21
................................................................................
 59266  59333   10
 59267  59334   630
 59268  59335   47
 59269  59336   2961
 59270  59337   99
 59271  59338   6237
 59272  59339   
        59340  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59273  59341   query II rowsort
 59274  59342   SELECT DISTINCT col1 col1, - 24 * + - col0 FROM tab1
 59275  59343   ----
 59276  59344   14
 59277  59345   1224
 59278  59346   47
 59279  59347   2184
................................................................................
 59387  59455   query I rowsort
 59388  59456   SELECT - 72 * - 36 * + 40 + col2 FROM tab2 AS cor0
 59389  59457   ----
 59390  59458   103703
 59391  59459   103720
 59392  59460   103738
 59393  59461   
        59462  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59394  59463   query II rowsort
 59395  59464   SELECT 65 * - + 50 col2, + 60 FROM tab1 AS cor0
 59396  59465   ----
 59397  59466   -3250
 59398  59467   60
 59399  59468   -3250
 59400  59469   60
................................................................................
 60780  60849   -47
 60781  60850   -5
 60782  60851   
 60783  60852   query III rowsort
 60784  60853   SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
 60785  60854   ----
 60786  60855   
        60856  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60787  60857   query II rowsort
 60788  60858   SELECT ALL - - col0 col0, + 6 * col1 FROM tab1 AS cor0
 60789  60859   ----
 60790  60860   51
 60791  60861   84
 60792  60862   85
 60793  60863   30
................................................................................
 63377  63447   1
 63378  63448   96
 63379  63449   21
 63380  63450   96
 63381  63451   81
 63382  63452   96
 63383  63453   
        63454  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63384  63455   query II rowsort
 63385  63456   SELECT DISTINCT + col0 col0, col1 AS col2 FROM tab0 AS cor0
 63386  63457   ----
 63387  63458   15
 63388  63459   81
 63389  63460   87
 63390  63461   21
................................................................................
 63596  63667   47
 63597  63668   -87
 63598  63669   10
 63599  63670   -97
 63600  63671   99
 63601  63672   
 63602  63673   skipif mysql # not compatible
        63674  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63603  63675   query II rowsort label-6967
 63604  63676   SELECT ALL - col0 col1, + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
 63605  63677   ----
 63606  63678   -15
 63607  63679   47
 63608  63680   -87
 63609  63681   10
................................................................................
 63766  63838   
 63767  63839   skipif mysql # not compatible
 63768  63840   query I rowsort label-6985
 63769  63841   SELECT ALL 10 + - - 70 + + - COUNT ( * ) FROM tab2
 63770  63842   ----
 63771  63843   77
 63772  63844   
        63845  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63773  63846   query II rowsort
 63774  63847   SELECT - col0 col0, col0 FROM tab1
 63775  63848   ----
 63776  63849   -51
 63777  63850   51
 63778  63851   -85
 63779  63852   85
................................................................................
 65305  65378   14
 65306  65379   89
 65307  65380   47
 65308  65381   61
 65309  65382   5
 65310  65383   52
 65311  65384   
        65385  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 65312  65386   query II rowsort
 65313  65387   SELECT ALL + col2 col1, - 48 * + col1 FROM tab0 WHERE - + col0 * + + col1 - + col0 IS NOT NULL
 65314  65388   ----
 65315  65389   10
 65316  65390   -1008
 65317  65391   47
 65318  65392   -3888
................................................................................
 65370  65444   ----
 65371  65445   
 65372  65446   query III rowsort
 65373  65447   SELECT * FROM tab2 WHERE NOT ( NOT - col0 NOT BETWEEN - ( col2 ) AND - 4 )
 65374  65448   ----
 65375  65449   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
 65376  65450   
        65451  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 65377  65452   query II rowsort
 65378  65453   SELECT - 8 * col0 col0, col0 FROM tab0
 65379  65454   ----
 65380  65455   -120
 65381  65456   15
 65382  65457   -696
 65383  65458   87
................................................................................
 65815  65890   -3
 65816  65891   
 65817  65892   query III rowsort
 65818  65893   SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > col0 * + + 21 ) OR NOT col1 * + 64 * - col0 IS NULL
 65819  65894   ----
 65820  65895   9 values hashing to c4b42765dff94eaaa46040e537fb43b7
 65821  65896   
        65897  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 65822  65898   query II rowsort
 65823  65899   SELECT ALL 60 col1, col2 FROM tab1
 65824  65900   ----
 65825  65901   60
 65826  65902   59
 65827  65903   60
 65828  65904   68
................................................................................
 66983  67059   query I rowsort label-7344
 66984  67060   SELECT col2 * 6 / - + 22 AS col1 FROM tab2
 66985  67061   ----
 66986  67062   -10
 66987  67063   -15
 66988  67064   -6
 66989  67065   
        67066  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 66990  67067   query II rowsort
 66991  67068   SELECT ALL - col0 col0, col0 FROM tab0
 66992  67069   ----
 66993  67070   -15
 66994  67071   15
 66995  67072   -87
 66996  67073   87
................................................................................
 67297  67374   47
 67298  67375   0
 67299  67376   10
 67300  67377   0
 67301  67378   99
 67302  67379   
 67303  67380   skipif mysql # not compatible
        67381  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67304  67382   query II rowsort label-7380
 67305  67383   SELECT - col1 / + col0 col1, + col2 FROM tab0 AS cor0
 67306  67384   ----
 67307  67385   -5
 67308  67386   47
 67309  67387   0
 67310  67388   10
 67311  67389   0
 67312  67390   99
 67313  67391   
        67392  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67314  67393   query II rowsort
 67315  67394   SELECT ALL + - col1 * + + 89 + + col0 * + - col0 col2, + col2 AS col0 FROM tab2 AS cor0
 67316  67395   ----
 67317  67396   -10949
 67318  67397   40
 67319  67398   -11588
 67320  67399   58
................................................................................
 67797  67876   query I rowsort
 67798  67877   SELECT - col2 + + 13 AS col0 FROM tab1 AS cor0
 67799  67878   ----
 67800  67879   -46
 67801  67880   -55
 67802  67881   -83
 67803  67882   
        67883  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 67804  67884   query II rowsort
 67805  67885   SELECT 1 + + col2 col2, + ( - - col0 ) FROM tab0 AS cor0
 67806  67886   ----
 67807  67887   100
 67808  67888   97
 67809  67889   11
 67810  67890   87
................................................................................
 68507  68587   
 68508  68588   skipif mysql # not compatible
 68509  68589   query I rowsort label-7521
 68510  68590   SELECT ALL - 48 + - COUNT ( * ) AS col0 FROM tab2
 68511  68591   ----
 68512  68592   -51
 68513  68593   
        68594  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68514  68595   query II rowsort
 68515  68596   SELECT ALL col1 col0, + 42 * 83 FROM tab2
 68516  68597   ----
 68517  68598   51
 68518  68599   3486
 68519  68600   67
 68520  68601   3486
................................................................................
 68683  68764   96
 68684  68765   85
 68685  68766   59
 68686  68767   91
 68687  68768   68
 68688  68769   
 68689  68770   skipif mysql # not compatible
        68771  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68690  68772   query II rowsort label-7538
 68691  68773   SELECT + + CAST ( col0 AS INTEGER ) col0, col2 AS col2 FROM tab1 AS cor0
 68692  68774   ----
 68693  68775   51
 68694  68776   96
 68695  68777   85
 68696  68778   59
................................................................................
 68791  68873   
 68792  68874   skipif mysql # not compatible
 68793  68875   query I rowsort label-7553
 68794  68876   SELECT - COUNT ( * ) + MIN ( DISTINCT - ( 66 ) ) + - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
 68795  68877   ----
 68796  68878   -254
 68797  68879   
        68880  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68798  68881   query II rowsort
 68799  68882   SELECT DISTINCT ( - + col1 ) col2, col2 FROM tab0 AS cor0
 68800  68883   ----
 68801  68884   -1
 68802  68885   99
 68803  68886   -21
 68804  68887   10
................................................................................
 69378  69461   
 69379  69462   skipif mysql # not compatible
 69380  69463   query I rowsort label-7615
 69381  69464   SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
 69382  69465   ----
 69383  69466   NULL
 69384  69467   
        69468  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69385  69469   query II rowsort
 69386  69470   SELECT DISTINCT - col2 + + 6 * col2 col1, - 62 AS col0 FROM tab0
 69387  69471   ----
 69388  69472   235
 69389  69473   -62
 69390  69474   495
 69391  69475   -62
................................................................................
 70908  70992   ----
 70909  70993   -156
 70910  70994   
 70911  70995   query III rowsort
 70912  70996   SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + - 41 IS NULL
 70913  70997   ----
 70914  70998   
        70999  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 70915  71000   query II rowsort
 70916  71001   SELECT DISTINCT + + col0 col2, - 42 AS col0 FROM tab2 AS cor0
 70917  71002   ----
 70918  71003   46
 70919  71004   -42
 70920  71005   64
 70921  71006   -42
................................................................................
 71446  71531   
 71447  71532   skipif mysql # not compatible
 71448  71533   query I rowsort label-7853
 71449  71534   SELECT ( - + MIN ( - col1 ) ) AS col2 FROM tab2 AS cor0
 71450  71535   ----
 71451  71536   77
 71452  71537   
        71538  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71453  71539   query II rowsort
 71454  71540   SELECT DISTINCT - col1 col1, 20 FROM tab1 AS cor0
 71455  71541   ----
 71456  71542   -14
 71457  71543   20
 71458  71544   -47
 71459  71545   20
................................................................................
 71464  71550   query II rowsort label-7855
 71465  71551   SELECT ALL + 75 col2, - COUNT( * ) FROM tab0
 71466  71552   ----
 71467  71553   75
 71468  71554   -3
 71469  71555   
 71470  71556   skipif mysql # not compatible
        71557  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71471  71558   query II rowsort label-7855
 71472  71559   SELECT ALL + 75 col2, - COUNT ( * ) FROM tab0
 71473  71560   ----
 71474  71561   75
 71475  71562   -3
 71476  71563   
 71477  71564   query I rowsort
................................................................................
 72043  72130   query I rowsort
 72044  72131   SELECT + col2 FROM tab0 WHERE NOT - col1 IN ( - col0 / - - col2, - 9 )
 72045  72132   ----
 72046  72133   10
 72047  72134   47
 72048  72135   99
 72049  72136   
        72137  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72050  72138   query II rowsort
 72051  72139   SELECT DISTINCT - col0 col2, - col0 * + + 15 FROM tab0 WHERE NOT NULL IS NULL
 72052  72140   ----
 72053  72141   
 72054  72142   query I rowsort
 72055  72143   SELECT DISTINCT + col1 * + - col1 FROM tab0
 72056  72144   ----
................................................................................
 72149  72237   1215
 72150  72238   0
 72151  72239   1827
 72152  72240   0
 72153  72241   97
 72154  72242   
 72155  72243   skipif mysql # not compatible
        72244  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72156  72245   query II rowsort label-7932
 72157  72246   SELECT - - 6 / - + col2 col0, + col1 * col0 FROM tab0 AS cor0
 72158  72247   ----
 72159  72248   0
 72160  72249   1215
 72161  72250   0
 72162  72251   1827
................................................................................
 72391  72480   46
 72392  72481   -40
 72393  72482   64
 72394  72483   -58
 72395  72484   75
 72396  72485   
 72397  72486   skipif mysql # not compatible
        72487  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72398  72488   query II rowsort label-7958
 72399  72489   SELECT DISTINCT + ( + CAST ( - col2 AS INTEGER ) ) col2, + col0 AS col2 FROM tab2 AS cor0
 72400  72490   ----
 72401  72491   -23
 72402  72492   46
 72403  72493   -40
 72404  72494   64
................................................................................
 73013  73103   query I rowsort
 73014  73104   SELECT 90 * - col2 FROM tab0 AS cor0
 73015  73105   ----
 73016  73106   -4230
 73017  73107   -8910
 73018  73108   -900
 73019  73109   
        73110  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 73020  73111   query II rowsort
 73021  73112   SELECT DISTINCT - 26 col2, - ( + col2 ) * - + 42 + + col0 AS col1 FROM tab0 AS cor0
 73022  73113   ----
 73023  73114   -26
 73024  73115   1989
 73025  73116   -26
 73026  73117   4255
................................................................................
 76691  76782   
 76692  76783   skipif mysql # not compatible
 76693  76784   query I rowsort label-8421
 76694  76785   SELECT DISTINCT - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
 76695  76786   ----
 76696  76787   -9
 76697  76788   
        76789  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76698  76790   query II rowsort
 76699  76791   SELECT DISTINCT - - col2 col1, col2 AS col2 FROM tab2 AS cor0
 76700  76792   ----
 76701  76793   23
 76702  76794   23
 76703  76795   40
 76704  76796   40
................................................................................
 76783  76875   51
 76784  76876   7
 76785  76877   67
 76786  76878   7
 76787  76879   77
 76788  76880   7
 76789  76881   
        76882  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76790  76883   query III rowsort
 76791  76884   SELECT ALL - col0 col2, + col2 AS col1, + 17 FROM tab2
 76792  76885   ----
 76793  76886   9 values hashing to 091a6fc4172f1ae94e0046f807f829a3
 76794  76887   
 76795  76888   onlyif mysql # CAST syntax: SIGNED type: 
 76796  76889   query II rowsort label-8432
................................................................................
 77781  77874   3589
 77782  77875   
 77783  77876   query I rowsort
 77784  77877   SELECT DISTINCT + ( + + 23 ) AS col2 FROM tab0
 77785  77878   ----
 77786  77879   23
 77787  77880   
        77881  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 77788  77882   query III rowsort
 77789  77883   SELECT DISTINCT 26 col0, - col0 * + 84, + 70 AS col1 FROM tab1 AS cor0
 77790  77884   ----
 77791  77885   9 values hashing to 4094978db01d4c322bb0afa0b1ddb963
 77792  77886   
 77793  77887   onlyif mysql # aggregate syntax: 
 77794  77888   query I rowsort label-8539
................................................................................
 78249  78343   
 78250  78344   skipif mysql # not compatible
 78251  78345   query III rowsort label-8584
 78252  78346   SELECT * FROM tab0 WHERE ( - + 60 * - col0 + + 6 * + + CAST ( NULL AS INTEGER ) ) IS NULL
 78253  78347   ----
 78254  78348   9 values hashing to c4b42765dff94eaaa46040e537fb43b7
 78255  78349   
        78350  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78256  78351   query II rowsort
 78257  78352   SELECT - 49 col2, col0 AS col1 FROM tab2
 78258  78353   ----
 78259  78354   -49
 78260  78355   46
 78261  78356   -49
 78262  78357   64
................................................................................
 79338  79433   
 79339  79434   skipif mysql # not compatible
 79340  79435   query I rowsort label-8713
 79341  79436   SELECT ALL + SUM ( ALL - 13 ) + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
 79342  79437   ----
 79343  79438   -38
 79344  79439   
        79440  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79345  79441   query II rowsort
 79346  79442   SELECT + col0 col1, 15 * + 60 * col0 * col1 AS col2 FROM tab0 AS cor0
 79347  79443   ----
 79348  79444   15
 79349  79445   1093500
 79350  79446   87
 79351  79447   1644300
................................................................................
 80394  80490   query II rowsort label-8832
 80395  80491   SELECT DISTINCT + COUNT( * ) col2, 78 + 40 FROM tab2
 80396  80492   ----
 80397  80493   3
 80398  80494   118
 80399  80495   
 80400  80496   skipif mysql # not compatible
        80497  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80401  80498   query II rowsort label-8832
 80402  80499   SELECT DISTINCT + COUNT ( * ) col2, 78 + 40 FROM tab2
 80403  80500   ----
 80404  80501   3
 80405  80502   118
 80406  80503   
 80407  80504   onlyif mysql # CAST syntax: DECIMAL type: 
................................................................................
 82131  82228   query I rowsort
 82132  82229   SELECT 90 * + ( + 91 ) FROM tab1
 82133  82230   ----
 82134  82231   8190
 82135  82232   8190
 82136  82233   8190
 82137  82234   
        82235  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82138  82236   query II rowsort
 82139  82237   SELECT 23 + - 68 * - 84 col1, col2 FROM tab0
 82140  82238   ----
 82141  82239   5735
 82142  82240   10
 82143  82241   5735
 82144  82242   47
................................................................................
 89050  89148   35
 89051  89149   139
 89052  89150   329
 89053  89151   71
 89054  89152   98
 89055  89153   
 89056  89154   skipif mysql # not compatible
        89155  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89057  89156   query II rowsort label-9791
 89058  89157   SELECT DISTINCT + col0 + - col2 / - col1 + + + col1 col1, ( + col1 ) * CAST ( + 7 AS INTEGER ) AS col0 FROM tab1 AS cor0
 89059  89158   ----
 89060  89159   101
 89061  89160   35
 89062  89161   139
 89063  89162   329
................................................................................
 89624  89723   -46
 89625  89724   61640
 89626  89725   -64
 89627  89726   77778
 89628  89727   -75
 89629  89728   
 89630  89729   skipif mysql # not compatible
        89730  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89631  89731   query II rowsort label-9856
 89632  89732   SELECT DISTINCT - 20 * + - col1 * col2 + col2 col2, - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
 89633  89733   ----
 89634  89734   23483
 89635  89735   -46
 89636  89736   61640
 89637  89737   -64
................................................................................
 90271  90371   skipif mysql # not compatible
 90272  90372   skipif postgresql # PostgreSQL requires AS when renaming output columns
 90273  90373   query I rowsort label-9926
 90274  90374   SELECT - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
 90275  90375   ----
 90276  90376   3
 90277  90377   
        90378  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 90278  90379   query II rowsort
 90279  90380   SELECT + 24 col1, 28 AS col0 FROM tab1 AS cor0
 90280  90381   ----
 90281  90382   24
 90282  90383   28
 90283  90384   24
 90284  90385   28
................................................................................
 90701  90802   query II rowsort label-9972
 90702  90803   SELECT 58 col1, SUM( DISTINCT - ( + + 19 ) ) FROM tab0
 90703  90804   ----
 90704  90805   58
 90705  90806   -19
 90706  90807   
 90707  90808   skipif mysql # not compatible
        90809  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 90708  90810   query II rowsort label-9972
 90709  90811   SELECT 58 col1, SUM ( DISTINCT - ( + + 19 ) ) FROM tab0
 90710  90812   ----
 90711  90813   58
 90712  90814   -19
 90713  90815   
 90714  90816   query I rowsort

Changes to test/random/aggregates/slt_good_103.test.

   741    741   query I rowsort
   742    742   SELECT + 77 * - - 47 AS col1 FROM tab0 AS cor0
   743    743   ----
   744    744   3619
   745    745   3619
   746    746   3619
   747    747   
          748  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   748    749   query II rowsort
   749    750   SELECT DISTINCT - col1 * + 72 col0, col2 * - 16 + - + 46 + ( + 10 ) * + 67 FROM tab2 AS cor0
   750    751   ----
   751    752   -3672
   752    753   256
   753    754   -4824
   754    755   -304
................................................................................
  1148   1149   query I rowsort
  1149   1150   SELECT ALL 90 + - 58 FROM tab2
  1150   1151   ----
  1151   1152   32
  1152   1153   32
  1153   1154   32
  1154   1155   
         1156  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  1155   1157   query II rowsort
  1156   1158   SELECT col2 col0, col2 AS col2 FROM tab0 WHERE NOT ( ( NOT - 19 IS NULL ) )
  1157   1159   ----
  1158   1160   
  1159   1161   query III rowsort
  1160   1162   SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 1 * col0
  1161   1163   ----
................................................................................
  2933   2935   4019
  2934   2936   5558
  2935   2937   
  2936   2938   query III rowsort
  2937   2939   SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
  2938   2940   ----
  2939   2941   
         2942  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  2940   2943   query II rowsort
  2941   2944   SELECT ALL + - col1 * - + col2 col0, col0 + col0 AS col0 FROM tab2 AS cor0
  2942   2945   ----
  2943   2946   1173
  2944   2947   92
  2945   2948   3080
  2946   2949   128
................................................................................
  5733   5736   NULL
  5734   5737   -64
  5735   5738   NULL
  5736   5739   -75
  5737   5740   NULL
  5738   5741   
  5739   5742   skipif mysql # not compatible
         5743  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5740   5744   query II rowsort label-624
  5741   5745   SELECT DISTINCT - col0 col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
  5742   5746   ----
  5743   5747   -46
  5744   5748   NULL
  5745   5749   -64
  5746   5750   NULL
................................................................................
  7548   7552   query I rowsort label-814
  7549   7553   SELECT ALL + + 41 / - + col0 AS col1 FROM tab2 AS cor0
  7550   7554   ----
  7551   7555   0
  7552   7556   0
  7553   7557   0
  7554   7558   
         7559  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  7555   7560   query II rowsort
  7556   7561   SELECT col1 col0, 30 + ( + ( + 14 ) ) FROM tab0 cor0
  7557   7562   ----
  7558   7563   1
  7559   7564   44
  7560   7565   21
  7561   7566   44
................................................................................
  8187   8192   
  8188   8193   skipif mysql # not compatible
  8189   8194   query I rowsort label-882
  8190   8195   SELECT DISTINCT + - MAX ( + + ( CAST ( - ( + 7 ) AS INTEGER ) ) ) / + MIN ( - 70 ) / + COUNT ( * ) FROM tab0 AS cor0
  8191   8196   ----
  8192   8197   0
  8193   8198   
         8199  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  8194   8200   query II rowsort
  8195   8201   SELECT ALL - 78 col2, - col2 AS col0 FROM tab2 AS cor0
  8196   8202   ----
  8197   8203   -78
  8198   8204   -23
  8199   8205   -78
  8200   8206   -40
................................................................................
  8818   8824   64
  8819   8825   -10575
  8820   8826   64
  8821   8827   -75690
  8822   8828   64
  8823   8829   -931491
  8824   8830   
         8831  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  8825   8832   query II rowsort
  8826   8833   SELECT + + col2 col2, col0 + 92 AS col0 FROM tab0 AS cor0
  8827   8834   ----
  8828   8835   10
  8829   8836   179
  8830   8837   47
  8831   8838   107
................................................................................
  9734   9741   skipif mysql # not compatible
  9735   9742   query II rowsort label-1056
  9736   9743   SELECT - + ( COUNT ( * ) ) AS col0, - COUNT ( ALL + 93 ) AS col0 FROM tab1 AS cor0
  9737   9744   ----
  9738   9745   -3
  9739   9746   -3
  9740   9747   
         9748  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9741   9749   query II rowsort
  9742   9750   SELECT ALL 94 col2, 56 + + ( - col2 ) + - - col0 * ( 1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
  9743   9751   ----
  9744   9752   
  9745   9753   onlyif mysql # aggregate syntax: 
  9746   9754   query I rowsort label-1058
  9747   9755   SELECT ALL - 10 * + MAX( DISTINCT - ( + 22 ) ) FROM tab2
................................................................................
 10826  10834   
 10827  10835   skipif mysql # not compatible
 10828  10836   query I rowsort label-1169
 10829  10837   SELECT + 26 / MAX ( + 33 ) FROM tab2 AS cor0
 10830  10838   ----
 10831  10839   0
 10832  10840   
        10841  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 10833  10842   query II rowsort
 10834  10843   SELECT DISTINCT - 71 col1, col0 FROM tab2 AS cor0
 10835  10844   ----
 10836  10845   -71
 10837  10846   46
 10838  10847   -71
 10839  10848   64
................................................................................
 11311  11320   47
 11312  11321   
 11313  11322   query III rowsort
 11314  11323   SELECT ALL * FROM tab1 WHERE + 1 NOT BETWEEN NULL AND + - 34
 11315  11324   ----
 11316  11325   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 11317  11326   
        11327  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11318  11328   query II rowsort
 11319  11329   SELECT col0 col1, + col0 - col0 AS col0 FROM tab1 AS cor0
 11320  11330   ----
 11321  11331   51
 11322  11332   0
 11323  11333   85
 11324  11334   0
................................................................................
 11678  11688   query I rowsort
 11679  11689   SELECT - col0 * - + col2 col1 FROM tab2
 11680  11690   ----
 11681  11691   1058
 11682  11692   2560
 11683  11693   4350
 11684  11694   
        11695  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11685  11696   query II rowsort
 11686  11697   SELECT ALL col1 col0, 86 AS col0 FROM tab2
 11687  11698   ----
 11688  11699   51
 11689  11700   86
 11690  11701   67
 11691  11702   86
................................................................................
 14412  14423   9 values hashing to cd7a7901e47c15155404aff0d216fe0b
 14413  14424   
 14414  14425   query III rowsort
 14415  14426   SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - 58 ) + col2 ) IS NULL
 14416  14427   ----
 14417  14428   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
 14418  14429   
        14430  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14419  14431   query II rowsort
 14420  14432   SELECT 37 col2, - col2 AS col2 FROM tab0 AS cor0
 14421  14433   ----
 14422  14434   37
 14423  14435   -10
 14424  14436   37
 14425  14437   -47
................................................................................
 15100  15112   query I rowsort label-1653
 15101  15113   SELECT 6 / - 83 FROM tab2
 15102  15114   ----
 15103  15115   0
 15104  15116   0
 15105  15117   0
 15106  15118   
        15119  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15107  15120   query II rowsort
 15108  15121   SELECT DISTINCT col2 * + col2 col2, col0 FROM tab0
 15109  15122   ----
 15110  15123   100
 15111  15124   87
 15112  15125   2209
 15113  15126   15
................................................................................
 15122  15135   2
 15123  15136   40
 15124  15137   1
 15125  15138   58
 15126  15139   1
 15127  15140   
 15128  15141   skipif mysql # not compatible
        15142  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15129  15143   query II rowsort label-1655
 15130  15144   SELECT + col2 col1, + col0 / + col2 FROM tab2 AS cor0
 15131  15145   ----
 15132  15146   23
 15133  15147   2
 15134  15148   40
 15135  15149   1
................................................................................
 15250  15264   query I rowsort
 15251  15265   SELECT DISTINCT col2 * + 5 AS col0 FROM tab1
 15252  15266   ----
 15253  15267   295
 15254  15268   340
 15255  15269   480
 15256  15270   
        15271  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15257  15272   query II rowsort
 15258  15273   SELECT 96 col1, col1 FROM tab0 AS cor0 WHERE NOT col0 >= NULL
 15259  15274   ----
 15260  15275   
 15261  15276   query III rowsort
 15262  15277   SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 93 * 2 AND col2
 15263  15278   ----
................................................................................
 15612  15627   ----
 15613  15628   
 15614  15629   skipif mysql # not compatible
 15615  15630   query III rowsort label-1705
 15616  15631   SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) IS NOT NULL
 15617  15632   ----
 15618  15633   
        15634  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15619  15635   query II rowsort
 15620  15636   SELECT - col2 col1, - col1 * + - col0 FROM tab1 AS cor0
 15621  15637   ----
 15622  15638   -59
 15623  15639   425
 15624  15640   -68
 15625  15641   4277
................................................................................
 15871  15887   ----
 15872  15888   92
 15873  15889   -1
 15874  15890   92
 15875  15891   0
 15876  15892   
 15877  15893   skipif mysql # not compatible
        15894  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15878  15895   query II rowsort label-1736
 15879  15896   SELECT DISTINCT 92 col0, 68 / + - col2 FROM tab1
 15880  15897   ----
 15881  15898   92
 15882  15899   -1
 15883  15900   92
 15884  15901   0
................................................................................
 16152  16169   51
 16153  16170   -196
 16154  16171   85
 16155  16172   -25
 16156  16173   91
 16157  16174   -2209
 16158  16175   
        16176  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16159  16177   query II rowsort
 16160  16178   SELECT + 80 col2, col1 FROM tab2 AS cor0
 16161  16179   ----
 16162  16180   80
 16163  16181   51
 16164  16182   80
 16165  16183   67
................................................................................
 21825  21843   0
 21826  21844   
 21827  21845   query III rowsort
 21828  21846   SELECT ALL * FROM tab2 AS cor0 WHERE 22 NOT IN ( - col0 )
 21829  21847   ----
 21830  21848   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
 21831  21849   
        21850  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21832  21851   query II rowsort
 21833  21852   SELECT + + col0 col0, + col1 FROM tab2 AS cor0
 21834  21853   ----
 21835  21854   46
 21836  21855   51
 21837  21856   64
 21838  21857   77
................................................................................
 22116  22135   
 22117  22136   skipif mysql # not compatible
 22118  22137   query I rowsort label-2435
 22119  22138   SELECT 98 * + COUNT ( * ) FROM tab0
 22120  22139   ----
 22121  22140   294
 22122  22141   
        22142  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22123  22143   query II rowsort
 22124  22144   SELECT DISTINCT - ( - col1 ) col1, col2 FROM tab2
 22125  22145   ----
 22126  22146   51
 22127  22147   23
 22128  22148   67
 22129  22149   58
................................................................................
 22579  22599   query I rowsort label-2484
 22580  22600   SELECT - 81 + - + CAST ( NULL AS INTEGER ) - col2 / + - 31 * - 33 FROM tab0 AS cor0
 22581  22601   ----
 22582  22602   NULL
 22583  22603   NULL
 22584  22604   NULL
 22585  22605   
        22606  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22586  22607   query II rowsort
 22587  22608   SELECT ALL col1 * + col0 col1, + 67 * + col1 FROM tab0 AS cor0
 22588  22609   ----
 22589  22610   1215
 22590  22611   5427
 22591  22612   1827
 22592  22613   1407
................................................................................
 22756  22777   
 22757  22778   skipif mysql # not compatible
 22758  22779   query I rowsort label-2504
 22759  22780   SELECT DISTINCT CAST ( - 12 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
 22760  22781   ----
 22761  22782   -12
 22762  22783   
        22784  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22763  22785   query II rowsort
 22764  22786   SELECT DISTINCT + col0 col1, col2 AS col0 FROM tab2
 22765  22787   ----
 22766  22788   46
 22767  22789   23
 22768  22790   64
 22769  22791   40
................................................................................
 24034  24056   
 24035  24057   skipif mysql # not compatible
 24036  24058   query I rowsort label-2637
 24037  24059   SELECT ALL - 68 / + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
 24038  24060   ----
 24039  24061   -7
 24040  24062   
        24063  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24041  24064   query II rowsort
 24042  24065   SELECT DISTINCT - col0 col1, col1 AS col1 FROM tab0
 24043  24066   ----
 24044  24067   -15
 24045  24068   81
 24046  24069   -87
 24047  24070   21
................................................................................
 26686  26709   -59823
 26687  26710   
 26688  26711   query III rowsort
 26689  26712   SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col2, - col0, col1, col1 )
 26690  26713   ----
 26691  26714   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 26692  26715   
        26716  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 26693  26717   query II rowsort
 26694  26718   SELECT + 15 * 30 col0, + 6 AS col2 FROM tab1
 26695  26719   ----
 26696  26720   450
 26697  26721   6
 26698  26722   450
 26699  26723   6
................................................................................
 27649  27673   query II rowsort label-3033
 27650  27674   SELECT - + ( + + 21 ) col2, COUNT( * ) AS col0 FROM tab2 AS cor0
 27651  27675   ----
 27652  27676   -21
 27653  27677   3
 27654  27678   
 27655  27679   skipif mysql # not compatible
        27680  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27656  27681   query II rowsort label-3033
 27657  27682   SELECT - + ( + + 21 ) col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
 27658  27683   ----
 27659  27684   -21
 27660  27685   3
 27661  27686   
 27662  27687   onlyif mysql # aggregate syntax: 
................................................................................
 27734  27759   
 27735  27760   skipif mysql # not compatible
 27736  27761   query I rowsort label-3041
 27737  27762   SELECT DISTINCT CAST ( + - 83 AS INTEGER ) AS col0 FROM tab0
 27738  27763   ----
 27739  27764   -83
 27740  27765   
        27766  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27741  27767   query II rowsort
 27742  27768   SELECT col2 col0, col0 AS col1 FROM tab0
 27743  27769   ----
 27744  27770   10
 27745  27771   87
 27746  27772   47
 27747  27773   15
................................................................................
 31640  31666   ----
 31641  31667   
 31642  31668   query III rowsort
 31643  31669   SELECT * FROM tab1 WHERE + 62 <> + - col1 + + col2 * - col0 / + 82
 31644  31670   ----
 31645  31671   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 31646  31672   
        31673  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 31647  31674   query II rowsort
 31648  31675   SELECT + col0 col0, + col1 FROM tab2
 31649  31676   ----
 31650  31677   46
 31651  31678   51
 31652  31679   64
 31653  31680   77
................................................................................
 34293  34320   SELECT 27 * + ( - 19 ) FROM tab1 cor0 WHERE ( + CAST ( + col0 AS INTEGER ) ) BETWEEN NULL AND ( col2 + - col2 )
 34294  34321   ----
 34295  34322   
 34296  34323   query III rowsort
 34297  34324   SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN NULL AND NULL
 34298  34325   ----
 34299  34326   
        34327  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34300  34328   query II rowsort
 34301  34329   SELECT ALL 0 col1, ( - - 97 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
 34302  34330   ----
 34303  34331   0
 34304  34332   97
 34305  34333   0
 34306  34334   97
................................................................................
 34422  34450   query I rowsort
 34423  34451   SELECT DISTINCT - 22 * 11 + - + col0 FROM tab0 AS cor0
 34424  34452   ----
 34425  34453   -257
 34426  34454   -329
 34427  34455   -339
 34428  34456   
        34457  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34429  34458   query II rowsort
 34430  34459   SELECT col1 * + - 22 col2, + col0 AS col2 FROM tab0 AS cor0
 34431  34460   ----
 34432  34461   -1782
 34433  34462   15
 34434  34463   -22
 34435  34464   97
................................................................................
 35306  35335   query II rowsort label-3876
 35307  35336   SELECT - 94 col1, - COUNT( * ) AS col2 FROM tab2 WHERE ( NULL BETWEEN col2 + - 41 AND NULL )
 35308  35337   ----
 35309  35338   -94
 35310  35339   0
 35311  35340   
 35312  35341   skipif mysql # not compatible
        35342  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35313  35343   query II rowsort label-3876
 35314  35344   SELECT - 94 col1, - COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL BETWEEN col2 + - 41 AND NULL )
 35315  35345   ----
 35316  35346   -94
 35317  35347   0
 35318  35348   
 35319  35349   onlyif mysql # aggregate syntax: 
................................................................................
 37145  37175   ----
 37146  37176   
 37147  37177   query I rowsort
 37148  37178   SELECT DISTINCT 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
 37149  37179   ----
 37150  37180   80
 37151  37181   
        37182  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37152  37183   query II rowsort
 37153  37184   SELECT - col0 col0, + 28 AS col0 FROM tab2
 37154  37185   ----
 37155  37186   -46
 37156  37187   28
 37157  37188   -64
 37158  37189   28
................................................................................
 37473  37504   query I rowsort label-4115
 37474  37505   SELECT ALL + ( - CAST ( + ( + col1 ) AS INTEGER ) ) FROM tab2
 37475  37506   ----
 37476  37507   -51
 37477  37508   -67
 37478  37509   -77
 37479  37510   
        37511  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37480  37512   query II rowsort
 37481  37513   SELECT + 13 col0, 18 AS col1 FROM tab0
 37482  37514   ----
 37483  37515   13
 37484  37516   18
 37485  37517   13
 37486  37518   18
................................................................................
 38320  38352   query I rowsort
 38321  38353   SELECT + col2 * + 23 col0 FROM tab1 cor0
 38322  38354   ----
 38323  38355   1357
 38324  38356   1564
 38325  38357   2208
 38326  38358   
        38359  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38327  38360   query II rowsort
 38328  38361   SELECT 57 col0, 23 AS col0 FROM tab2 AS cor0
 38329  38362   ----
 38330  38363   57
 38331  38364   23
 38332  38365   57
 38333  38366   23
 38334  38367   57
 38335  38368   23
 38336  38369   
        38370  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38337  38371   query II rowsort
 38338  38372   SELECT ALL + col0 col1, 20 - - col2 FROM tab1 AS cor0
 38339  38373   ----
 38340  38374   51
 38341  38375   116
 38342  38376   85
 38343  38377   79
................................................................................
 38872  38906   query II rowsort label-4279
 38873  38907   SELECT ( + COUNT( * ) ) + + SUM( ALL + col1 ) col2, MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
 38874  38908   ----
 38875  38909   106
 38876  38910   81
 38877  38911   
 38878  38912   skipif mysql # not compatible
        38913  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38879  38914   query II rowsort label-4279
 38880  38915   SELECT ( + COUNT ( * ) ) + + SUM ( ALL + col1 ) col2, MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
 38881  38916   ----
 38882  38917   106
 38883  38918   81
 38884  38919   
 38885  38920   query I rowsort
................................................................................
 40507  40542   51
 40508  40543   -1173
 40509  40544   67
 40510  40545   -3886
 40511  40546   77
 40512  40547   -3080
 40513  40548   
        40549  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 40514  40550   query II rowsort
 40515  40551   SELECT - - 73 col2, col2 + - col1 AS col0 FROM tab2 AS cor0
 40516  40552   ----
 40517  40553   73
 40518  40554   -28
 40519  40555   73
 40520  40556   -37
................................................................................
 41746  41782   query I rowsort
 41747  41783   SELECT DISTINCT + col1 - + 75 FROM tab2
 41748  41784   ----
 41749  41785   -24
 41750  41786   -8
 41751  41787   2
 41752  41788   
        41789  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41753  41790   query II rowsort
 41754  41791   SELECT DISTINCT col0 col0, + col0 AS col0 FROM tab1
 41755  41792   ----
 41756  41793   51
 41757  41794   51
 41758  41795   85
 41759  41796   85
................................................................................
 41896  41933   -769761
 41897  41934   NULL
 41898  41935   -769761
 41899  41936   NULL
 41900  41937   -769761
 41901  41938   
 41902  41939   skipif mysql # not compatible
        41940  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41903  41941   query II rowsort label-4609
 41904  41942   SELECT - CAST ( NULL AS INTEGER ) col2, - 89 * + + 93 * + 93 AS col0 FROM tab1
 41905  41943   ----
 41906  41944   NULL
 41907  41945   -769761
 41908  41946   NULL
 41909  41947   -769761
................................................................................
 43077  43115   query I rowsort label-4739
 43078  43116   SELECT DISTINCT + col0 - + col0 + + col1 / col2 FROM tab0
 43079  43117   ----
 43080  43118   0
 43081  43119   1
 43082  43120   2
 43083  43121   
        43122  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43084  43123   query II rowsort
 43085  43124   SELECT + 29 col2, 43 AS col0 FROM tab0
 43086  43125   ----
 43087  43126   29
 43088  43127   43
 43089  43128   29
 43090  43129   43
................................................................................
 44762  44801   query I rowsort
 44763  44802   SELECT DISTINCT - ( - ( + col0 ) ) FROM tab2
 44764  44803   ----
 44765  44804   46
 44766  44805   64
 44767  44806   75
 44768  44807   
        44808  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 44769  44809   query II rowsort
 44770  44810   SELECT col0 * + col2 col0, + col1 FROM tab0
 44771  44811   ----
 44772  44812   705
 44773  44813   81
 44774  44814   870
 44775  44815   21
................................................................................
 46805  46845   ----
 46806  46846   
 46807  46847   skipif mysql # not compatible
 46808  46848   query III rowsort label-5150
 46809  46849   SELECT * FROM tab0 WHERE ( + + col1 ) < CAST ( col1 AS REAL )
 46810  46850   ----
 46811  46851   
        46852  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46812  46853   query II rowsort
 46813  46854   SELECT + col0 + - col2 col0, col1 FROM tab1
 46814  46855   ----
 46815  46856   -45
 46816  46857   14
 46817  46858   23
 46818  46859   47
................................................................................
 47013  47054   ----
 47014  47055   0
 47015  47056   -36
 47016  47057   5
 47017  47058   -36
 47018  47059   
 47019  47060   skipif mysql # not compatible
        47061  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47020  47062   query II rowsort label-5174
 47021  47063   SELECT DISTINCT + col1 + - col1 / - col0 + - col1 col2, - 36 FROM tab0
 47022  47064   ----
 47023  47065   0
 47024  47066   -36
 47025  47067   5
 47026  47068   -36
................................................................................
 48247  48289   NULL
 48248  48290   73
 48249  48291   NULL
 48250  48292   73
 48251  48293   NULL
 48252  48294   
 48253  48295   skipif mysql # not compatible
        48296  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48254  48297   query II rowsort label-5302
 48255  48298   SELECT col0 - - 73 - + + col0 col1, + CAST ( NULL AS REAL ) + 54 - + - 69 FROM tab2 AS cor0
 48256  48299   ----
 48257  48300   73
 48258  48301   NULL
 48259  48302   73
 48260  48303   NULL
................................................................................
 49047  49090   70
 49048  49091   NULL
 49049  49092   70
 49050  49093   NULL
 49051  49094   70
 49052  49095   
 49053  49096   skipif mysql # not compatible
        49097  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49054  49098   query II rowsort label-5386
 49055  49099   SELECT - col0 * + CAST ( NULL AS INTEGER ) col0, 70 FROM tab0
 49056  49100   ----
 49057  49101   NULL
 49058  49102   70
 49059  49103   NULL
 49060  49104   70
................................................................................
 49158  49202   74
 49159  49203   14
 49160  49204   74
 49161  49205   14
 49162  49206   74
 49163  49207   14
 49164  49208   
        49209  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49165  49210   query II rowsort
 49166  49211   SELECT + col0 col0, - col1 FROM tab2
 49167  49212   ----
 49168  49213   46
 49169  49214   -51
 49170  49215   64
 49171  49216   -77
................................................................................
 49525  49570   query II rowsort label-5438
 49526  49571   SELECT + 40 * 33 col0, + 70 + + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
 49527  49572   ----
 49528  49573   1320
 49529  49574   79
 49530  49575   
 49531  49576   skipif mysql # not compatible
        49577  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49532  49578   query II rowsort label-5438
 49533  49579   SELECT + 40 * 33 col0, + 70 + + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
 49534  49580   ----
 49535  49581   1320
 49536  49582   79
 49537  49583   
 49538  49584   onlyif mysql # aggregate syntax: 
................................................................................
 50890  50936   120
 50891  50937   
 50892  50938   query III rowsort
 50893  50939   SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - ( col1 ) + col2 NOT BETWEEN NULL AND - 23 + 13
 50894  50940   ----
 50895  50941   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 50896  50942   
        50943  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50897  50944   query II rowsort
 50898  50945   SELECT - - col2 col0, - col0 AS col1 FROM tab2 AS cor0
 50899  50946   ----
 50900  50947   23
 50901  50948   -46
 50902  50949   40
 50903  50950   -64
................................................................................
 51729  51776   133
 51730  51777   69
 51731  51778   
 51732  51779   query I rowsort
 51733  51780   SELECT ALL - - col0 AS col0 FROM tab0 WHERE NULL <> - + col0 * - - col2
 51734  51781   ----
 51735  51782   
        51783  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 51736  51784   query II rowsort
 51737  51785   SELECT ALL col0 col1, + col2 AS col1 FROM tab0
 51738  51786   ----
 51739  51787   15
 51740  51788   47
 51741  51789   87
 51742  51790   10
................................................................................
 52261  52309   query II rowsort label-5757
 52262  52310   SELECT ALL - COUNT( * ) col0, + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
 52263  52311   ----
 52264  52312   -3
 52265  52313   3
 52266  52314   
 52267  52315   skipif mysql # not compatible
        52316  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52268  52317   query II rowsort label-5757
 52269  52318   SELECT ALL - COUNT ( * ) col0, + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
 52270  52319   ----
 52271  52320   -3
 52272  52321   3
 52273  52322   
 52274  52323   query I rowsort
................................................................................
 54956  55005   skipif mysql # not compatible
 54957  55006   query II rowsort label-6051
 54958  55007   SELECT 26, - MAX ( - col0 ) AS col1 FROM tab1 AS cor0
 54959  55008   ----
 54960  55009   26
 54961  55010   51
 54962  55011   
        55012  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54963  55013   query II rowsort
 54964  55014   SELECT + 98 col0, col0 AS col2 FROM tab0 AS cor0
 54965  55015   ----
 54966  55016   98
 54967  55017   15
 54968  55018   98
 54969  55019   87
................................................................................
 55697  55747   ----
 55698  55748   38
 55699  55749   
 55700  55750   query IIIIII rowsort
 55701  55751   SELECT * FROM tab0, tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
 55702  55752   ----
 55703  55753   
        55754  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 55704  55755   query II rowsort
 55705  55756   SELECT + col1 * 45 * + col0 col1, - col0 AS col0 FROM tab2
 55706  55757   ----
 55707  55758   105570
 55708  55759   -46
 55709  55760   221760
 55710  55761   -64
................................................................................
 55887  55938   query II rowsort label-6155
 55888  55939   SELECT ALL + CAST( NULL AS DECIMAL ) * MAX( + + 8 ) + 45 col2, - COUNT( * ) AS col0 FROM tab2 WHERE col2 + + 61 NOT IN ( - - 57, CAST( col1 AS SIGNED ), + col1, - 52 )
 55889  55940   ----
 55890  55941   NULL
 55891  55942   -3
 55892  55943   
 55893  55944   skipif mysql # not compatible
        55945  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 55894  55946   query II rowsort label-6155
 55895  55947   SELECT ALL + CAST ( NULL AS REAL ) * MAX ( + + 8 ) + 45 col2, - COUNT ( * ) AS col0 FROM tab2 WHERE col2 + + 61 NOT IN ( - - 57, CAST ( col1 AS INTEGER ), + col1, - 52 )
 55896  55948   ----
 55897  55949   NULL
 55898  55950   -3
 55899  55951   
 55900  55952   query I rowsort
................................................................................
 56029  56081   -2284
 56030  56082   -64
 56031  56083   -3506
 56032  56084   -75
 56033  56085   -3036
 56034  56086   
 56035  56087   skipif mysql # not compatible
        56088  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56036  56089   query II rowsort label-6167
 56037  56090   SELECT - col0 col1, 83 + + + 69 - 39 - col1 * CAST ( 47 AS INTEGER ) AS col0 FROM tab2
 56038  56091   ----
 56039  56092   -46
 56040  56093   -2284
 56041  56094   -64
 56042  56095   -3506
................................................................................
 56925  56978   10
 56926  56979   
 56927  56980   query III rowsort
 56928  56981   SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND - + col1
 56929  56982   ----
 56930  56983   9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
 56931  56984   
        56985  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56932  56986   query II rowsort
 56933  56987   SELECT 50 col0, col0 FROM tab0 AS cor0
 56934  56988   ----
 56935  56989   50
 56936  56990   15
 56937  56991   50
 56938  56992   87
................................................................................
 59382  59436   query I rowsort
 59383  59437   SELECT DISTINCT 81 * + ( - - col0 ) FROM tab2
 59384  59438   ----
 59385  59439   3726
 59386  59440   5184
 59387  59441   6075
 59388  59442   
        59443  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59389  59444   query II rowsort
 59390  59445   SELECT DISTINCT col1 * - col1 col0, col1 FROM tab1
 59391  59446   ----
 59392  59447   -196
 59393  59448   14
 59394  59449   -2209
 59395  59450   47
................................................................................
 60307  60362   query II rowsort label-6653
 60308  60363   SELECT DISTINCT - COUNT( * ) col1, SUM( ALL + col0 ) * 40 FROM tab0
 60309  60364   ----
 60310  60365   -3
 60311  60366   7960
 60312  60367   
 60313  60368   skipif mysql # not compatible
        60369  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60314  60370   query II rowsort label-6653
 60315  60371   SELECT DISTINCT - COUNT ( * ) col1, SUM ( ALL + col0 ) * 40 FROM tab0
 60316  60372   ----
 60317  60373   -3
 60318  60374   7960
 60319  60375   
 60320  60376   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 61576  61632   skipif mysql # not compatible
 61577  61633   query II rowsort label-6790
 61578  61634   SELECT 13, 16 / + - MIN ( + col0 ) AS col1 FROM tab2 AS cor0
 61579  61635   ----
 61580  61636   13
 61581  61637   0
 61582  61638   
        61639  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61583  61640   query II rowsort
 61584  61641   SELECT 7 * + 0 col1, - col2 AS col2 FROM tab0
 61585  61642   ----
 61586  61643   0
 61587  61644   -10
 61588  61645   0
 61589  61646   -47
................................................................................
 61808  61865   query II rowsort label-6814
 61809  61866   SELECT DISTINCT COUNT( DISTINCT - col0 ) col2, 73 * - 33 FROM tab0 AS cor0
 61810  61867   ----
 61811  61868   3
 61812  61869   -2409
 61813  61870   
 61814  61871   skipif mysql # not compatible
        61872  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61815  61873   query II rowsort label-6814
 61816  61874   SELECT DISTINCT COUNT ( DISTINCT - col0 ) col2, 73 * - 33 FROM tab0 AS cor0
 61817  61875   ----
 61818  61876   3
 61819  61877   -2409
 61820  61878   
 61821  61879   query I rowsort
................................................................................
 62663  62721   query II rowsort label-6911
 62664  62722   SELECT + - COUNT( * ) col0, 34 FROM tab2 AS cor0
 62665  62723   ----
 62666  62724   -3
 62667  62725   34
 62668  62726   
 62669  62727   skipif mysql # not compatible
        62728  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 62670  62729   query II rowsort label-6911
 62671  62730   SELECT + - COUNT ( * ) col0, 34 FROM tab2 AS cor0
 62672  62731   ----
 62673  62732   -3
 62674  62733   34
 62675  62734   
 62676  62735   query III rowsort
................................................................................
 62993  63052   15
 62994  63053   -1
 62995  63054   87
 62996  63055   -1
 62997  63056   97
 62998  63057   
 62999  63058   skipif mysql # not compatible
        63059  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63000  63060   query II rowsort label-6954
 63001  63061   SELECT + col1 / + - col1 col1, + ( col0 ) FROM tab0
 63002  63062   ----
 63003  63063   -1
 63004  63064   15
 63005  63065   -1
 63006  63066   87
................................................................................
 63380  63440   -46
 63381  63441   64
 63382  63442   -64
 63383  63443   75
 63384  63444   -75
 63385  63445   
 63386  63446   skipif mysql # not compatible
        63447  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63387  63448   query II rowsort label-6992
 63388  63449   SELECT col0 col1, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
 63389  63450   ----
 63390  63451   46
 63391  63452   -46
 63392  63453   64
 63393  63454   -64
................................................................................
 64622  64683   NULL
 64623  64684   46
 64624  64685   NULL
 64625  64686   46
 64626  64687   NULL
 64627  64688   
 64628  64689   skipif mysql # not compatible
        64690  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 64629  64691   query II rowsort label-7138
 64630  64692   SELECT + 46 col2, + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
 64631  64693   ----
 64632  64694   46
 64633  64695   NULL
 64634  64696   46
 64635  64697   NULL
................................................................................
 65067  65129   query II rowsort label-7187
 65068  65130   SELECT - 60 col0, COUNT( * ) AS col2 FROM tab2 AS cor0
 65069  65131   ----
 65070  65132   -60
 65071  65133   3
 65072  65134   
 65073  65135   skipif mysql # not compatible
        65136  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 65074  65137   query II rowsort label-7187
 65075  65138   SELECT - 60 col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
 65076  65139   ----
 65077  65140   -60
 65078  65141   3
 65079  65142   
 65080  65143   skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
 65799  65862   query II rowsort label-7262
 65800  65863   SELECT ALL 56 col0, COUNT( * ) AS col1 FROM tab2
 65801  65864   ----
 65802  65865   56
 65803  65866   3
 65804  65867   
 65805  65868   skipif mysql # not compatible
        65869  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 65806  65870   query II rowsort label-7262
 65807  65871   SELECT ALL 56 col0, COUNT ( * ) AS col1 FROM tab2
 65808  65872   ----
 65809  65873   56
 65810  65874   3
 65811  65875   
 65812  65876   onlyif mysql # aggregate syntax: 
................................................................................
 66183  66247   0
 66184  66248   125
 66185  66249   0
 66186  66250   74
 66187  66251   -1
 66188  66252   
 66189  66253   skipif mysql # not compatible
        66254  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 66190  66255   query II rowsort label-7301
 66191  66256   SELECT ALL + col1 - - col2 col1, + 47 / - col0 AS col0 FROM tab2
 66192  66257   ----
 66193  66258   117
 66194  66259   0
 66195  66260   125
 66196  66261   0
................................................................................
 68110  68175   query II rowsort label-7513
 68111  68176   SELECT ALL COUNT( * ) col1, - 15 + + 82 AS col0 FROM tab0
 68112  68177   ----
 68113  68178   3
 68114  68179   67
 68115  68180   
 68116  68181   skipif mysql # not compatible
        68182  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68117  68183   query II rowsort label-7513
 68118  68184   SELECT ALL COUNT ( * ) col1, - 15 + + 82 AS col0 FROM tab0
 68119  68185   ----
 68120  68186   3
 68121  68187   67
 68122  68188   
 68123  68189   onlyif mysql # aggregate syntax: 
................................................................................
 68362  68428   ----
 68363  68429   NULL
 68364  68430   
 68365  68431   query III rowsort
 68366  68432   SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 15 * col0 )
 68367  68433   ----
 68368  68434   
        68435  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68369  68436   query II rowsort
 68370  68437   SELECT DISTINCT + + ( + - col1 ) col2, col0 * + col1 * + 19 AS col2 FROM tab1 AS cor0
 68371  68438   ----
 68372  68439   -14
 68373  68440   13566
 68374  68441   -47
 68375  68442   81263
................................................................................
 68400  68467   query II rowsort label-7547
 68401  68468   SELECT ALL - - MIN( DISTINCT col0 ) col0, + MAX( - 50 ) DIV - + 4 FROM tab2 AS cor0
 68402  68469   ----
 68403  68470   46
 68404  68471   12
 68405  68472   
 68406  68473   skipif mysql # not compatible
        68474  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 68407  68475   query II rowsort label-7547
 68408  68476   SELECT ALL - - MIN ( DISTINCT col0 ) col0, + MAX ( - 50 ) / - + 4 FROM tab2 AS cor0
 68409  68477   ----
 68410  68478   46
 68411  68479   12
 68412  68480   
 68413  68481   query I rowsort
................................................................................
 69085  69153   query I rowsort label-7623
 69086  69154   SELECT + col2 * col1 * CAST ( + 7 AS INTEGER ) * 98 FROM tab2 cor0
 69087  69155   ----
 69088  69156   2112880
 69089  69157   2665796
 69090  69158   804678
 69091  69159   
        69160  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69092  69161   query II rowsort
 69093  69162   SELECT ALL + 78 col0, + col1 + + + 74 FROM tab1 AS cor0
 69094  69163   ----
 69095  69164   78
 69096  69165   121
 69097  69166   78
 69098  69167   79
................................................................................
 69103  69172   query II rowsort label-7625
 69104  69173   SELECT DISTINCT + 13 col2, + COUNT( * ) FROM tab1 AS cor0
 69105  69174   ----
 69106  69175   13
 69107  69176   3
 69108  69177   
 69109  69178   skipif mysql # not compatible
        69179  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 69110  69180   query II rowsort label-7625
 69111  69181   SELECT DISTINCT + 13 col2, + COUNT ( * ) FROM tab1 AS cor0
 69112  69182   ----
 69113  69183   13
 69114  69184   3
 69115  69185   
 69116  69186   onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
................................................................................
 70328  70398   77
 70329  70399   141
 70330  70400   
 70331  70401   query I rowsort
 70332  70402   SELECT - ( - 89 ) FROM tab1 WHERE NOT NULL IS NULL
 70333  70403   ----
 70334  70404   
        70405  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 70335  70406   query II rowsort
 70336  70407   SELECT col0 * + - 37 * col2 col2, + 94 FROM tab1
 70337  70408   ----
 70338  70409   -181152
 70339  70410   94
 70340  70411   -185555
 70341  70412   94
................................................................................
 70855  70926   query II rowsort label-7799
 70856  70927   SELECT - ( SUM( - - col2 ) ) col0, SUM( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
 70857  70928   ----
 70858  70929   NULL
 70859  70930   NULL
 70860  70931   
 70861  70932   skipif mysql # not compatible
        70933  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 70862  70934   query II rowsort label-7799
 70863  70935   SELECT - ( SUM ( - - col2 ) ) col0, SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
 70864  70936   ----
 70865  70937   NULL
 70866  70938   NULL
 70867  70939   
 70868  70940   query I rowsort
................................................................................
 71882  71954   -49
 71883  71955   45
 71884  71956   -49
 71885  71957   45
 71886  71958   -49
 71887  71959   
 71888  71960   skipif mysql # not compatible
        71961  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71889  71962   query II rowsort label-7915
 71890  71963   SELECT 45 col2, - ( - col0 ) / 43 / col0 + - 49 AS col0 FROM tab2
 71891  71964   ----
 71892  71965   45
 71893  71966   -49
 71894  71967   45
 71895  71968   -49
................................................................................
 72691  72764   query I rowsort
 72692  72765   SELECT 95 + + - 62 - + 32 AS col0 FROM tab1 AS cor0
 72693  72766   ----
 72694  72767   1
 72695  72768   1
 72696  72769   1
 72697  72770   
        72771  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72698  72772   query II rowsort
 72699  72773   SELECT DISTINCT + col0 + - col0 col1, col1 FROM tab2 AS cor0
 72700  72774   ----
 72701  72775   0
 72702  72776   51
 72703  72777   0
 72704  72778   67
................................................................................
 72764  72838   21
 72765  72839   -2209
 72766  72840   81
 72767  72841   -9801
 72768  72842   1
 72769  72843   
 72770  72844   skipif mysql # not compatible
        72845  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72771  72846   query II rowsort label-8005
 72772  72847   SELECT - col2 * col2 col1, ( - CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
 72773  72848   ----
 72774  72849   -100
 72775  72850   21
 72776  72851   -2209
 72777  72852   81
................................................................................
 73071  73146   0
 73072  73147   -20
 73073  73148   0
 73074  73149   -20
 73075  73150   0
 73076  73151   
 73077  73152   skipif mysql # not compatible
        73153  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 73078  73154   query II rowsort label-8035
 73079  73155   SELECT ALL + col1 / + col0 - + 20 col0, - col0 + col0 FROM tab0
 73080  73156   ----
 73081  73157   -15
 73082  73158   0
 73083  73159   -20
 73084  73160   0
................................................................................
 73649  73725   2
 73650  73726   NULL
 73651  73727   2
 73652  73728   NULL
 73653  73729   2
 73654  73730   NULL
 73655  73731   
        73732  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 73656  73733   query II rowsort
 73657  73734   SELECT col1 col1, 52 AS col2 FROM tab1
 73658  73735   ----
 73659  73736   14
 73660  73737   52
 73661  73738   47
 73662  73739   52
................................................................................
 74275  74352   query I rowsort label-8162
 74276  74353   SELECT - + 25 / - col2 + - 50 * - 61 AS col1 FROM tab0 cor0
 74277  74354   ----
 74278  74355   3050
 74279  74356   3050
 74280  74357   3052
 74281  74358   
        74359  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74282  74360   query II rowsort
 74283  74361   SELECT - col0 col1, + 67 AS col0 FROM tab2
 74284  74362   ----
 74285  74363   -46
 74286  74364   67
 74287  74365   -64
 74288  74366   67
................................................................................
 74304  74382   query I rowsort
 74305  74383   SELECT 36 * - col0 AS col2 FROM tab0
 74306  74384   ----
 74307  74385   -3132
 74308  74386   -3492
 74309  74387   -540
 74310  74388   
        74389  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74311  74390   query II rowsort
 74312  74391   SELECT - col2 col0, 83 * + + 70 FROM tab2
 74313  74392   ----
 74314  74393   -23
 74315  74394   5810
 74316  74395   -40
 74317  74396   5810
................................................................................
 75236  75315   
 75237  75316   skipif mysql # not compatible
 75238  75317   query I rowsort label-8265
 75239  75318   SELECT ALL MAX ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
 75240  75319   ----
 75241  75320   NULL
 75242  75321   
        75322  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75243  75323   query II rowsort
 75244  75324   SELECT DISTINCT - 49 col1, - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
 75245  75325   ----
 75246  75326   
 75247  75327   onlyif mysql # aggregate syntax: 
 75248  75328   query I rowsort label-8267
 75249  75329   SELECT DISTINCT - COUNT( DISTINCT col1 ) FROM tab1 cor0
................................................................................
 76218  76298   query I rowsort
 76219  76299   SELECT ALL 51 + + ( - col2 ) FROM tab0 cor0
 76220  76300   ----
 76221  76301   -48
 76222  76302   4
 76223  76303   41
 76224  76304   
        76305  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76225  76306   query II rowsort
 76226  76307   SELECT - + col0 * - - col2 col0, - 29 AS col1 FROM tab0 AS cor0
 76227  76308   ----
 76228  76309   -705
 76229  76310   -29
 76230  76311   -870
 76231  76312   -29
................................................................................
 78764  78845   75
 78765  78846   1
 78766  78847   64
 78767  78848   2
 78768  78849   46
 78769  78850   
 78770  78851   skipif mysql # not compatible
        78852  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78771  78853   query II rowsort label-8649
 78772  78854   SELECT + + 57 / col2 col1, + col0 AS col1 FROM tab2 AS cor0
 78773  78855   ----
 78774  78856   0
 78775  78857   75
 78776  78858   1
 78777  78859   64
................................................................................
 79505  79587   
 79506  79588   skipif mysql # not compatible
 79507  79589   query I rowsort label-8733
 79508  79590   SELECT ALL - ( - ( + - 19 ) ) * + - ( + AVG ( DISTINCT + col0 ) ) + + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
 79509  79591   ----
 79510  79592   NULL
 79511  79593   
        79594  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79512  79595   query II rowsort
 79513  79596   SELECT col2 - + - 95 * + + col2 col2, - col2 + - col0 FROM tab0
 79514  79597   ----
 79515  79598   4512
 79516  79599   -62
 79517  79600   9504
 79518  79601   -196
................................................................................
 79561  79644   query II rowsort label-8739
 79562  79645   SELECT ALL + + COUNT( * ) col2, - 73 FROM tab1 AS cor0
 79563  79646   ----
 79564  79647   3
 79565  79648   -73
 79566  79649   
 79567  79650   skipif mysql # not compatible
        79651  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79568  79652   query II rowsort label-8739
 79569  79653   SELECT ALL + + COUNT ( * ) col2, - 73 FROM tab1 AS cor0
 79570  79654   ----
 79571  79655   3
 79572  79656   -73
 79573  79657   
 79574  79658   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 80067  80151   query II rowsort label-8801
 80068  80152   SELECT - COUNT( * ) col1, - 16 DIV + 59 FROM tab2 cor0
 80069  80153   ----
 80070  80154   -3
 80071  80155   0
 80072  80156   
 80073  80157   skipif mysql # not compatible
        80158  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80074  80159   query II rowsort label-8801
 80075  80160   SELECT - COUNT ( * ) col1, - 16 / + 59 FROM tab2 cor0
 80076  80161   ----
 80077  80162   -3
 80078  80163   0
 80079  80164   
 80080  80165   onlyif mysql # aggregate syntax: 
................................................................................
 80636  80721   query II rowsort label-8867
 80637  80722   SELECT DISTINCT 87 col0, + SUM( + - col2 ) FROM tab0
 80638  80723   ----
 80639  80724   87
 80640  80725   -156
 80641  80726   
 80642  80727   skipif mysql # not compatible
        80728  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80643  80729   query II rowsort label-8867
 80644  80730   SELECT DISTINCT 87 col0, + SUM ( + - col2 ) FROM tab0
 80645  80731   ----
 80646  80732   87
 80647  80733   -156
 80648  80734   
 80649  80735   query III rowsort
................................................................................
 81340  81426   25
 81341  81427   159
 81342  81428   25
 81343  81429   188
 81344  81430   25
 81345  81431   
 81346  81432   skipif mysql # not compatible
        81433  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 81347  81434   query II rowsort label-8945
 81348  81435   SELECT DISTINCT + col0 - - + col2 + + + 56 + + 92 / - col1 col0, 25 AS col0 FROM tab2
 81349  81436   ----
 81350  81437   124
 81351  81438   25
 81352  81439   159
 81353  81440   25
................................................................................
 82647  82734   1
 82648  82735   0
 82649  82736   
 82650  82737   query III rowsort
 82651  82738   SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + col1 ) AND NULL
 82652  82739   ----
 82653  82740   
        82741  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82654  82742   query II rowsort
 82655  82743   SELECT DISTINCT col1 col0, col2 AS col2 FROM tab1
 82656  82744   ----
 82657  82745   14
 82658  82746   96
 82659  82747   47
 82660  82748   68
................................................................................
 82683  82771   
 82684  82772   skipif mysql # not compatible
 82685  82773   query I rowsort label-9094
 82686  82774   SELECT ALL - COUNT ( * ) * 76 FROM tab2 AS cor0
 82687  82775   ----
 82688  82776   -228
 82689  82777   
        82778  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82690  82779   query II rowsort
 82691  82780   SELECT 88 col2, ( - - col1 ) FROM tab1 AS cor0
 82692  82781   ----
 82693  82782   88
 82694  82783   14
 82695  82784   88
 82696  82785   47
................................................................................
 82900  82989   query II rowsort label-9123
 82901  82990   SELECT + ( + MAX( + - col0 ) ) col0, COUNT( * ) + + COUNT( * ) * + - 93 AS col0 FROM tab0
 82902  82991   ----
 82903  82992   -15
 82904  82993   -276
 82905  82994   
 82906  82995   skipif mysql # not compatible
        82996  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82907  82997   query II rowsort label-9123
 82908  82998   SELECT + ( + MAX ( + - col0 ) ) col0, COUNT ( * ) + + COUNT ( * ) * + - 93 AS col0 FROM tab0
 82909  82999   ----
 82910  83000   -15
 82911  83001   -276
 82912  83002   
 82913  83003   onlyif mysql # DIV for integer division: 
................................................................................
 83166  83256   174
 83167  83257   NULL
 83168  83258   194
 83169  83259   NULL
 83170  83260   30
 83171  83261   NULL
 83172  83262   
        83263  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83173  83264   query II rowsort
 83174  83265   SELECT DISTINCT + - col0 + + 99 col1, ( + col0 ) AS col0 FROM tab0 cor0
 83175  83266   ----
 83176  83267   12
 83177  83268   87
 83178  83269   2
 83179  83270   97
................................................................................
 84946  85037   query II rowsort label-9351
 84947  85038   SELECT + - COUNT( * ) col2, ( 95 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
 84948  85039   ----
 84949  85040   0
 84950  85041   95
 84951  85042   
 84952  85043   skipif mysql # not compatible
        85044  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 84953  85045   query II rowsort label-9351
 84954  85046   SELECT + - COUNT ( * ) col2, ( 95 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
 84955  85047   ----
 84956  85048   0
 84957  85049   95
 84958  85050   
 84959  85051   query I rowsort
................................................................................
 86309  86401   query II rowsort label-9501
 86310  86402   SELECT - 19 - + - COUNT( * ) col0, 66 FROM tab2 AS cor0
 86311  86403   ----
 86312  86404   -16
 86313  86405   66
 86314  86406   
 86315  86407   skipif mysql # not compatible
        86408  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86316  86409   query II rowsort label-9501
 86317  86410   SELECT - 19 - + - COUNT ( * ) col0, 66 FROM tab2 AS cor0
 86318  86411   ----
 86319  86412   -16
 86320  86413   66
 86321  86414   
 86322  86415   query II rowsort
................................................................................
 86471  86564   -104
 86472  86565   NULL
 86473  86566   -121
 86474  86567   NULL
 86475  86568   -139
 86476  86569   
 86477  86570   skipif mysql # not compatible
        86571  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86478  86572   query II rowsort label-9514
 86479  86573   SELECT + + CAST ( NULL AS REAL ) col0, - ( + 81 ) + + ( + - col2 ) AS col2 FROM tab2 AS cor0
 86480  86574   ----
 86481  86575   NULL
 86482  86576   -104
 86483  86577   NULL
 86484  86578   -121
................................................................................
 87627  87721   ----
 87628  87722   -59
 87629  87723   
 87630  87724   query III rowsort
 87631  87725   SELECT * FROM tab0 WHERE NOT NULL <> - - ( - - col1 ) + - + 52 + - col1 / - col0
 87632  87726   ----
 87633  87727   
        87728  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 87634  87729   query II rowsort
 87635  87730   SELECT DISTINCT + col1 * + 26 col2, - col0 * - + col2 + - col1 FROM tab2
 87636  87731   ----
 87637  87732   1326
 87638  87733   1007
 87639  87734   1742
 87640  87735   4283
................................................................................
 88769  88864   query II rowsort label-9769
 88770  88865   SELECT DISTINCT - COUNT( * ) col1, + CAST( NULL AS SIGNED ) + + 6 FROM tab0 WHERE NULL NOT IN ( + col0 )
 88771  88866   ----
 88772  88867   0
 88773  88868   NULL
 88774  88869   
 88775  88870   skipif mysql # not compatible
        88871  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 88776  88872   query II rowsort label-9769
 88777  88873   SELECT DISTINCT - COUNT ( * ) col1, + CAST ( NULL AS INTEGER ) + + 6 FROM tab0 WHERE NULL NOT IN ( + col0 )
 88778  88874   ----
 88779  88875   0
 88780  88876   NULL
 88781  88877   
 88782  88878   query II rowsort
................................................................................
 89040  89136   query II rowsort label-9800
 89041  89137   SELECT - 6 col0, + COUNT( * ) FROM tab0
 89042  89138   ----
 89043  89139   -6
 89044  89140   3
 89045  89141   
 89046  89142   skipif mysql # not compatible
        89143  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 89047  89144   query II rowsort label-9800
 89048  89145   SELECT - 6 col0, + COUNT ( * ) FROM tab0
 89049  89146   ----
 89050  89147   -6
 89051  89148   3
 89052  89149   
 89053  89150   query I rowsort

Changes to test/random/aggregates/slt_good_104.test.

   161    161   -27
   162    162   59
   163    163   -27
   164    164   68
   165    165   -27
   166    166   96
   167    167   
          168  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   168    169   query II rowsort
   169    170   SELECT 30 col2, - 38 FROM tab1
   170    171   ----
   171    172   30
   172    173   -38
   173    174   30
   174    175   -38
................................................................................
  3246   3247   ----
  3247   3248   5727
  3248   3249   
  3249   3250   query I rowsort
  3250   3251   SELECT + col0 AS col2 FROM tab2 WHERE - col2 > NULL
  3251   3252   ----
  3252   3253   
         3254  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3253   3255   query II rowsort
  3254   3256   SELECT ALL col0 col0, + col1 * col0 FROM tab2
  3255   3257   ----
  3256   3258   46
  3257   3259   2346
  3258   3260   64
  3259   3261   4928
................................................................................
  3322   3324   query II rowsort label-365
  3323   3325   SELECT COUNT( ALL col1 ) col1, 81 FROM tab1
  3324   3326   ----
  3325   3327   3
  3326   3328   81
  3327   3329   
  3328   3330   skipif mysql # not compatible
         3331  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  3329   3332   query II rowsort label-365
  3330   3333   SELECT COUNT ( ALL col1 ) col1, 81 FROM tab1
  3331   3334   ----
  3332   3335   3
  3333   3336   81
  3334   3337   
  3335   3338   query III rowsort
................................................................................
  4800   4803   query II rowsort label-527
  4801   4804   SELECT + COUNT( * ) col1, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 91 IS NULL
  4802   4805   ----
  4803   4806   3
  4804   4807   3
  4805   4808   
  4806   4809   skipif mysql # not compatible
         4810  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  4807   4811   query II rowsort label-527
  4808   4812   SELECT + COUNT ( * ) col1, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 91 IS NULL
  4809   4813   ----
  4810   4814   3
  4811   4815   3
  4812   4816   
  4813   4817   query III rowsort
................................................................................
  9112   9116   query II rowsort label-991
  9113   9117   SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) col1, - 85 FROM tab2 cor0
  9114   9118   ----
  9115   9119   NULL
  9116   9120   -85
  9117   9121   
  9118   9122   skipif mysql # not compatible
         9123  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9119   9124   query II rowsort label-991
  9120   9125   SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) col1, - 85 FROM tab2 cor0
  9121   9126   ----
  9122   9127   NULL
  9123   9128   -85
  9124   9129   
  9125   9130   skipif postgresql # PostgreSQL requires AS when renaming output columns
................................................................................
  9710   9715   ----
  9711   9716   -79
  9712   9717   
  9713   9718   query I rowsort
  9714   9719   SELECT + - col2 AS col0 FROM tab2 WHERE NOT + - col0 IS NOT NULL
  9715   9720   ----
  9716   9721   
         9722  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9717   9723   query II rowsort
  9718   9724   SELECT DISTINCT - + col1 + + 20 col0, + 1 AS col2 FROM tab0 AS cor0
  9719   9725   ----
  9720   9726   -1
  9721   9727   1
  9722   9728   -61
  9723   9729   1
................................................................................
 11378  11384   ----
 11379  11385   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 11380  11386   
 11381  11387   query III rowsort
 11382  11388   SELECT ALL * FROM tab0 WHERE - 30 IS NULL
 11383  11389   ----
 11384  11390   
        11391  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11385  11392   query II rowsort
 11386  11393   SELECT ALL col2 col2, + col2 + + col0 FROM tab1 AS cor0
 11387  11394   ----
 11388  11395   59
 11389  11396   144
 11390  11397   68
 11391  11398   159
 11392  11399   96
 11393  11400   147
 11394  11401   
        11402  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 11395  11403   query II rowsort
 11396  11404   SELECT DISTINCT + ( - col1 ) col0, + col0 * + - 12 AS col2 FROM tab1 AS cor0
 11397  11405   ----
 11398  11406   -14
 11399  11407   -612
 11400  11408   -47
 11401  11409   -1092
................................................................................
 12128  12136   query I rowsort
 12129  12137   SELECT ALL ( - 2 ) * col1 + - col1 * ( - - 97 ) + + + col1 + - col2 AS col2 FROM tab2
 12130  12138   ----
 12131  12139   -5021
 12132  12140   -6624
 12133  12141   -7586
 12134  12142   
        12143  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 12135  12144   query II rowsort
 12136  12145   SELECT col0 col0, 2 FROM tab0
 12137  12146   ----
 12138  12147   15
 12139  12148   2
 12140  12149   87
 12141  12150   2
................................................................................
 13267  13276   -81
 13268  13277   
 13269  13278   query III rowsort
 13270  13279   SELECT ALL * FROM tab1 WHERE + + 60 IS NOT NULL
 13271  13280   ----
 13272  13281   9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
 13273  13282   
        13283  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13274  13284   query II rowsort
 13275  13285   SELECT ALL - col0 * - 56 col1, - 71 - col1 AS col1 FROM tab1
 13276  13286   ----
 13277  13287   2856
 13278  13288   -85
 13279  13289   4760
 13280  13290   -76
................................................................................
 13556  13566   15
 13557  13567   81
 13558  13568   47
 13559  13569   97
 13560  13570   1
 13561  13571   99
 13562  13572   
        13573  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13563  13574   query II rowsort
 13564  13575   SELECT DISTINCT 44 col0, col2 AS col2 FROM tab0 AS cor0
 13565  13576   ----
 13566  13577   44
 13567  13578   10
 13568  13579   44
 13569  13580   47
................................................................................
 13609  13620   query I rowsort
 13610  13621   SELECT - ( - 92 ) col1 FROM tab0
 13611  13622   ----
 13612  13623   92
 13613  13624   92
 13614  13625   92
 13615  13626   
        13627  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13616  13628   query II rowsort
 13617  13629   SELECT ALL + - col1 * + col2 + + col0 + + 26 - - + col2 + - - col1 col2, - col1 FROM tab2 AS cor0
 13618  13630   ----
 13619  13631   -1027
 13620  13632   -51
 13621  13633   -2873
 13622  13634   -77
................................................................................
 13703  13715   query I rowsort
 13704  13716   SELECT + col1 - - ( ( 46 ) ) FROM tab0
 13705  13717   ----
 13706  13718   127
 13707  13719   47
 13708  13720   67
 13709  13721   
        13722  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13710  13723   query II rowsort
 13711  13724   SELECT DISTINCT col2 col0, 67 AS col2 FROM tab0
 13712  13725   ----
 13713  13726   10
 13714  13727   67
 13715  13728   47
 13716  13729   67
................................................................................
 14861  14874   query II rowsort label-1634
 14862  14875   SELECT DISTINCT 47 col0, - CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab2
 14863  14876   ----
 14864  14877   47
 14865  14878   NULL
 14866  14879   
 14867  14880   skipif mysql # not compatible
        14881  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14868  14882   query II rowsort label-1634
 14869  14883   SELECT DISTINCT 47 col0, - CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab2
 14870  14884   ----
 14871  14885   47
 14872  14886   NULL
 14873  14887   
 14874  14888   query I rowsort
................................................................................
 15440  15454   NULL
 15441  15455   4081
 15442  15456   NULL
 15443  15457   4081
 15444  15458   NULL
 15445  15459   
 15446  15460   skipif mysql # not compatible
        15461  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15447  15462   query II rowsort label-1696
 15448  15463   SELECT + 53 * + 77 col1, - CAST ( NULL AS INTEGER ) * col0 FROM tab1 WHERE NULL IS NULL
 15449  15464   ----
 15450  15465   4081
 15451  15466   NULL
 15452  15467   4081
 15453  15468   NULL
................................................................................
 15630  15645   51
 15631  15646   94
 15632  15647   85
 15633  15648   94
 15634  15649   91
 15635  15650   94
 15636  15651   
        15652  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15637  15653   query II rowsort
 15638  15654   SELECT col2 col0, 7 FROM tab1
 15639  15655   ----
 15640  15656   59
 15641  15657   7
 15642  15658   68
 15643  15659   7
................................................................................
 15929  15945   1
 15930  15946   -12
 15931  15947   1
 15932  15948   -30
 15933  15949   1
 15934  15950   
 15935  15951   skipif mysql # not compatible
        15952  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15936  15953   query II rowsort label-1747
 15937  15954   SELECT - 76 + col0 col1, - col0 / - + col0 FROM tab2 AS cor0
 15938  15955   ----
 15939  15956   -1
 15940  15957   1
 15941  15958   -12
 15942  15959   1
................................................................................
 16229  16246   
 16230  16247   skipif mysql # not compatible
 16231  16248   query I rowsort label-1782
 16232  16249   SELECT ALL COUNT ( * ) / - - 26 FROM tab2 AS cor0 WHERE NULL IN ( 98 * + col1 + 81 + - - col1 / col2 + - col0 - - 51 )
 16233  16250   ----
 16234  16251   0
 16235  16252   
        16253  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16236  16254   query II rowsort
 16237  16255   SELECT DISTINCT col2 * + col0 col2, col0 AS col2 FROM tab2
 16238  16256   ----
 16239  16257   1058
 16240  16258   46
 16241  16259   2560
 16242  16260   64
................................................................................
 17145  17163   9660
 17146  17164   
 17147  17165   query I rowsort
 17148  17166   SELECT 24 AS col2 FROM tab1, tab1 AS cor0
 17149  17167   ----
 17150  17168   9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
 17151  17169   
        17170  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 17152  17171   query II rowsort
 17153  17172   SELECT 36 col0, 35 AS col0 FROM tab0
 17154  17173   ----
 17155  17174   36
 17156  17175   35
 17157  17176   36
 17158  17177   35
................................................................................
 17259  17278   1
 17260  17279   NULL
 17261  17280   21
 17262  17281   NULL
 17263  17282   81
 17264  17283   
 17265  17284   skipif mysql # not compatible
        17285  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 17266  17286   query II rowsort label-1884
 17267  17287   SELECT ALL - col1 + col2 + + ( + - col2 ) * CAST ( NULL AS INTEGER ) - - CAST ( - - col2 AS INTEGER ) col0, col1 FROM tab0 AS cor0
 17268  17288   ----
 17269  17289   NULL
 17270  17290   1
 17271  17291   NULL
 17272  17292   21
................................................................................
 17374  17394   query I rowsort
 17375  17395   SELECT ALL + + col2 + 92 * + 45 AS col1 FROM tab0 AS cor0
 17376  17396   ----
 17377  17397   4150
 17378  17398   4187
 17379  17399   4239
 17380  17400   
        17401  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 17381  17402   query II rowsort
 17382  17403   SELECT + - col1 col0, + col2 AS col2 FROM tab0 AS cor0
 17383  17404   ----
 17384  17405   -1
 17385  17406   99
 17386  17407   -21
 17387  17408   10
................................................................................
 19163  19184   query II rowsort label-2092
 19164  19185   SELECT ALL + COUNT( * ) DIV + - MAX( DISTINCT - col0 ) col2, 7 AS col0 FROM tab0 cor0
 19165  19186   ----
 19166  19187   0
 19167  19188   7
 19168  19189   
 19169  19190   skipif mysql # not compatible
        19191  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19170  19192   query II rowsort label-2092
 19171  19193   SELECT ALL + COUNT ( * ) / + - MAX ( DISTINCT - col0 ) col2, 7 AS col0 FROM tab0 cor0
 19172  19194   ----
 19173  19195   0
 19174  19196   7
 19175  19197   
 19176  19198   onlyif mysql # DIV for integer division: 
................................................................................
 19241  19263   -177
 19242  19264   
 19243  19265   query I rowsort
 19244  19266   SELECT 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
 19245  19267   ----
 19246  19268   9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
 19247  19269   
        19270  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 19248  19271   query II rowsort
 19249  19272   SELECT DISTINCT + col2 col2, col1 AS col1 FROM tab0
 19250  19273   ----
 19251  19274   10
 19252  19275   21
 19253  19276   47
 19254  19277   81
................................................................................
 20054  20077   query II rowsort label-2186
 20055  20078   SELECT COUNT( * ) col0, + 84 AS col2 FROM tab0
 20056  20079   ----
 20057  20080   3
 20058  20081   84
 20059  20082   
 20060  20083   skipif mysql # not compatible
        20084  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20061  20085   query II rowsort label-2186
 20062  20086   SELECT COUNT ( * ) col0, + 84 AS col2 FROM tab0
 20063  20087   ----
 20064  20088   3
 20065  20089   84
 20066  20090   
 20067  20091   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 20158  20182   query II rowsort label-2194
 20159  20183   SELECT ALL + 60 col2, COUNT( * ) + + + ( - 70 ) FROM tab1 AS cor0
 20160  20184   ----
 20161  20185   60
 20162  20186   -67
 20163  20187   
 20164  20188   skipif mysql # not compatible
        20189  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20165  20190   query II rowsort label-2194
 20166  20191   SELECT ALL + 60 col2, COUNT ( * ) + + + ( - 70 ) FROM tab1 AS cor0
 20167  20192   ----
 20168  20193   60
 20169  20194   -67
 20170  20195   
 20171  20196   onlyif mysql # aggregate syntax: 
................................................................................
 21299  21324   
 21300  21325   onlyif mysql # CAST syntax: SIGNED type: 
 21301  21326   query III rowsort label-2308
 21302  21327   SELECT DISTINCT - + 97 AS col1, + CAST( NULL AS SIGNED ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
 21303  21328   ----
 21304  21329   
 21305  21330   skipif mysql # not compatible
        21331  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21306  21332   query III rowsort label-2308
 21307  21333   SELECT DISTINCT - + 97 AS col1, + CAST ( NULL AS INTEGER ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
 21308  21334   ----
 21309  21335   
 21310  21336   query I rowsort
 21311  21337   SELECT ALL - 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
 21312  21338   ----
................................................................................
 21371  21397   
 21372  21398   skipif mysql # not compatible
 21373  21399   query I rowsort label-2316
 21374  21400   SELECT DISTINCT - + COUNT ( + col0 ) FROM tab1 AS cor0
 21375  21401   ----
 21376  21402   -3
 21377  21403   
        21404  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21378  21405   query II rowsort
 21379  21406   SELECT DISTINCT + col2 col0, + col1 * + - col0 FROM tab0
 21380  21407   ----
 21381  21408   10
 21382  21409   -1827
 21383  21410   47
 21384  21411   -1215
................................................................................
 22130  22157   
 22131  22158   skipif mysql # not compatible
 22132  22159   query I rowsort label-2402
 22133  22160   SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
 22134  22161   ----
 22135  22162   NULL
 22136  22163   
        22164  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22137  22165   query II rowsort
 22138  22166   SELECT ALL - 16 col1, col2 AS col0 FROM tab0
 22139  22167   ----
 22140  22168   -16
 22141  22169   10
 22142  22170   -16
 22143  22171   47
................................................................................
 22193  22221   
 22194  22222   skipif mysql # not compatible
 22195  22223   query I rowsort label-2408
 22196  22224   SELECT DISTINCT - 27 * + 85 * + COUNT ( * ) AS col2 FROM tab2
 22197  22225   ----
 22198  22226   -6885
 22199  22227   
        22228  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22200  22229   query II rowsort
 22201  22230   SELECT col1 col2, col2 AS col0 FROM tab0
 22202  22231   ----
 22203  22232   1
 22204  22233   99
 22205  22234   21
 22206  22235   10
................................................................................
 23764  23793   9463
 23765  23794   
 23766  23795   query I rowsort
 23767  23796   SELECT - AVG ( + col2 ) AS col0 FROM tab0 WHERE ( NOT - 73 <> NULL )
 23768  23797   ----
 23769  23798   NULL
 23770  23799   
        23800  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 23771  23801   query II rowsort
 23772  23802   SELECT DISTINCT col0 * + + 8 col1, col1 + - col2 AS col1 FROM tab1
 23773  23803   ----
 23774  23804   408
 23775  23805   -82
 23776  23806   680
 23777  23807   -54
................................................................................
 24337  24367   query I rowsort label-2656
 24338  24368   SELECT ALL + 33 / - 54 FROM tab1
 24339  24369   ----
 24340  24370   0
 24341  24371   0
 24342  24372   0
 24343  24373   
        24374  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24344  24375   query II rowsort
 24345  24376   SELECT DISTINCT 96 col2, col2 AS col2 FROM tab0
 24346  24377   ----
 24347  24378   96
 24348  24379   10
 24349  24380   96
 24350  24381   47
................................................................................
 24928  24959   query II rowsort label-2721
 24929  24960   SELECT MAX( - - col0 ) col1, + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE + 63 NOT BETWEEN - col1 * - 73 AND + - col0
 24930  24961   ----
 24931  24962   97
 24932  24963   9
 24933  24964   
 24934  24965   skipif mysql # not compatible
        24966  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24935  24967   query II rowsort label-2721
 24936  24968   SELECT MAX ( - - col0 ) col1, + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE + 63 NOT BETWEEN - col1 * - 73 AND + - col0
 24937  24969   ----
 24938  24970   97
 24939  24971   9
 24940  24972   
 24941  24973   query I rowsort
................................................................................
 25866  25898   0
 25867  25899   NULL
 25868  25900   0
 25869  25901   NULL
 25870  25902   0
 25871  25903   
 25872  25904   skipif mysql # not compatible
        25905  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25873  25906   query II rowsort label-2821
 25874  25907   SELECT - CAST ( NULL AS INTEGER ) col1, col0 + - col0 FROM tab0
 25875  25908   ----
 25876  25909   NULL
 25877  25910   0
 25878  25911   NULL
 25879  25912   0
................................................................................
 26969  27002   
 26970  27003   skipif mysql # not compatible
 26971  27004   query I rowsort label-2944
 26972  27005   SELECT - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
 26973  27006   ----
 26974  27007   NULL
 26975  27008   
        27009  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 26976  27010   query II rowsort
 26977  27011   SELECT ALL - col0 + - col2 col0, col0 AS col1 FROM tab2
 26978  27012   ----
 26979  27013   -104
 26980  27014   64
 26981  27015   -133
 26982  27016   75
................................................................................
 27291  27325   -43
 27292  27326   
 27293  27327   query IIIIII rowsort
 27294  27328   SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT 81 IS NOT NULL
 27295  27329   ----
 27296  27330   18 values hashing to 18b19f89ce73392082a69acc4aed78f1
 27297  27331   
        27332  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27298  27333   query II rowsort
 27299  27334   SELECT - 15 + col1 col2, 89 FROM tab0 AS cor0
 27300  27335   ----
 27301  27336   -14
 27302  27337   89
 27303  27338   6
 27304  27339   89
................................................................................
 27747  27782   query I rowsort
 27748  27783   SELECT ALL col1 * + 83 FROM tab2
 27749  27784   ----
 27750  27785   4233
 27751  27786   5561
 27752  27787   6391
 27753  27788   
        27789  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27754  27790   query II rowsort
 27755  27791   SELECT - col1 col0, 52 FROM tab0 AS cor0
 27756  27792   ----
 27757  27793   -1
 27758  27794   52
 27759  27795   -21
 27760  27796   52
................................................................................
 27927  27963   ----
 27928  27964   -223
 27929  27965   
 27930  27966   query III rowsort
 27931  27967   SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 72
 27932  27968   ----
 27933  27969   
        27970  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27934  27971   query II rowsort
 27935  27972   SELECT + + col2 col1, 75 FROM tab2 AS cor0
 27936  27973   ----
 27937  27974   23
 27938  27975   75
 27939  27976   40
 27940  27977   75
................................................................................
 28371  28408   
 28372  28409   skipif mysql # not compatible
 28373  28410   query I rowsort label-3102
 28374  28411   SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
 28375  28412   ----
 28376  28413   NULL
 28377  28414   
        28415  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28378  28416   query II rowsort
 28379  28417   SELECT ALL 72 col0, col0 + - - col2 FROM tab1
 28380  28418   ----
 28381  28419   72
 28382  28420   144
 28383  28421   72
 28384  28422   147
................................................................................
 28952  28990   
 28953  28991   skipif mysql # not compatible
 28954  28992   query I rowsort label-3164
 28955  28993   SELECT COUNT ( * ) / - 85 FROM tab1
 28956  28994   ----
 28957  28995   0
 28958  28996   
        28997  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28959  28998   query II rowsort
 28960  28999   SELECT - 43 col0, - col0 - + col0 FROM tab1
 28961  29000   ----
 28962  29001   -43
 28963  29002   -102
 28964  29003   -43
 28965  29004   -170
................................................................................
 29399  29438   query I rowsort
 29400  29439   SELECT ( + col1 ) + + col2 * col0 * - - 95 FROM tab2
 29401  29440   ----
 29402  29441   100561
 29403  29442   243277
 29404  29443   413317
 29405  29444   
        29445  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29406  29446   query II rowsort
 29407  29447   SELECT DISTINCT + 51 * col0 col0, - 25 AS col2 FROM tab2
 29408  29448   ----
 29409  29449   2346
 29410  29450   -25
 29411  29451   3264
 29412  29452   -25
................................................................................
 29589  29629   query I rowsort label-3239
 29590  29630   SELECT - - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT + - col2 IS NULL
 29591  29631   ----
 29592  29632   NULL
 29593  29633   NULL
 29594  29634   NULL
 29595  29635   
        29636  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29596  29637   query II rowsort
 29597  29638   SELECT ALL + col0 col0, + 23 FROM tab0
 29598  29639   ----
 29599  29640   15
 29600  29641   23
 29601  29642   87
 29602  29643   23
................................................................................
 29825  29866   13
 29826  29867   5
 29827  29868   
 29828  29869   query III rowsort
 29829  29870   SELECT * FROM tab1 AS cor0 WHERE col1 * ( ( + col1 ) ) = 88
 29830  29871   ----
 29831  29872   
        29873  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 29832  29874   query II rowsort
 29833  29875   SELECT 1 col1, 67 AS col2 FROM tab0
 29834  29876   ----
 29835  29877   1
 29836  29878   67
 29837  29879   1
 29838  29880   67
................................................................................
 32075  32117   query I rowsort
 32076  32118   SELECT DISTINCT + col1 * + - col1 AS col1 FROM tab1 AS cor0
 32077  32119   ----
 32078  32120   -196
 32079  32121   -2209
 32080  32122   -25
 32081  32123   
        32124  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32082  32125   query II rowsort
 32083  32126   SELECT ALL ( + + ( - + col0 ) ) col0, col2 AS col1 FROM tab1 AS cor0
 32084  32127   ----
 32085  32128   -51
 32086  32129   96
 32087  32130   -85
 32088  32131   59
................................................................................
 32775  32818   query I rowsort label-3593
 32776  32819   SELECT + + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
 32777  32820   ----
 32778  32821   NULL
 32779  32822   NULL
 32780  32823   NULL
 32781  32824   
        32825  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 32782  32826   query II rowsort
 32783  32827   SELECT DISTINCT - 89 col1, - col2 AS col2 FROM tab1 AS cor0
 32784  32828   ----
 32785  32829   -89
 32786  32830   -59
 32787  32831   -89
 32788  32832   -68
................................................................................
 33646  33690   
 33647  33691   skipif mysql # not compatible
 33648  33692   query I rowsort label-3683
 33649  33693   SELECT + MIN ( DISTINCT 10 ) AS col1 FROM tab0 WHERE NULL < NULL
 33650  33694   ----
 33651  33695   NULL
 33652  33696   
        33697  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 33653  33698   query II rowsort
 33654  33699   SELECT - 24 col2, + 37 - - col2 + + col2 FROM tab1
 33655  33700   ----
 33656  33701   -24
 33657  33702   155
 33658  33703   -24
 33659  33704   173
................................................................................
 34355  34400   97
 34356  34401   32
 34357  34402   15
 34358  34403   55
 34359  34404   87
 34360  34405   
 34361  34406   skipif mysql # not compatible
        34407  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 34362  34408   query II rowsort label-3752
 34363  34409   SELECT DISTINCT col2 - + - CAST ( - + col1 AS INTEGER ) + + 66 col2, ( col0 ) FROM tab0
 34364  34410   ----
 34365  34411   164
 34366  34412   97
 34367  34413   32
 34368  34414   15
................................................................................
 35901  35947   47
 35902  35948   5
 35903  35949   
 35904  35950   query I rowsort
 35905  35951   SELECT - + col0 + 66 FROM tab0 AS cor0 WHERE NOT 3 / + 34 <= NULL
 35906  35952   ----
 35907  35953   
        35954  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35908  35955   query II rowsort
 35909  35956   SELECT DISTINCT - col1 + col2 col1, + col0 * + col2 + + + 14 AS col1 FROM tab0 cor0
 35910  35957   ----
 35911  35958   -11
 35912  35959   884
 35913  35960   -34
 35914  35961   719
................................................................................
 35948  35995   query I rowsort
 35949  35996   SELECT 66 + - col2 * + + col1 AS col2 FROM tab1
 35950  35997   ----
 35951  35998   -1278
 35952  35999   -229
 35953  36000   -3130
 35954  36001   
        36002  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35955  36003   query II rowsort
 35956  36004   SELECT DISTINCT + + col1 col2, col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
 35957  36005   ----
 35958  36006   
 35959  36007   query II rowsort
 35960  36008   SELECT DISTINCT - col1 + + 17 + + - col2 AS col1, - col0 + 74 - col1 FROM tab0 AS cor0
 35961  36009   ----
................................................................................
 36477  36525   -961
 36478  36526   40
 36479  36527   -2437
 36480  36528   58
 36481  36529   -4237
 36482  36530   
 36483  36531   skipif mysql # not compatible
        36532  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 36484  36533   query II rowsort label-4003
 36485  36534   SELECT + col2 col0, + 46 + - - col1 + CAST ( - - col0 AS INTEGER ) * - col2 FROM tab2
 36486  36535   ----
 36487  36536   23
 36488  36537   -961
 36489  36538   40
 36490  36539   -2437
................................................................................
 37003  37052   0
 37004  37053   10
 37005  37054   0
 37006  37055   10
 37007  37056   0
 37008  37057   10
 37009  37058   
        37059  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37010  37060   query II rowsort
 37011  37061   SELECT - col0 col1, - col2 AS col0 FROM tab1 AS cor0
 37012  37062   ----
 37013  37063   -51
 37014  37064   -96
 37015  37065   -85
 37016  37066   -59
................................................................................
 37048  37098   NULL
 37049  37099   -2400
 37050  37100   NULL
 37051  37101   -3480
 37052  37102   NULL
 37053  37103   
 37054  37104   skipif mysql # not compatible
        37105  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 37055  37106   query II rowsort label-4065
 37056  37107   SELECT ALL - 60 * + col2 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
 37057  37108   ----
 37058  37109   -1380
 37059  37110   NULL
 37060  37111   -2400
 37061  37112   NULL
................................................................................
 38011  38062   22
 38012  38063   23
 38013  38064   22
 38014  38065   40
 38015  38066   22
 38016  38067   58
 38017  38068   
        38069  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38018  38070   query II rowsort
 38019  38071   SELECT DISTINCT col2 col2, + 4 FROM tab2
 38020  38072   ----
 38021  38073   23
 38022  38074   4
 38023  38075   40
 38024  38076   4
................................................................................
 38490  38542   query II rowsort label-4216
 38491  38543   SELECT + + COUNT( * ) col0, 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
 38492  38544   ----
 38493  38545   9
 38494  38546   24
 38495  38547   
 38496  38548   skipif mysql # not compatible
        38549  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38497  38550   query II rowsort label-4216
 38498  38551   SELECT + + COUNT ( * ) col0, 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
 38499  38552   ----
 38500  38553   9
 38501  38554   24
 38502  38555   
 38503  38556   query I rowsort
................................................................................
 38879  38932   359
 38880  38933   
 38881  38934   query I rowsort
 38882  38935   SELECT - col0 FROM tab0 AS cor0 WHERE col1 < + col2
 38883  38936   ----
 38884  38937   -97
 38885  38938   
        38939  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38886  38940   query II rowsort
 38887  38941   SELECT - - 0 + - col1 col0, - col1 + col0 + + col0 * + 68 + - - col2 AS col1 FROM tab2 AS cor0
 38888  38942   ----
 38889  38943   -51
 38890  38944   3146
 38891  38945   -67
 38892  38946   5166
................................................................................
 39417  39471   query I rowsort label-4320
 39418  39472   SELECT ALL - 67 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
 39419  39473   ----
 39420  39474   NULL
 39421  39475   NULL
 39422  39476   NULL
 39423  39477   
        39478  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39424  39479   query II rowsort
 39425  39480   SELECT 75 col2, + col0 * + 89 FROM tab1 AS cor0
 39426  39481   ----
 39427  39482   75
 39428  39483   4539
 39429  39484   75
 39430  39485   7565
................................................................................
 39581  39636   query II rowsort label-4337
 39582  39637   SELECT MIN( - col0 ) col2, 17 AS col1 FROM tab2 AS cor0
 39583  39638   ----
 39584  39639   -75
 39585  39640   17
 39586  39641   
 39587  39642   skipif mysql # not compatible
        39643  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39588  39644   query II rowsort label-4337
 39589  39645   SELECT MIN ( - col0 ) col2, 17 AS col1 FROM tab2 AS cor0
 39590  39646   ----
 39591  39647   -75
 39592  39648   17
 39593  39649   
 39594  39650   query III rowsort
................................................................................
 40664  40720   0
 40665  40721   150
 40666  40722   0
 40667  40723   92
 40668  40724   0
 40669  40725   
 40670  40726   skipif mysql # not compatible
        40727  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 40671  40728   query II rowsort label-4456
 40672  40729   SELECT ALL + col0 + col0 col2, col2 / - col0 AS col2 FROM tab2
 40673  40730   ----
 40674  40731   128
 40675  40732   0
 40676  40733   150
 40677  40734   0
................................................................................
 40905  40962   SELECT - - CAST ( - col0 AS REAL ) AS col0 FROM tab1 WHERE NULL <= NULL
 40906  40963   ----
 40907  40964   
 40908  40965   query I rowsort
 40909  40966   SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
 40910  40967   ----
 40911  40968   
        40969  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 40912  40970   query II rowsort
 40913  40971   SELECT DISTINCT ( - col1 ) col2, + col0 AS col0 FROM tab2 AS cor0
 40914  40972   ----
 40915  40973   -51
 40916  40974   46
 40917  40975   -67
 40918  40976   75
................................................................................
 41208  41266   query I rowsort
 41209  41267   SELECT ALL - col1 * + - ( 12 ) - - 41 * - col1 * - col1 FROM tab0 AS cor0
 41210  41268   ----
 41211  41269   18333
 41212  41270   269973
 41213  41271   53
 41214  41272   
        41273  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41215  41274   query II rowsort
 41216  41275   SELECT + 85 col2, - ( + col1 ) FROM tab2 cor0
 41217  41276   ----
 41218  41277   85
 41219  41278   -51
 41220  41279   85
 41221  41280   -67
................................................................................
 42540  42599   
 42541  42600   skipif mysql # not compatible
 42542  42601   query I rowsort label-4656
 42543  42602   SELECT DISTINCT + - COUNT ( * ) * - 44 FROM tab0 WHERE + 23 <> + 87 + col2 * 38
 42544  42603   ----
 42545  42604   132
 42546  42605   
        42606  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42547  42607   query II rowsort
 42548  42608   SELECT col1 + col1 - col0 + - - ( + + col1 ) col0, 59 * - 79 FROM tab1 WHERE NULL IS NOT NULL
 42549  42609   ----
 42550  42610   
 42551  42611   query I rowsort
 42552  42612   SELECT DISTINCT ( - - col1 ) FROM tab0 WHERE NOT - col0 IS NULL
 42553  42613   ----
................................................................................
 42898  42958   ----
 42899  42959   NULL
 42900  42960   
 42901  42961   query III rowsort
 42902  42962   SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND NULL
 42903  42963   ----
 42904  42964   
        42965  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42905  42966   query II rowsort
 42906  42967   SELECT + col2 * - 59 col2, + 48 FROM tab0 AS cor0
 42907  42968   ----
 42908  42969   -2773
 42909  42970   48
 42910  42971   -5841
 42911  42972   48
................................................................................
 43484  43545   1
 43485  43546   78
 43486  43547   2
 43487  43548   78
 43488  43549   3
 43489  43550   
 43490  43551   skipif mysql # not compatible
        43552  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43491  43553   query II rowsort label-4757
 43492  43554   SELECT 78 col0, ( + 88 ) / col2 FROM tab2 AS cor0
 43493  43555   ----
 43494  43556   78
 43495  43557   1
 43496  43558   78
 43497  43559   2
................................................................................
 43998  44060   -1
 43999  44061   -34
 44000  44062   -2
 44001  44063   -34
 44002  44064   0
 44003  44065   
 44004  44066   skipif mysql # not compatible
        44067  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 44005  44068   query II rowsort label-4816
 44006  44069   SELECT + - 34 col2, 46 / - col2 FROM tab2 AS cor0
 44007  44070   ----
 44008  44071   -34
 44009  44072   -1
 44010  44073   -34
 44011  44074   -2
................................................................................
 45578  45641   
 45579  45642   skipif mysql # not compatible
 45580  45643   query I rowsort label-4978
 45581  45644   SELECT ( MAX ( DISTINCT - - ( - col0 ) ) ) FROM tab1
 45582  45645   ----
 45583  45646   -51
 45584  45647   
        45648  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45585  45649   query II rowsort
 45586  45650   SELECT + col1 col1, + col0 + - 13 FROM tab2
 45587  45651   ----
 45588  45652   51
 45589  45653   33
 45590  45654   67
 45591  45655   62
................................................................................
 45800  45864   NULL
 45801  45865   40
 45802  45866   NULL
 45803  45867   58
 45804  45868   NULL
 45805  45869   
 45806  45870   skipif mysql # not compatible
        45871  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 45807  45872   query II rowsort label-5003
 45808  45873   SELECT DISTINCT col2 col2, CAST ( NULL AS INTEGER ) FROM tab2
 45809  45874   ----
 45810  45875   23
 45811  45876   NULL
 45812  45877   40
 45813  45878   NULL
................................................................................
 46327  46392   
 46328  46393   skipif mysql # not compatible
 46329  46394   query I rowsort label-5060
 46330  46395   SELECT DISTINCT ( - 47 ) * COUNT ( * ) AS col2 FROM tab0
 46331  46396   ----
 46332  46397   -141
 46333  46398   
        46399  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46334  46400   query II rowsort
 46335  46401   SELECT ALL + 0 * + col0 * + - col0 col0, + col2 FROM tab0
 46336  46402   ----
 46337  46403   0
 46338  46404   10
 46339  46405   0
 46340  46406   47
................................................................................
 46587  46653   19
 46588  46654   NULL
 46589  46655   19
 46590  46656   NULL
 46591  46657   19
 46592  46658   
 46593  46659   skipif mysql # not compatible
        46660  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46594  46661   query II rowsort label-5089
 46595  46662   SELECT + - CAST ( NULL AS INTEGER ) col1, - 33 + 52 FROM tab0 AS cor0
 46596  46663   ----
 46597  46664   NULL
 46598  46665   19
 46599  46666   NULL
 46600  46667   19
................................................................................
 47925  47992   31
 47926  47993   67
 47927  47994   31
 47928  47995   77
 47929  47996   31
 47930  47997   
 47931  47998   skipif mysql # not compatible
        47999  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47932  48000   query II rowsort label-5233
 47933  48001   SELECT + col1 col1, CAST ( + 31 AS INTEGER ) FROM tab2 AS cor0
 47934  48002   ----
 47935  48003   51
 47936  48004   31
 47937  48005   67
 47938  48006   31
................................................................................
 48149  48217   
 48150  48218   skipif mysql # not compatible
 48151  48219   query I rowsort label-5256
 48152  48220   SELECT DISTINCT + AVG ( - 82 ) * - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) / 47 FROM tab1 WHERE col0 IS NULL
 48153  48221   ----
 48154  48222   NULL
 48155  48223   
        48224  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48156  48225   query II rowsort
 48157  48226   SELECT 99 col2, - col0 * + 51 * col1 FROM tab2 WHERE NOT + 65 * - - col1 IS NOT NULL
 48158  48227   ----
 48159  48228   
 48160  48229   onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
 48161  48230   query III rowsort label-5258
 48162  48231   SELECT DISTINCT - CAST( - 75 AS SIGNED ), COUNT( * ) + + - ( - COUNT( * ) ) AS col0, ( - + 54 ) AS col0 FROM tab2
................................................................................
 48296  48365   NULL
 48297  48366   24
 48298  48367   NULL
 48299  48368   24
 48300  48369   NULL
 48301  48370   24
 48302  48371   
        48372  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48303  48373   query II rowsort
 48304  48374   SELECT col1 col0, col2 AS col2 FROM tab0
 48305  48375   ----
 48306  48376   1
 48307  48377   99
 48308  48378   21
 48309  48379   10
................................................................................
 48621  48691   -1469
 48622  48692   -5225
 48623  48693   -2774
 48624  48694   -5225
 48625  48695   -4283
 48626  48696   
 48627  48697   skipif mysql # not compatible
        48698  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48628  48699   query II rowsort label-5305
 48629  48700   SELECT 95 * - 55 col2, CAST ( - CAST ( + + 42 AS INTEGER ) AS INTEGER ) * - col1 + + + 25 + col2 * - 51 FROM tab1
 48630  48701   ----
 48631  48702   -5225
 48632  48703   -1469
 48633  48704   -5225
 48634  48705   -2774
................................................................................
 48916  48987   query II rowsort label-5341
 48917  48988   SELECT ALL COUNT( * ) col0, 87 FROM tab0
 48918  48989   ----
 48919  48990   3
 48920  48991   87
 48921  48992   
 48922  48993   skipif mysql # not compatible
        48994  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48923  48995   query II rowsort label-5341
 48924  48996   SELECT ALL COUNT ( * ) col0, 87 FROM tab0
 48925  48997   ----
 48926  48998   3
 48927  48999   87
 48928  49000   
 48929  49001   onlyif mysql # aggregate syntax: 
................................................................................
 49098  49170   ----
 49099  49171   0
 49100  49172   40
 49101  49173   1
 49102  49174   40
 49103  49175   
 49104  49176   skipif mysql # not compatible
        49177  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49105  49178   query II rowsort label-5361
 49106  49179   SELECT DISTINCT 28 / + col2 col0, + 40 AS col1 FROM tab2
 49107  49180   ----
 49108  49181   0
 49109  49182   40
 49110  49183   1
 49111  49184   40
................................................................................
 50069  50142   
 50070  50143   skipif mysql # not compatible
 50071  50144   query I rowsort label-5461
 50072  50145   SELECT ALL - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
 50073  50146   ----
 50074  50147   NULL
 50075  50148   
        50149  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50076  50150   query II rowsort
 50077  50151   SELECT 22 + 24 col2, col1 + + 21 FROM tab1 AS cor0
 50078  50152   ----
 50079  50153   46
 50080  50154   26
 50081  50155   46
 50082  50156   35
................................................................................
 50322  50396   query I rowsort label-5491
 50323  50397   SELECT ALL - col2 * + - col0 + - ( - CAST ( NULL AS INTEGER ) ) + - col1 - - col0 FROM tab0 AS cor0
 50324  50398   ----
 50325  50399   NULL
 50326  50400   NULL
 50327  50401   NULL
 50328  50402   
        50403  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50329  50404   query II rowsort
 50330  50405   SELECT DISTINCT + ( + col2 ) col2, - col2 * - + col2 + - 21 FROM tab0 AS cor0 WHERE NOT col1 / + + 15 * col0 IN ( + - col2, + col0 * + + col1 + - + col2 * + col2 * col2 * + col1 + + - 48 )
 50331  50406   ----
 50332  50407   10
 50333  50408   79
 50334  50409   47
 50335  50410   2188
................................................................................
 50805  50880   query I rowsort
 50806  50881   SELECT 90 FROM tab0 WHERE NOT + 64 IS NULL
 50807  50882   ----
 50808  50883   90
 50809  50884   90
 50810  50885   90
 50811  50886   
        50887  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 50812  50888   query II rowsort
 50813  50889   SELECT + 84 col0, col1 AS col2 FROM tab2
 50814  50890   ----
 50815  50891   84
 50816  50892   51
 50817  50893   84
 50818  50894   67
................................................................................
 53025  53101   
 53026  53102   skipif mysql # not compatible
 53027  53103   query I rowsort label-5790
 53028  53104   SELECT - 9 * - - COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0
 53029  53105   ----
 53030  53106   -27
 53031  53107   
        53108  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53032  53109   query II rowsort
 53033  53110   SELECT ALL col1 col1, col0 FROM tab2 cor0
 53034  53111   ----
 53035  53112   51
 53036  53113   46
 53037  53114   67
 53038  53115   75
................................................................................
 53402  53479   query I rowsort
 53403  53480   SELECT ALL - + col2 * - + col0 + - - col2 AS col1 FROM tab2 cor0
 53404  53481   ----
 53405  53482   1081
 53406  53483   2600
 53407  53484   4408
 53408  53485   
        53486  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53409  53487   query II rowsort
 53410  53488   SELECT ( col2 ) col2, col1 + - col0 FROM tab1 AS cor0
 53411  53489   ----
 53412  53490   59
 53413  53491   -80
 53414  53492   68
 53415  53493   -44
................................................................................
 53830  53908   0
 53831  53909   NULL
 53832  53910   1
 53833  53911   NULL
 53834  53912   3
 53835  53913   
 53836  53914   skipif mysql # not compatible
        53915  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53837  53916   query II rowsort label-5878
 53838  53917   SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + 47 * CAST ( NULL AS INTEGER ) col1, col2 / + col0 FROM tab0 AS cor0
 53839  53918   ----
 53840  53919   NULL
 53841  53920   0
 53842  53921   NULL
 53843  53922   1
................................................................................
 53888  53967   query I rowsort
 53889  53968   SELECT DISTINCT col2 * + col0 * col2 AS col1 FROM tab1
 53890  53969   ----
 53891  53970   295885
 53892  53971   420784
 53893  53972   470016
 53894  53973   
        53974  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 53895  53975   query II rowsort
 53896  53976   SELECT DISTINCT col0 * 39 col1, 84 FROM tab0
 53897  53977   ----
 53898  53978   3393
 53899  53979   84
 53900  53980   3783
 53901  53981   84
................................................................................
 55726  55806   -51
 55727  55807   48
 55728  55808   -67
 55729  55809   48
 55730  55810   -77
 55731  55811   48
 55732  55812   
        55813  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 55733  55814   query II rowsort
 55734  55815   SELECT DISTINCT + col2 col2, - 84 + + 20 FROM tab0
 55735  55816   ----
 55736  55817   10
 55737  55818   -64
 55738  55819   47
 55739  55820   -64
................................................................................
 57748  57829   -15
 57749  57830   1
 57750  57831   -24
 57751  57832   1
 57752  57833   -52
 57753  57834   
 57754  57835   skipif mysql # not compatible
        57836  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57755  57837   query II rowsort label-6311
 57756  57838   SELECT DISTINCT 72 / + 48 col2, - col2 + + 44 FROM tab1
 57757  57839   ----
 57758  57840   1
 57759  57841   -15
 57760  57842   1
 57761  57843   -24
................................................................................
 58694  58776   -14
 58695  58777   47
 58696  58778   -47
 58697  58779   5
 58698  58780   -5
 58699  58781   
 58700  58782   skipif mysql # not compatible
        58783  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58701  58784   query II rowsort label-6411
 58702  58785   SELECT ALL + col1 col0, + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
 58703  58786   ----
 58704  58787   14
 58705  58788   -14
 58706  58789   47
 58707  58790   -47
................................................................................
 59676  59759   query II rowsort label-6515
 59677  59760   SELECT ALL - COUNT( * ) col1, 94 AS col2 FROM tab0
 59678  59761   ----
 59679  59762   -3
 59680  59763   94
 59681  59764   
 59682  59765   skipif mysql # not compatible
        59766  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 59683  59767   query II rowsort label-6515
 59684  59768   SELECT ALL - COUNT ( * ) col1, 94 AS col2 FROM tab0
 59685  59769   ----
 59686  59770   -3
 59687  59771   94
 59688  59772   
 59689  59773   query IIIIII rowsort
................................................................................
 60337  60421   NULL
 60338  60422   85
 60339  60423   NULL
 60340  60424   91
 60341  60425   NULL
 60342  60426   
 60343  60427   skipif mysql # not compatible
        60428  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60344  60429   query II rowsort label-6588
 60345  60430   SELECT ALL col0 col0, 22 * - ( + - ( - CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0
 60346  60431   ----
 60347  60432   51
 60348  60433   NULL
 60349  60434   85
 60350  60435   NULL
................................................................................
 62367  62452   query I rowsort
 62368  62453   SELECT + 81 * + col0 col0 FROM tab1
 62369  62454   ----
 62370  62455   4131
 62371  62456   6885
 62372  62457   7371
 62373  62458   
        62459  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 62374  62460   query II rowsort
 62375  62461   SELECT col0 col1, col0 AS col1 FROM tab2
 62376  62462   ----
 62377  62463   46
 62378  62464   46
 62379  62465   64
 62380  62466   64
................................................................................
 63906  63992   query I rowsort
 63907  63993   SELECT ALL + - 4 * + + 97 + + + col1 col0 FROM tab0 AS cor0
 63908  63994   ----
 63909  63995   -307
 63910  63996   -367
 63911  63997   -387
 63912  63998   
        63999  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63913  64000   query II rowsort
 63914  64001   SELECT DISTINCT 75 col1, - col0 FROM tab2 AS cor0
 63915  64002   ----
 63916  64003   75
 63917  64004   -46
 63918  64005   75
 63919  64006   -64
................................................................................
 66657  66744   
 66658  66745   query II rowsort
 66659  66746   SELECT DISTINCT - 95, + col0 + - col0 AS col1 FROM tab1 AS cor0
 66660  66747   ----
 66661  66748   -95
 66662  66749   0
 66663  66750   
        66751  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 66664  66752   query II rowsort
 66665  66753   SELECT + col0 col1, col2 FROM tab2 AS cor0
 66666  66754   ----
 66667  66755   46
 66668  66756   23
 66669  66757   64
 66670  66758   40
................................................................................
 71203  71291   query II rowsort label-7817
 71204  71292   SELECT ALL - 72 + + - SUM( ALL - col0 ) col0, + COUNT( - ( + col1 ) ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
 71205  71293   ----
 71206  71294   127
 71207  71295   9
 71208  71296   
 71209  71297   skipif mysql # not compatible
        71298  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71210  71299   query II rowsort label-7817
 71211  71300   SELECT ALL - 72 + + - SUM ( ALL - col0 ) col0, + COUNT ( - ( + col1 ) ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
 71212  71301   ----
 71213  71302   127
 71214  71303   9
 71215  71304   
 71216  71305   query I rowsort
................................................................................
 71788  71877   query II rowsort label-7883
 71789  71878   SELECT ( + COUNT( * ) ) col0, COUNT( * ) * + - 45 AS col2 FROM tab0
 71790  71879   ----
 71791  71880   3
 71792  71881   -135
 71793  71882   
 71794  71883   skipif mysql # not compatible
        71884  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 71795  71885   query II rowsort label-7883
 71796  71886   SELECT ( + COUNT ( * ) ) col0, COUNT ( * ) * + - 45 AS col2 FROM tab0
 71797  71887   ----
 71798  71888   3
 71799  71889   -135
 71800  71890   
 71801  71891   onlyif mysql # aggregate syntax: 
................................................................................
 72367  72457   -3539
 72368  72458   21
 72369  72459   -3949
 72370  72460   1
 72371  72461   -587
 72372  72462   81
 72373  72463   
        72464  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 72374  72465   query II rowsort
 72375  72466   SELECT DISTINCT + + 29 col2, ( - 80 ) FROM tab1 AS cor0 WHERE - col1 IS NULL
 72376  72467   ----
 72377  72468   
 72378  72469   query I rowsort
 72379  72470   SELECT ALL + 83 FROM tab1, tab1 cor0
 72380  72471   ----
................................................................................
 74374  74465   query II rowsort label-8177
 74375  74466   SELECT ALL 22 * COUNT( * ) + - + COUNT( * ) col1, + 99 FROM tab1 AS cor0
 74376  74467   ----
 74377  74468   63
 74378  74469   99
 74379  74470   
 74380  74471   skipif mysql # not compatible
        74472  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74381  74473   query II rowsort label-8177
 74382  74474   SELECT ALL 22 * COUNT ( * ) + - + COUNT ( * ) col1, + 99 FROM tab1 AS cor0
 74383  74475   ----
 74384  74476   63
 74385  74477   99
 74386  74478   
 74387  74479   query III rowsort
 74388  74480   SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - col2 + 43
 74389  74481   ----
 74390  74482   
        74483  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 74391  74484   query II rowsort
 74392  74485   SELECT DISTINCT col0 - + col2 * + 49 + - - 79 col0, col2 FROM tab2
 74393  74486   ----
 74394  74487   -1002
 74395  74488   23
 74396  74489   -1817
 74397  74490   40
................................................................................
 75023  75116   
 75024  75117   skipif postgresql # PostgreSQL requires AS when renaming output columns
 75025  75118   query I rowsort
 75026  75119   SELECT DISTINCT ( 13 ) col0 FROM tab0
 75027  75120   ----
 75028  75121   13
 75029  75122   
        75123  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75030  75124   query II rowsort
 75031  75125   SELECT col0 * + - 69 col2, col2 FROM tab2
 75032  75126   ----
 75033  75127   -3174
 75034  75128   23
 75035  75129   -4416
 75036  75130   40
................................................................................
 75142  75236   query II rowsort label-8261
 75143  75237   SELECT + COUNT( + ( + 8 ) ) col0, - COUNT( * ) AS col0 FROM tab0
 75144  75238   ----
 75145  75239   3
 75146  75240   -3
 75147  75241   
 75148  75242   skipif mysql # not compatible
        75243  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75149  75244   query II rowsort label-8261
 75150  75245   SELECT + COUNT ( + ( + 8 ) ) col0, - COUNT ( * ) AS col0 FROM tab0
 75151  75246   ----
 75152  75247   3
 75153  75248   -3
 75154  75249   
 75155  75250   query I rowsort
................................................................................
 75261  75356   query I rowsort
 75262  75357   SELECT DISTINCT - + 89 * col2 FROM tab2 AS cor0
 75263  75358   ----
 75264  75359   -2047
 75265  75360   -3560
 75266  75361   -5162
 75267  75362   
        75363  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75268  75364   query II rowsort
 75269  75365   SELECT DISTINCT - col1 col1, col1 * col0 * + - col0 FROM tab2
 75270  75366   ----
 75271  75367   -51
 75272  75368   -107916
 75273  75369   -67
 75274  75370   -376875
................................................................................
 75287  75383   -2574
 75288  75384   -260
 75289  75385   
 75290  75386   query III rowsort
 75291  75387   SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * col0, col0 * + col2 )
 75292  75388   ----
 75293  75389   
        75390  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 75294  75391   query II rowsort
 75295  75392   SELECT - - 37 col0, - 10 FROM tab0 cor0
 75296  75393   ----
 75297  75394   37
 75298  75395   -10
 75299  75396   37
 75300  75397   -10
................................................................................
 76015  76112   ----
 76016  76113   34
 76017  76114   
 76018  76115   query III rowsort
 76019  76116   SELECT DISTINCT * FROM tab1 WHERE - 35 = NULL
 76020  76117   ----
 76021  76118   
        76119  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76022  76120   query II rowsort
 76023  76121   SELECT DISTINCT 6 col0, + col1 AS col0 FROM tab1
 76024  76122   ----
 76025  76123   6
 76026  76124   14
 76027  76125   6
 76028  76126   47
................................................................................
 76762  76860   ----
 76763  76861   
 76764  76862   skipif mysql # not compatible
 76765  76863   query III rowsort label-8445
 76766  76864   SELECT * FROM tab0 cor0 WHERE NOT + col2 / - + 36 + - 49 NOT IN ( + CAST ( NULL AS INTEGER ), 22, - col1 )
 76767  76865   ----
 76768  76866   
        76867  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 76769  76868   query II rowsort
 76770  76869   SELECT DISTINCT + - col1 col2, col1 FROM tab2 AS cor0
 76771  76870   ----
 76772  76871   -51
 76773  76872   51
 76774  76873   -67
 76775  76874   67
................................................................................
 78386  78485   1615
 78387  78486   -61
 78388  78487   1729
 78389  78488   -61
 78390  78489   969
 78391  78490   -61
 78392  78491   
        78492  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78393  78493   query II rowsort
 78394  78494   SELECT DISTINCT + col0 col2, - col2 FROM tab0 AS cor0
 78395  78495   ----
 78396  78496   15
 78397  78497   -47
 78398  78498   87
 78399  78499   -10
 78400  78500   97
 78401  78501   -99
 78402  78502   
        78503  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78403  78504   query II rowsort
 78404  78505   SELECT DISTINCT + col1 col1, col1 * - + col1 * col0 AS col1 FROM tab2 AS cor0
 78405  78506   ----
 78406  78507   51
 78407  78508   -119646
 78408  78509   67
 78409  78510   -336675
................................................................................
 78411  78512   -379456
 78412  78513   
 78413  78514   query I rowsort
 78414  78515   SELECT ALL - 21 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
 78415  78516   ----
 78416  78517   9 values hashing to 631fbd1fd929405aba54a22c2a06c757
 78417  78518   
        78519  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78418  78520   query II rowsort
 78419  78521   SELECT DISTINCT - 74 col2, - ( col1 ) * - + 57 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
 78420  78522   ----
 78421  78523   
 78422  78524   query III rowsort
 78423  78525   SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 95 * col2 + + - col0 + - - 29 + - - col1 AND col1
 78424  78526   ----
................................................................................
 78740  78842   SELECT col1 FROM tab0 AS cor0 WHERE col2 > NULL
 78741  78843   ----
 78742  78844   
 78743  78845   query III rowsort
 78744  78846   SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + + col0 IS NULL
 78745  78847   ----
 78746  78848   
        78849  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78747  78850   query II rowsort
 78748  78851   SELECT - col2 col2, col2 AS col2 FROM tab1 AS cor0
 78749  78852   ----
 78750  78853   -59
 78751  78854   59
 78752  78855   -68
 78753  78856   68
................................................................................
 78889  78992   query I rowsort
 78890  78993   SELECT + + 64 * + - col0 FROM tab0 AS cor0
 78891  78994   ----
 78892  78995   -5568
 78893  78996   -6208
 78894  78997   -960
 78895  78998   
        78999  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 78896  79000   query II rowsort
 78897  79001   SELECT - 70 / + col2 col2, + col1 / col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + - col2 - + + col1 AND 9
 78898  79002   ----
 78899  79003   
 78900  79004   onlyif mysql # aggregate syntax: 
 78901  79005   query I rowsort label-8686
 78902  79006   SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL >= ( - col1 ) * - - 25
................................................................................
 79150  79254   23
 79151  79255   NULL
 79152  79256   40
 79153  79257   NULL
 79154  79258   58
 79155  79259   NULL
 79156  79260   
        79261  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79157  79262   query II rowsort
 79158  79263   SELECT DISTINCT + 32 col1, 24 * - col1 + col0 AS col2 FROM tab2
 79159  79264   ----
 79160  79265   32
 79161  79266   -1178
 79162  79267   32
 79163  79268   -1533
................................................................................
 79297  79402   query I rowsort
 79298  79403   SELECT ALL - 29 * + - 53 FROM tab1
 79299  79404   ----
 79300  79405   1537
 79301  79406   1537
 79302  79407   1537
 79303  79408   
        79409  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 79304  79410   query II rowsort
 79305  79411   SELECT ALL - col0 col2, col1 FROM tab0 WHERE NULL IS NOT NULL
 79306  79412   ----
 79307  79413   
 79308  79414   onlyif mysql # aggregate syntax: 
 79309  79415   query I rowsort label-8730
 79310  79416   SELECT DISTINCT + COUNT( - col1 ) AS col1 FROM tab1
................................................................................
 80131  80237   
 80132  80238   skipif mysql # not compatible
 80133  80239   query I rowsort label-8821
 80134  80240   SELECT ALL - + COUNT ( * ) / 2 FROM tab0 cor0
 80135  80241   ----
 80136  80242   -1
 80137  80243   
        80244  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80138  80245   query II rowsort
 80139  80246   SELECT + col0 + - col0 + 65 * + 71 col0, - col0 FROM tab0 AS cor0
 80140  80247   ----
 80141  80248   4615
 80142  80249   -15
 80143  80250   4615
 80144  80251   -87
................................................................................
 80270  80377   query I rowsort
 80271  80378   SELECT ALL - ( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
 80272  80379   ----
 80273  80380   15
 80274  80381   87
 80275  80382   97
 80276  80383   
        80384  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80277  80385   query II rowsort
 80278  80386   SELECT 27 col2, + col1 FROM tab1 cor0
 80279  80387   ----
 80280  80388   27
 80281  80389   14
 80282  80390   27
 80283  80391   47
................................................................................
 80312  80420   
 80313  80421   skipif mysql # not compatible
 80314  80422   query I rowsort label-8840
 80315  80423   SELECT ALL + COUNT ( ALL - - col1 ) FROM tab0
 80316  80424   ----
 80317  80425   3
 80318  80426   
        80427  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 80319  80428   query II rowsort
 80320  80429   SELECT DISTINCT + ( - col2 ) col2, - 25 FROM tab1
 80321  80430   ----
 80322  80431   -59
 80323  80432   -25
 80324  80433   -68
 80325  80434   -25
................................................................................
 82282  82391   0
 82283  82392   -4277
 82284  82393   0
 82285  82394   -714
 82286  82395   0
 82287  82396   
 82288  82397   skipif mysql # not compatible
        82398  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 82289  82399   query II rowsort label-9056
 82290  82400   SELECT ALL + col1 * - col0 col1, col1 / + - 71 * + 32 FROM tab1
 82291  82401   ----
 82292  82402   -425
 82293  82403   0
 82294  82404   -4277
 82295  82405   0
................................................................................
 83049  83159   32
 83050  83160   65
 83051  83161   
 83052  83162   query I rowsort
 83053  83163   SELECT ALL + col0 * - - col0 + col1 FROM tab1 AS cor0 WHERE NULL >= col0
 83054  83164   ----
 83055  83165   
        83166  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83056  83167   query II rowsort
 83057  83168   SELECT DISTINCT ( - - col1 ) col1, + col0 AS col2 FROM tab1 AS cor0
 83058  83169   ----
 83059  83170   14
 83060  83171   51
 83061  83172   47
 83062  83173   91
................................................................................
 83107  83218   skipif mysql # not compatible
 83108  83219   skipif postgresql # PostgreSQL requires AS when renaming output columns
 83109  83220   query I rowsort label-9142
 83110  83221   SELECT SUM ( - col1 ) col0 FROM tab2 AS cor0
 83111  83222   ----
 83112  83223   -195
 83113  83224   
        83225  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 83114  83226   query II rowsort
 83115  83227   SELECT + 16 * - 21 col0, col1 AS col1 FROM tab0
 83116  83228   ----
 83117  83229   -336
 83118  83230   1
 83119  83231   -336
 83120  83232   21
................................................................................
 86481  86593   ----
 86482  86594   -150
 86483  86595   
 86484  86596   query I rowsort
 86485  86597   SELECT - col0 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + ( - - 54 ) ) IS NOT NULL
 86486  86598   ----
 86487  86599   
        86600  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86488  86601   query II rowsort
 86489  86602   SELECT + 92 col1, col0 AS col2 FROM tab0
 86490  86603   ----
 86491  86604   92
 86492  86605   15
 86493  86606   92
 86494  86607   87
................................................................................
 86736  86849   query II rowsort label-9529
 86737  86850   SELECT ALL + - 3 col1, + COUNT( * ) AS col2 FROM tab1 AS cor0
 86738  86851   ----
 86739  86852   -3
 86740  86853   3
 86741  86854   
 86742  86855   skipif mysql # not compatible
        86856  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86743  86857   query II rowsort label-9529
 86744  86858   SELECT ALL + - 3 col1, + COUNT ( * ) AS col2 FROM tab1 AS cor0
 86745  86859   ----
 86746  86860   -3
 86747  86861   3
 86748  86862   
 86749  86863   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 86990  87104   
 86991  87105   skipif mysql # not compatible
 86992  87106   query I rowsort label-9557
 86993  87107   SELECT 32 * - SUM ( + + ( + col2 ) ) FROM tab0
 86994  87108   ----
 86995  87109   -4992
 86996  87110   
        87111  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 86997  87112   query II rowsort
 86998  87113   SELECT 51 col1, col2 AS col1 FROM tab2
 86999  87114   ----
 87000  87115   51
 87001  87116   23
 87002  87117   51
 87003  87118   40
................................................................................
 87355  87470   0
 87356  87471   40
 87357  87472   0
 87358  87473   58
 87359  87474   0
 87360  87475   
 87361  87476   skipif mysql # not compatible
        87477  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 87362  87478   query II rowsort label-9596
 87363  87479   SELECT col2 col1, col2 / col0 FROM tab2 WHERE NOT col0 IS NULL
 87364  87480   ----
 87365  87481   23
 87366  87482   0
 87367  87483   40
 87368  87484   0
................................................................................
 90935  91051   ----
 90936  91052   -185
 90937  91053   
 90938  91054   query I rowsort
 90939  91055   SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL >= + 70 + - - 61 * - - 83 * + ( col1 )
 90940  91056   ----
 90941  91057   
        91058  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 90942  91059   query II rowsort
 90943  91060   SELECT col0 col0, 96 AS col2 FROM tab0 AS cor0
 90944  91061   ----
 90945  91062   15
 90946  91063   96
 90947  91064   87
 90948  91065   96

Changes to test/random/aggregates/slt_good_105.test.

   160    160   query I rowsort label-14
   161    161   SELECT DISTINCT ( + + col2 ) / - col0 col2 FROM tab0
   162    162   ----
   163    163   -1
   164    164   -3
   165    165   0
   166    166   
          167  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   167    168   query II rowsort
   168    169   SELECT ALL - col0 col0, col1 FROM tab0
   169    170   ----
   170    171   -15
   171    172   81
   172    173   -87
   173    174   21
................................................................................
   343    344   
   344    345   skipif mysql # not compatible
   345    346   query I rowsort label-32
   346    347   SELECT ALL CAST ( NULL AS INTEGER ) * ( COUNT ( - - col0 ) ) + 65 AS col2 FROM tab2 AS cor0
   347    348   ----
   348    349   NULL
   349    350   
          351  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   350    352   query II rowsort
   351    353   SELECT DISTINCT - + col0 - - + col2 col0, + col0 AS col1 FROM tab0 AS cor0
   352    354   ----
   353    355   -77
   354    356   87
   355    357   2
   356    358   97
................................................................................
   532    534   query I rowsort
   533    535   SELECT + ( + 35 ) AS col1 FROM tab1 AS cor0
   534    536   ----
   535    537   35
   536    538   35
   537    539   35
   538    540   
          541  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   539    542   query II rowsort
   540    543   SELECT ALL 12 col1, ( - ( + - 32 ) ) FROM tab0 AS cor0
   541    544   ----
   542    545   12
   543    546   32
   544    547   12
   545    548   32
................................................................................
   974    977   51
   975    978   2
   976    979   67
   977    980   2
   978    981   77
   979    982   2
   980    983   
          984  +skipif postgresql # PostgreSQL requires AS when renaming output columns
   981    985   query II rowsort
   982    986   SELECT ALL 60 col0, ( - 19 ) AS col0 FROM tab1
   983    987   ----
   984    988   60
   985    989   -19
   986    990   60
   987    991   -19
................................................................................
  1034   1038   1
  1035   1039   67
  1036   1040   1
  1037   1041   77
  1038   1042   1
  1039   1043   
  1040   1044   skipif mysql # not compatible
         1045  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  1041   1046   query II rowsort label-104
  1042   1047   SELECT ALL col1 col1, col0 / col0 AS col1 FROM tab2
  1043   1048   ----
  1044   1049   51
  1045   1050   1
  1046   1051   67
  1047   1052   1
................................................................................
  1736   1741   542
  1737   1742   95
  1738   1743   7018
  1739   1744   23
  1740   1745   794
  1741   1746   105
  1742   1747   
         1748  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  1743   1749   query II rowsort
  1744   1750   SELECT + col0 * - ( 26 ) + + - ( + col0 ) col1, col2 * + - col1 FROM tab0 AS cor0
  1745   1751   ----
  1746   1752   -2349
  1747   1753   -210
  1748   1754   -2619
  1749   1755   -99
................................................................................
  4864   4870   query I rowsort
  4865   4871   SELECT DISTINCT col2 FROM tab1 WHERE NOT ( 88 / col1 IS NULL )
  4866   4872   ----
  4867   4873   59
  4868   4874   68
  4869   4875   96
  4870   4876   
         4877  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  4871   4878   query II rowsort
  4872   4879   SELECT ALL col1 * col2 col2, + 54 * - + col0 AS col1 FROM tab0
  4873   4880   ----
  4874   4881   210
  4875   4882   -4698
  4876   4883   3807
  4877   4884   -810
................................................................................
  5085   5092   query I rowsort
  5086   5093   SELECT ALL + col0 * - 93 * 72 AS col1 FROM tab0 AS cor0
  5087   5094   ----
  5088   5095   -100440
  5089   5096   -582552
  5090   5097   -649512
  5091   5098   
         5099  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5092   5100   query II rowsort
  5093   5101   SELECT - 83 * - col2 col1, col1 * - + col1 * + col0 AS col1 FROM tab0
  5094   5102   ----
  5095   5103   3901
  5096   5104   -98415
  5097   5105   8217
  5098   5106   -97
................................................................................
  5379   5387   query II rowsort label-582
  5380   5388   SELECT ALL + - COUNT( * ) col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
  5381   5389   ----
  5382   5390   -3
  5383   5391   NULL
  5384   5392   
  5385   5393   skipif mysql # not compatible
         5394  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  5386   5395   query II rowsort label-582
  5387   5396   SELECT ALL + - COUNT ( * ) col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
  5388   5397   ----
  5389   5398   -3
  5390   5399   NULL
  5391   5400   
  5392   5401   query II rowsort
................................................................................
  8084   8093   query I rowsort
  8085   8094   SELECT ALL - - 51 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
  8086   8095   ----
  8087   8096   51
  8088   8097   51
  8089   8098   51
  8090   8099   
         8100  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  8091   8101   query II rowsort
  8092   8102   SELECT ALL + col2 col0, - col0 AS col1 FROM tab1 cor0
  8093   8103   ----
  8094   8104   59
  8095   8105   -85
  8096   8106   68
  8097   8107   -91
................................................................................
  8570   8580   1
  8571   8581   28
  8572   8582   1
  8573   8583   94
  8574   8584   1
  8575   8585   
  8576   8586   skipif mysql # not compatible
         8587  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  8577   8588   query II rowsort label-927
  8578   8589   SELECT col1 + - - col1 col2, - 61 / - + 42 FROM tab1 AS cor0
  8579   8590   ----
  8580   8591   10
  8581   8592   1
  8582   8593   28
  8583   8594   1
................................................................................
  9867   9878   -77
  9868   9879   0
  9869   9880   2
  9870   9881   4
  9871   9882   32
  9872   9883   
  9873   9884   skipif mysql # not compatible
         9885  +skipif postgresql # PostgreSQL requires AS when renaming output columns
  9874   9886   query II rowsort label-1062
  9875   9887   SELECT + 71 / + + col0 + 0 * + col0 * 52 col0, col2 + - col0 AS col1 FROM tab0
  9876   9888   ----
  9877   9889   0
  9878   9890   -77
  9879   9891   0
  9880   9892   2
................................................................................
 10121  10133   63
 10122  10134   61
 10123  10135   63
 10124  10136   61
 10125  10137   63
 10126  10138   
 10127  10139   skipif mysql # not compatible
        10140  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 10128  10141   query II rowsort label-1091
 10129  10142   SELECT + CAST ( 61 AS INTEGER ) col0, + ( 63 ) AS col1 FROM tab2 AS cor0
 10130  10143   ----
 10131  10144   61
 10132  10145   63
 10133  10146   61
 10134  10147   63
................................................................................
 13577  13590   28
 13578  13591   59
 13579  13592   28
 13580  13593   68
 13581  13594   28
 13582  13595   96
 13583  13596   
        13597  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 13584  13598   query II rowsort
 13585  13599   SELECT ALL + col1 col1, + 20 AS col1 FROM tab1
 13586  13600   ----
 13587  13601   14
 13588  13602   20
 13589  13603   47
 13590  13604   20
................................................................................
 14197  14211   query I rowsort
 14198  14212   SELECT ALL - 86 + col0 col0 FROM tab1
 14199  14213   ----
 14200  14214   -1
 14201  14215   -35
 14202  14216   5
 14203  14217   
        14218  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 14204  14219   query II rowsort
 14205  14220   SELECT + col2 col2, 19 FROM tab2
 14206  14221   ----
 14207  14222   23
 14208  14223   19
 14209  14224   40
 14210  14225   19
................................................................................
 15112  15127   skipif mysql # not compatible
 15113  15128   query II rowsort label-1641
 15114  15129   SELECT - + COUNT ( * ), 6 AS col0 FROM tab2 AS cor0
 15115  15130   ----
 15116  15131   -3
 15117  15132   6
 15118  15133   
        15134  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 15119  15135   query II rowsort
 15120  15136   SELECT DISTINCT + 42 col2, + ( col2 ) AS col1 FROM tab1 AS cor0
 15121  15137   ----
 15122  15138   42
 15123  15139   59
 15124  15140   42
 15125  15141   68
................................................................................
 16152  16168   1
 16153  16169   -44
 16154  16170   3
 16155  16171   -7
 16156  16172   17
 16157  16173   
 16158  16174   skipif mysql # not compatible
        16175  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16159  16176   query II rowsort label-1748
 16160  16177   SELECT DISTINCT - + col2 + + 52 col0, - col0 / - col1 AS col2 FROM tab1 AS cor0
 16161  16178   ----
 16162  16179   -16
 16163  16180   1
 16164  16181   -44
 16165  16182   3
................................................................................
 16862  16879   skipif mysql # not compatible
 16863  16880   query II rowsort label-1824
 16864  16881   SELECT ALL + 55 AS col1, + COUNT ( * ) AS col0 FROM tab2
 16865  16882   ----
 16866  16883   55
 16867  16884   3
 16868  16885   
        16886  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 16869  16887   query II rowsort
 16870  16888   SELECT col0 col0, - 43 FROM tab0
 16871  16889   ----
 16872  16890   15
 16873  16891   -43
 16874  16892   87
 16875  16893   -43
................................................................................
 17959  17977   SELECT ALL + 7 AS col0 FROM tab1 WHERE NOT 65 IS NOT NULL
 17960  17978   ----
 17961  17979   
 17962  17980   query III rowsort
 17963  17981   SELECT ALL * FROM tab0 WHERE + col1 < - col2
 17964  17982   ----
 17965  17983   
        17984  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 17966  17985   query III rowsort
 17967  17986   SELECT ALL 78 AS col2, + col0 + 0 col2, + col2 AS col0 FROM tab0
 17968  17987   ----
 17969  17988   9 values hashing to b02dffe5176ae8a19de8a147af89d9a6
 17970  17989   
 17971  17990   query III rowsort
 17972  17991   SELECT * FROM tab0 WHERE NOT + col2 <> + + 99
................................................................................
 20022  20041   NULL
 20023  20042   1
 20024  20043   NULL
 20025  20044   1
 20026  20045   NULL
 20027  20046   
 20028  20047   skipif mysql # not compatible
        20048  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20029  20049   query II rowsort label-2176
 20030  20050   SELECT ALL - col0 / - + 50 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
 20031  20051   ----
 20032  20052   0
 20033  20053   NULL
 20034  20054   1
 20035  20055   NULL
................................................................................
 20272  20292   skipif mysql # not compatible
 20273  20293   skipif postgresql # PostgreSQL requires AS when renaming output columns
 20274  20294   query I rowsort label-2202
 20275  20295   SELECT ALL - MIN ( col2 ) col0 FROM tab2
 20276  20296   ----
 20277  20297   -23
 20278  20298   
        20299  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 20279  20300   query II rowsort
 20280  20301   SELECT DISTINCT - col1 col1, - col1 + - - col0 AS col0 FROM tab2 cor0
 20281  20302   ----
 20282  20303   -51
 20283  20304   -5
 20284  20305   -67
 20285  20306   8
................................................................................
 21407  21428   191
 21408  21429   -21
 21409  21430   181
 21410  21431   -81
 21411  21432   155629
 21412  21433   
 21413  21434   skipif mysql # not compatible
        21435  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 21414  21436   query II rowsort label-2318
 21415  21437   SELECT ALL - col1 col2, + 94 + + col0 + + 74 / col0 * + col1 * + 32 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
 21416  21438   ----
 21417  21439   -1
 21418  21440   191
 21419  21441   -21
 21420  21442   181
................................................................................
 22146  22168   51
 22147  22169   NULL
 22148  22170   67
 22149  22171   NULL
 22150  22172   77
 22151  22173   
 22152  22174   skipif mysql # not compatible
        22175  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22153  22176   query II rowsort label-2390
 22154  22177   SELECT - CAST ( NULL AS INTEGER ) col1, col1 FROM tab2
 22155  22178   ----
 22156  22179   NULL
 22157  22180   51
 22158  22181   NULL
 22159  22182   67
................................................................................
 22376  22399   skipif mysql # not compatible
 22377  22400   skipif postgresql # PostgreSQL requires AS when renaming output columns
 22378  22401   query I rowsort label-2415
 22379  22402   SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0
 22380  22403   ----
 22381  22404   9
 22382  22405   
        22406  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 22383  22407   query III rowsort
 22384  22408   SELECT ALL col2 col1, col1 + 8 - + col2, - + col0 AS col2 FROM tab2 AS cor0
 22385  22409   ----
 22386  22410   9 values hashing to 508d9e4f017cbfed235b4ff483db387f
 22387  22411   
 22388  22412   query I rowsort
 22389  22413   SELECT DISTINCT + - col1 * col2 * - - 7 * + 81 AS col2 FROM tab0 AS cor0
................................................................................
 24420  24444   query II rowsort label-2638
 24421  24445   SELECT DISTINCT 50 col1, ( COUNT( * ) ) FROM tab1 AS cor0
 24422  24446   ----
 24423  24447   50
 24424  24448   3
 24425  24449   
 24426  24450   skipif mysql # not compatible
        24451  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 24427  24452   query II rowsort label-2638
 24428  24453   SELECT DISTINCT 50 col1, ( COUNT ( * ) ) FROM tab1 AS cor0
 24429  24454   ----
 24430  24455   50
 24431  24456   3
 24432  24457   
 24433  24458   query I rowsort
................................................................................
 25249  25274   -3984
 25250  25275   -65
 25251  25276   -767
 25252  25277   -65
 25253  25278   -8322
 25254  25279   
 25255  25280   skipif mysql # not compatible
        25281  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 25256  25282   query II rowsort label-2731
 25257  25283   SELECT - 65 col2, + CAST ( col2 AS INTEGER ) * + ( - 85 ) - + 4 + + col0 FROM tab0 AS cor0
 25258  25284   ----
 25259  25285   -65
 25260  25286   -3984
 25261  25287   -65
 25262  25288   -767
................................................................................
 26201  26227   1827
 26202  26228   97
 26203  26229   
 26204  26230   query III rowsort
 26205  26231   SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL
 26206  26232   ----
 26207  26233   
        26234  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 26208  26235   query II rowsort
 26209  26236   SELECT ALL col2 col1, + col1 AS col0 FROM tab1
 26210  26237   ----
 26211  26238   59
 26212  26239   5
 26213  26240   68
 26214  26241   47
................................................................................
 27503  27530   
 27504  27531   skipif mysql # not compatible
 27505  27532   query I rowsort label-2970
 27506  27533   SELECT + COUNT ( * ) * - 35 FROM tab1 AS cor0
 27507  27534   ----
 27508  27535   -105
 27509  27536   
        27537  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27510  27538   query II rowsort
 27511  27539   SELECT - col2 col2, col0 AS col0 FROM tab0 AS cor0
 27512  27540   ----
 27513  27541   -10
 27514  27542   87
 27515  27543   -47
 27516  27544   15
................................................................................
 27537  27565   64
 27538  27566   -3
 27539  27567   46
 27540  27568   -38
 27541  27569   75
 27542  27570   
 27543  27571   skipif mysql # not compatible
        27572  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27544  27573   query II rowsort label-2975
 27545  27574   SELECT DISTINCT - col2 + 20 col1, col0 AS col1 FROM tab2 WHERE ( CAST ( NULL AS REAL ) * 53 IS NULL )
 27546  27575   ----
 27547  27576   -20
 27548  27577   64
 27549  27578   -3
 27550  27579   46
................................................................................
 27595  27624   
 27596  27625   skipif postgresql # PostgreSQL requires AS when renaming output columns
 27597  27626   query I rowsort
 27598  27627   SELECT DISTINCT - 92 col2 FROM tab1
 27599  27628   ----
 27600  27629   -92
 27601  27630   
        27631  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 27602  27632   query II rowsort
 27603  27633   SELECT - 26 col2, - col0 - - - col0 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
 27604  27634   ----
 27605  27635   
 27606  27636   query I rowsort
 27607  27637   SELECT - - ( + - col0 ) + col0 - + col2 + + + col2 AS col0 FROM tab2 AS cor0
 27608  27638   ----
................................................................................
 28403  28433   6279
 28404  28434   
 28405  28435   query I rowsort
 28406  28436   SELECT + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
 28407  28437   ----
 28408  28438   9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
 28409  28439   
        28440  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28410  28441   query II rowsort
 28411  28442   SELECT DISTINCT col1 col0, - col0 AS col1 FROM tab0
 28412  28443   ----
 28413  28444   1
 28414  28445   -97
 28415  28446   21
 28416  28447   -87
................................................................................
 28646  28677   query II rowsort label-3106
 28647  28678   SELECT 11 col1, + COUNT( * ) FROM tab0
 28648  28679   ----
 28649  28680   11
 28650  28681   3
 28651  28682   
 28652  28683   skipif mysql # not compatible
        28684  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28653  28685   query II rowsort label-3106
 28654  28686   SELECT 11 col1, + COUNT ( * ) FROM tab0
 28655  28687   ----
 28656  28688   11
 28657  28689   3
 28658  28690   
 28659  28691   query III rowsort
................................................................................
 28678  28710   
 28679  28711   skipif mysql # not compatible
 28680  28712   query I rowsort label-3109
 28681  28713   SELECT + + ( 2 ) + - COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN ( 7 ) AND ( NULL ) )
 28682  28714   ----
 28683  28715   2
 28684  28716   
        28717  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 28685  28718   query II rowsort
 28686  28719   SELECT + col1 * col1 col0, - col0 FROM tab0
 28687  28720   ----
 28688  28721   1
 28689  28722   -97
 28690  28723   441
 28691  28724   -87
................................................................................
 30696  30729   query II rowsort label-3326
 30697  30730   SELECT COUNT( * ) col1, - COUNT( * ) AS col0 FROM tab1
 30698  30731   ----
 30699  30732   3
 30700  30733   -3
 30701  30734   
 30702  30735   skipif mysql # not compatible
        30736  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30703  30737   query II rowsort label-3326
 30704  30738   SELECT COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab1
 30705  30739   ----
 30706  30740   3
 30707  30741   -3
 30708  30742   
 30709  30743   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 30914  30948   SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 8
 30915  30949   ----
 30916  30950   
 30917  30951   query III rowsort
 30918  30952   SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 50 + - ( - col1 ) - - - col2 IS NOT NULL
 30919  30953   ----
 30920  30954   
        30955  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 30921  30956   query II rowsort
 30922  30957   SELECT ALL col2 col1, 4 AS col0 FROM tab1
 30923  30958   ----
 30924  30959   59
 30925  30960   4
 30926  30961   68
 30927  30962   4
................................................................................
 35524  35559   query I rowsort
 35525  35560   SELECT ALL - 15 + - 31 FROM tab0 AS cor0
 35526  35561   ----
 35527  35562   -46
 35528  35563   -46
 35529  35564   -46
 35530  35565   
        35566  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 35531  35567   query II rowsort
 35532  35568   SELECT + col2 col1, + 91 FROM tab2
 35533  35569   ----
 35534  35570   23
 35535  35571   91
 35536  35572   40
 35537  35573   91
................................................................................
 38335  38371   120533
 38336  38372   56253
 38337  38373   
 38338  38374   query IIIIII rowsort
 38339  38375   SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 25 IS NOT NULL
 38340  38376   ----
 38341  38377   
        38378  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38342  38379   query II rowsort
 38343  38380   SELECT ALL col2 col0, + col2 AS col2 FROM tab1
 38344  38381   ----
 38345  38382   59
 38346  38383   59
 38347  38384   68
 38348  38385   68
................................................................................
 38701  38738   -3016
 38702  38739   -3811
 38703  38740   
 38704  38741   query I rowsort
 38705  38742   SELECT 70 * - - 40 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
 38706  38743   ----
 38707  38744   
        38745  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 38708  38746   query II rowsort
 38709  38747   SELECT col0 + - col2 col2, + col2 AS col0 FROM tab2 AS cor0
 38710  38748   ----
 38711  38749   17
 38712  38750   58
 38713  38751   23
 38714  38752   23
................................................................................
 39389  39427   -23
 39390  39428   0
 39391  39429   -40
 39392  39430   0
 39393  39431   -58
 39394  39432   
 39395  39433   skipif mysql # not compatible
        39434  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 39396  39435   query II rowsort label-4274
 39397  39436   SELECT col2 / - ( + col1 ) col2, - col2 AS col1 FROM tab2
 39398  39437   ----
 39399  39438   0
 39400  39439   -23
 39401  39440   0
 39402  39441   -40
................................................................................
 40348  40387   -64
 40349  40388   125
 40350  40389   -75
 40351  40390   74
 40352  40391   -46
 40353  40392   
 40354  40393   skipif mysql # not compatible
        40394  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 40355  40395   query II rowsort label-4367
 40356  40396   SELECT ALL CAST ( ( + col1 ) AS INTEGER ) + col2 col2, - col0 FROM tab2
 40357  40397   ----
 40358  40398   117
 40359  40399   -64
 40360  40400   125
 40361  40401   -75
................................................................................
 41567  41607   14
 41568  41608   NULL
 41569  41609   47
 41570  41610   NULL
 41571  41611   5
 41572  41612   
 41573  41613   skipif mysql # not compatible
        41614  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41574  41615   query II rowsort label-4502
 41575  41616   SELECT ALL CAST ( NULL AS INTEGER ) col2, col1 FROM tab1
 41576  41617   ----
 41577  41618   NULL
 41578  41619   14
 41579  41620   NULL
 41580  41621   47
................................................................................
 41589  41630   
 41590  41631   skipif mysql # not compatible
 41591  41632   query I rowsort label-4503
 41592  41633   SELECT 40 * SUM ( 95 ) FROM tab0
 41593  41634   ----
 41594  41635   11400
 41595  41636   
        41637  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41596  41638   query II rowsort
 41597  41639   SELECT + 0 col1, col0 FROM tab1
 41598  41640   ----
 41599  41641   0
 41600  41642   51
 41601  41643   0
 41602  41644   85
................................................................................
 41915  41957   -51
 41916  41958   0
 41917  41959   -67
 41918  41960   0
 41919  41961   -77
 41920  41962   0
 41921  41963   
        41964  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 41922  41965   query II rowsort
 41923  41966   SELECT - 43 col0, + col0 + 82 FROM tab1 AS cor0
 41924  41967   ----
 41925  41968   -43
 41926  41969   133
 41927  41970   -43
 41928  41971   167
................................................................................
 42239  42282   query I rowsort
 42240  42283   SELECT ALL col0 * - 69 AS col2 FROM tab1
 42241  42284   ----
 42242  42285   -3519
 42243  42286   -5865
 42244  42287   -6279
 42245  42288   
        42289  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42246  42290   query II rowsort
 42247  42291   SELECT col0 col0, + col2 AS col1 FROM tab0
 42248  42292   ----
 42249  42293   15
 42250  42294   47
 42251  42295   87
 42252  42296   10
................................................................................
 42848  42892   skipif mysql # not compatible
 42849  42893   skipif postgresql # PostgreSQL requires AS when renaming output columns
 42850  42894   query I rowsort label-4633
 42851  42895   SELECT DISTINCT SUM ( + + col1 ) col2 FROM tab2
 42852  42896   ----
 42853  42897   195
 42854  42898   
        42899  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 42855  42900   query II rowsort
 42856  42901   SELECT ALL col1 + - ( + col1 ) col1, col2 / col0 AS col0 FROM tab1 cor0 WHERE NULL > col1
 42857  42902   ----
 42858  42903   
 42859  42904   onlyif mysql # aggregate syntax: 
 42860  42905   query I rowsort label-4635
 42861  42906   SELECT MAX( ALL + col2 ) AS col0 FROM tab0
................................................................................
 43850  43895   query I rowsort
 43851  43896   SELECT ALL col0 + + 31 + col0 + - col1 AS col1 FROM tab1
 43852  43897   ----
 43853  43898   119
 43854  43899   166
 43855  43900   196
 43856  43901   
        43902  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 43857  43903   query II rowsort
 43858  43904   SELECT + col0 col0, col1 FROM tab1
 43859  43905   ----
 43860  43906   51
 43861  43907   14
 43862  43908   85
 43863  43909   5
................................................................................
 44565  44611   query II rowsort label-4827
 44566  44612   SELECT ALL - 53 col0, + SUM( DISTINCT - 54 ) FROM tab2
 44567  44613   ----
 44568  44614   -53
 44569  44615   -54
 44570  44616   
 44571  44617   skipif mysql # not compatible
        44618  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 44572  44619   query II rowsort label-4827
 44573  44620   SELECT ALL - 53 col0, + SUM ( DISTINCT - 54 ) FROM tab2
 44574  44621   ----
 44575  44622   -53
 44576  44623   -54
 44577  44624   
 44578  44625   onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
................................................................................
 46027  46074   23
 46028  46075   67
 46029  46076   58
 46030  46077   77
 46031  46078   40
 46032  46079   
 46033  46080   skipif mysql # not compatible
        46081  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46034  46082   query II rowsort label-4987
 46035  46083   SELECT ALL col1 col1, CAST ( + col2 AS INTEGER ) FROM tab2
 46036  46084   ----
 46037  46085   51
 46038  46086   23
 46039  46087   67
 46040  46088   58
................................................................................
 46182  46230   query II rowsort label-5004
 46183  46231   SELECT ALL + 84 col1, COUNT( * ) FROM tab2 AS cor0
 46184  46232   ----
 46185  46233   84
 46186  46234   3
 46187  46235   
 46188  46236   skipif mysql # not compatible
        46237  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46189  46238   query II rowsort label-5004
 46190  46239   SELECT ALL + 84 col1, COUNT ( * ) FROM tab2 AS cor0
 46191  46240   ----
 46192  46241   84
 46193  46242   3
 46194  46243   
 46195  46244   query I rowsort
................................................................................
 46209  46258   -61
 46210  46259   14
 46211  46260   -61
 46212  46261   47
 46213  46262   -61
 46214  46263   5
 46215  46264   
        46265  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46216  46266   query II rowsort
 46217  46267   SELECT + + col0 col0, col0 AS col1 FROM tab1 cor0
 46218  46268   ----
 46219  46269   51
 46220  46270   51
 46221  46271   85
 46222  46272   85
................................................................................
 46676  46726   query I rowsort
 46677  46727   SELECT ALL 84 - - col0 FROM tab1
 46678  46728   ----
 46679  46729   135
 46680  46730   169
 46681  46731   175
 46682  46732   
        46733  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46683  46734   query II rowsort
 46684  46735   SELECT ( + 57 ) col1, col1 AS col0 FROM tab2
 46685  46736   ----
 46686  46737   57
 46687  46738   51
 46688  46739   57
 46689  46740   67
................................................................................
 46800  46851   
 46801  46852   skipif mysql # not compatible
 46802  46853   query I rowsort label-5067
 46803  46854   SELECT - ( SUM ( col0 ) ) FROM tab2
 46804  46855   ----
 46805  46856   -185
 46806  46857   
        46858  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 46807  46859   query II rowsort
 46808  46860   SELECT col0 col1, + col1 * - 37 FROM tab1
 46809  46861   ----
 46810  46862   51
 46811  46863   -518
 46812  46864   85
 46813  46865   -185
................................................................................
 47121  47173   query II rowsort label-5103
 47122  47174   SELECT ALL ( + 41 ) - 18 + COUNT( * ) col2, + COUNT( * ) AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) / col1 * + + col1 + - 71 IS NULL
 47123  47175   ----
 47124  47176   26
 47125  47177   3
 47126  47178   
 47127  47179   skipif mysql # not compatible
        47180  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47128  47181   query II rowsort label-5103
 47129  47182   SELECT ALL ( + 41 ) - 18 + COUNT ( * ) col2, + COUNT ( * ) AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / col1 * + + col1 + - 71 IS NULL
 47130  47183   ----
 47131  47184   26
 47132  47185   3
 47133  47186   
 47134  47187   onlyif mysql # CAST syntax: SIGNED type: 
................................................................................
 47156  47209   -14
 47157  47210   5888
 47158  47211   -31
 47159  47212   4232
 47160  47213   4
 47161  47214   6900
 47162  47215   
        47216  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47163  47217   query II rowsort
 47164  47218   SELECT - + ( col0 ) col0, col1 FROM tab2 AS cor0
 47165  47219   ----
 47166  47220   -46
 47167  47221   51
 47168  47222   -64
 47169  47223   77
................................................................................
 47824  47878   ----
 47825  47879   124
 47826  47880   
 47827  47881   query I rowsort
 47828  47882   SELECT DISTINCT - 89 + + 58 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
 47829  47883   ----
 47830  47884   
        47885  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 47831  47886   query II rowsort
 47832  47887   SELECT - col0 col1, - 33 AS col1 FROM tab2 AS cor0
 47833  47888   ----
 47834  47889   -46
 47835  47890   -33
 47836  47891   -64
 47837  47892   -33
................................................................................
 48377  48432   SELECT * FROM tab1 WHERE NOT - + 48 <> col1
 48378  48433   ----
 48379  48434   
 48380  48435   query III rowsort
 48381  48436   SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL AND col1 IS NULL
 48382  48437   ----
 48383  48438   
        48439  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 48384  48440   query II rowsort
 48385  48441   SELECT ALL - 63 col2, 57 FROM tab2
 48386  48442   ----
 48387  48443   -63
 48388  48444   57
 48389  48445   -63
 48390  48446   57
................................................................................
 49449  49505   
 49450  49506   skipif mysql # not compatible
 49451  49507   query I rowsort label-5359
 49452  49508   SELECT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
 49453  49509   ----
 49454  49510   NULL
 49455  49511   
        49512  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49456  49513   query II rowsort
 49457  49514   SELECT ALL - col1 col1, + col0 AS col0 FROM tab0
 49458  49515   ----
 49459  49516   -1
 49460  49517   97
 49461  49518   -21
 49462  49519   87
................................................................................
 49694  49751   
 49695  49752   skipif mysql # not compatible
 49696  49753   query I rowsort label-5386
 49697  49754   SELECT - COUNT ( * ) * + + 46 AS col1 FROM tab0 WHERE + + 20 IN ( + col2 )
 49698  49755   ----
 49699  49756   0
 49700  49757   
        49758  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49701  49759   query II rowsort
 49702  49760   SELECT + col0 col1, - col2 FROM tab2
 49703  49761   ----
 49704  49762   46
 49705  49763   -23
 49706  49764   64
 49707  49765   -40
................................................................................
 49830  49888   87
 49831  49889   11
 49832  49890   97
 49833  49891   5
 49834  49892   15
 49835  49893   
 49836  49894   skipif mysql # not compatible
        49895  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 49837  49896   query II rowsort label-5401
 49838  49897   SELECT ALL + col2 / + 9 col1, + col0 FROM tab0 AS cor0
 49839  49898   ----
 49840  49899   1
 49841  49900   87
 49842  49901   11
 49843  49902   97
................................................................................
 52162  52221   query I rowsort
 52163  52222   SELECT col2 + + ( + 5 ) * + col1 FROM tab0
 52164  52223   ----
 52165  52224   104
 52166  52225   115
 52167  52226   452
 52168  52227   
        52228  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 52169  52229   query II rowsort
 52170  52230   SELECT - col2 + - ( - col0 ) col0, col0 FROM tab2
 52171  52231   ----
 52172  52232   17
 52173  52233   75
 52174  52234   23
 52175  52235   46
................................................................................
 53998  54058   ----
 53999  54059   -42
 54000  54060   
 54001  54061   query III rowsort
 54002  54062   SELECT DISTINCT * FROM tab2 WHERE NOT ( 23 > - 52 )
 54003  54063   ----
 54004  54064   
        54065  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 54005  54066   query II rowsort
 54006  54067   SELECT DISTINCT col0 col0, 65 AS col1 FROM tab2
 54007  54068   ----
 54008  54069   46
 54009  54070   65
 54010  54071   64
 54011  54072   65
................................................................................
 55194  55255   skipif mysql # not compatible
 55195  55256   query II rowsort label-5958
 55196  55257   SELECT + COUNT ( * ), 47 AS col1 FROM tab0
 55197  55258   ----
 55198  55259   3
 55199  55260   47
 55200  55261   
        55262  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 55201  55263   query II rowsort
 55202  55264   SELECT ALL + col0 col2, col0 * - + col2 FROM tab1
 55203  55265   ----
 55204  55266   51
 55205  55267   -4896
 55206  55268   85
 55207  55269   -5015
................................................................................
 56497  56559   query I rowsort label-6096
 56498  56560   SELECT ALL - col0 / - - col1 * + + col2 / col2 FROM tab2 AS cor0
 56499  56561   ----
 56500  56562   -1
 56501  56563   0
 56502  56564   0
 56503  56565   
        56566  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56504  56567   query II rowsort
 56505  56568   SELECT col1 - - 30 col2, - col2 + - col0 FROM tab1 AS cor0
 56506  56569   ----
 56507  56570   35
 56508  56571   -144
 56509  56572   44
 56510  56573   -147
................................................................................
 56887  56950   77
 56888  56951   153
 56889  56952   51
 56890  56953   79
 56891  56954   67
 56892  56955   
 56893  56956   skipif mysql # not compatible
        56957  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 56894  56958   query II rowsort label-6142
 56895  56959   SELECT DISTINCT + col1 * 69 / col2 col2, col1 AS col2 FROM tab2
 56896  56960   ----
 56897  56961   132
 56898  56962   77
 56899  56963   153
 56900  56964   51
................................................................................
 57624  57688   23
 57625  57689   64
 57626  57690   40
 57627  57691   75
 57628  57692   58
 57629  57693   
 57630  57694   skipif mysql # not compatible
        57695  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 57631  57696   query II rowsort label-6218
 57632  57697   SELECT ALL ( - CAST ( - col0 AS INTEGER ) ) col2, + col2 AS col0 FROM tab2
 57633  57698   ----
 57634  57699   46
 57635  57700   23
 57636  57701   64
 57637  57702   40
................................................................................
 58131  58196   
 58132  58197   skipif mysql # not compatible
 58133  58198   query I rowsort label-6279
 58134  58199   SELECT + COUNT ( * ) / - - 31 AS col2 FROM tab0
 58135  58200   ----
 58136  58201   0
 58137  58202   
        58203  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58138  58204   query II rowsort
 58139  58205   SELECT col1 col0, + col2 + - + 69 FROM tab0
 58140  58206   ----
 58141  58207   1
 58142  58208   30
 58143  58209   21
 58144  58210   -59
................................................................................
 58521  58587   query I rowsort label-6319
 58522  58588   SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + + col2 FROM tab0
 58523  58589   ----
 58524  58590   NULL
 58525  58591   NULL
 58526  58592   NULL
 58527  58593   
        58594  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 58528  58595   query II rowsort
 58529  58596   SELECT col0 + - - col0 col2, + ( + + col2 ) - - col2 FROM tab1
 58530  58597   ----
 58531  58598   102
 58532  58599   192
 58533  58600   170
 58534  58601   118
................................................................................
 60802  60869   query II rowsort label-6555
 60803  60870   SELECT ALL CAST( NULL AS SIGNED ) col2, + COUNT( * ) FROM tab1 WHERE 7 < + col2
 60804  60871   ----
 60805  60872   NULL
 60806  60873   3
 60807  60874   
 60808  60875   skipif mysql # not compatible
        60876  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 60809  60877   query II rowsort label-6555
 60810  60878   SELECT ALL CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) FROM tab1 WHERE 7 < + col2
 60811  60879   ----
 60812  60880   NULL
 60813  60881   3
 60814  60882   
 60815  60883   query I rowsort
................................................................................
 61304  61372   query II rowsort label-6612
 61305  61373   SELECT ALL - MIN( + 27 ) col2, + COUNT( * ) * 49 FROM tab2
 61306  61374   ----
 61307  61375   -27
 61308  61376   147
 61309  61377   
 61310  61378   skipif mysql # not compatible
        61379  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61311  61380   query II rowsort label-6612
 61312  61381   SELECT ALL - MIN ( + 27 ) col2, + COUNT ( * ) * 49 FROM tab2
 61313  61382   ----
 61314  61383   -27
 61315  61384   147
 61316  61385   
 61317  61386   query I rowsort
................................................................................
 61666  61735   5
 61667  61736   
 61668  61737   query I rowsort
 61669  61738   SELECT DISTINCT - + 49 + + 63 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
 61670  61739   ----
 61671  61740   14
 61672  61741   
        61742  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61673  61743   query II rowsort
 61674  61744   SELECT ALL + col2 col0, 30 AS col2 FROM tab2 AS cor0
 61675  61745   ----
 61676  61746   23
 61677  61747   30
 61678  61748   40
 61679  61749   30
................................................................................
 61704  61774   51
 61705  61775   -38
 61706  61776   77
 61707  61777   -56
 61708  61778   67
 61709  61779   
 61710  61780   skipif mysql # not compatible
        61781  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 61711  61782   query II rowsort label-6652
 61712  61783   SELECT ALL - col2 - 47 / - 17 col1, col1 FROM tab2 AS cor0
 61713  61784   ----
 61714  61785   -21
 61715  61786   51
 61716  61787   -38
 61717  61788   77
................................................................................
 63270  63341   ----
 63271  63342   NULL
 63272  63343   
 63273  63344   query I rowsort
 63274  63345   SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE ( col1 ) NOT IN ( 60, col1, + 33 + - col0 )
 63275  63346   ----
 63276  63347   
        63348  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63277  63349   query II rowsort
 63278  63350   SELECT + 41 col1, col1 AS col2 FROM tab1 AS cor0
 63279  63351   ----
 63280  63352   41
 63281  63353   14
 63282  63354   41
 63283  63355   47
................................................................................
 63313  63385   SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( + col2 AS REAL ) * col1 * - 97 )
 63314  63386   ----
 63315  63387   
 63316  63388   query III rowsort
 63317  63389   SELECT * FROM tab0 AS cor0 WHERE 5 * + col1 = NULL
 63318  63390   ----
 63319  63391   
        63392  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 63320  63393   query II rowsort
 63321  63394   SELECT DISTINCT + col2 col1, - 16 * - - 77 * + col1 FROM tab1 cor0
 63322  63395   ----
 63323  63396   59
 63324  63397   -6160
 63325  63398   68
 63326  63399   -57904
................................................................................
 64515  64588   -21
 64516  64589   -81
 64517  64590   
 64518  64591   query III rowsort
 64519  64592   SELECT ALL * FROM tab2 WHERE NOT + - 23 > - col1
 64520  64593   ----
 64521  64594   
        64595  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 64522  64596   query II rowsort
 64523  64597   SELECT col0 col2, col1 AS col2 FROM tab1
 64524  64598   ----
 64525  64599   51
 64526  64600   14
 64527  64601   85
 64528  64602   5
................................................................................
 64750  64824   query II rowsort label-6989
 64751  64825   SELECT - + COUNT( * ) col0, MAX( - col1 ) AS col2 FROM tab0 AS cor0
 64752  64826   ----
 64753  64827   -3
 64754  64828   -1
 64755  64829   
 64756  64830   skipif mysql # not compatible
        64831  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 64757  64832   query II rowsort label-6989
 64758  64833   SELECT - + COUNT ( * ) col0, MAX ( - col1 ) AS col2 FROM tab0 AS cor0
 64759  64834   ----
 64760  64835   -3
 64761  64836   -1
 64762  64837   
 64763  64838   query II rowsort
................................................................................
 64813  64888   query I rowsort
 64814  64889   SELECT + 45 * - + 10 AS col0 FROM tab1
 64815  64890   ----
 64816  64891   -450
 64817  64892   -450
 64818  64893   -450
 64819  64894   
        64895  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 64820  64896   query II rowsort
 64821  64897   SELECT + 37 col0, + 92 AS col0 FROM tab0
 64822  64898   ----
 64823  64899   37
 64824  64900   92
 64825  64901   37
 64826  64902   92
................................................................................
 64996  65072   query II rowsort label-7016
 64997  65073   SELECT DISTINCT - + CAST( + - MAX( ALL + col2 ) AS SIGNED ) * - COUNT( * ) * - + 52 col0, - 54 FROM tab2 AS cor0
 64998  65074   ----
 64999  65075   9048
 65000  65076   -54
 65001  65077   
 65002  65078   skipif mysql # not compatible
        65079  +skipif postgresql # PostgreSQL requires AS when renaming output columns
 65003  65080   query II rowsort label-7016
 65004  65081   SELECT DISTINCT - + CAST ( + - MAX ( ALL + col2 ) AS INTEGER ) * - COUNT ( * ) * - + 52 col0, - 54 FROM tab2 AS cor0
 65005  65082