Here's a fairly simple query that returns the first 10 people attending RubyKaigi.
On the left is the SQL, and on the right is the Sequel ruby code.
Note how the ruby code doesn't require you to write any SQL.
Also note how Sequel uses ruby symbols to represent SQL tables and columns, and uses ruby strings to represent SQL strings.
Let me quickly break down the different steps.