what's the difference between pages_kb and virtual_memory_committed_kb ?
I guess you are referring to sys.dm_os_memory_clerks
Pages_kb
is amount of page memory allocated. You can simply called it as memory allocated for working set.
Virtual_memory_committed_kb
is Amount of virtual memory committed. A committed memory is backed by physical memory. This is committed virtual memory as tracked by this clerk. VM committed in simple terms some part of memory which was reserved and committed but now in page file or swapped back to disk behaving as virtual memory
BTW the query you are using is incorrect, there is no need to sum all the columns.