/summon Villager ~1 ~ ~ {Profession:3,CustomName:"Shrek",CustomNameVisible:1,Career:2,CareerLevel:42,PersistenceRequired:1,ActiveEffects:[{Id:"1",Amplifier:0,Duration:2147483647},{Id:"1",Amplifier:0,Duration:2147483647}],Offers:{Recipes:[{buy:{id:"coal",Count:2},maxUses:10,sell:{id:"emerald",Count:5},rewardExp:false},{buy:{id:"emerald",Count:10},maxUses:50,sell:{id:"diamond_sword",Count:1},rewardExp:false}]}}