* SQL query for extracting entropy of attribute