Return result of query as variable

Why not? You can do arithmetical operation.
For example:

GetAllSumVotes().then(z => z + 100 * 2 / 4 - 5));