Anyway, here's some simple Sequel code that runs a SELECT query and prints out some results.
Let me break it down into separate steps.