support query in sdk methods