add query command