Relationship of sociology to philosophy