K’taka: How BJP, JD(S), Cong have worked out caste math