query action implemented, #19 done