The thing that differentiates the spells and determines the governing primary attribute is probably the field 'data "Ability" "Warrior"' etc.
What could influence damage and the effect attributes have is stuff like "Damage" of course, the spell type ("Shout", "Target", etc.) and others. I have no information about all that stuff or the influence of primary attributes on spell damage. If you want formulas and exact mechanics, you have to ask Larian. I did not even manage to find formulas for the data I collected.
Or maybe another modder has dug deeply into that field and would share this info.