support query by sql