Consider this SQL fragment. Let's say we want to select all characters that have at least 100 hit points and aren't dead.
In this case, hit points is a calculated field based on a base number plus a bonus number, multiplied by the character's level.
Let me show how to built this fragment in Sequel.