add app learn and test reverse query