@stanislaw Okay - so a query `count(*) as value` would be expected to return something like:

    +----------+
    | value    |
    +----------+
    | 2        |
    +----------+

in a sqlite result set, no? I'm just wondering where you got `key` from.