How many budget record has a budget amount smaller than the invested amount?
SELECT count(*) FROM budget WHERE budgeted  <  invested
SELECT count(*) FROM budget WHERE budgeted  <  invested
[{'count(*)': 6}]