Is that possible to sum the clock for tasks in advance query?

Hi community,

I’m using TODO to list my daily works with time tracking. I want to have a single row to show ‘how much time it takes’. I try my best to explore the source code, seems no way to extract this with query script (Im new on clojure…).


 :title "time cost"
 :query [
         :find (sum ?spent-min)
         :in $ ?current-page
         [?p :page/name ?current-page]
         [?b :block/page ?p]
         [?b :block/marker ?marker]
         [(contains? #{"DONE"} ?marker)]
         [?b :block/properties ?prop]
         ;; !! no this properties
         [(get ?prop "clock-time") ?spent-min]
 :inputs [:current-page]

I want to know is that possible? or other solutions?