refine sql examples