What is the highest 3d6 or 1d20 Resolution (+10) with a 1d10 Resolution (+5) with 5, and a +1d12 (6) smaller than 6?
SELECT MAX 3d6 or 1d20 Resolution (+10) FROM table WHERE 1d10 Resolution (+5) = 5 AND +1d12 (6) < 6