agnt query in backend