add skeleton of four kinds of query APIs