added ability to query a scalar value, like a row count for example