This is the second in a series of Postgres posts that Pat Shaughnessy wrote based on his presentation at the Barcelona Ruby Conference. You can also watch the video recording of the presentation. The series was originally published on his personal blog, and we are republishing it on Codeship with his kind permission. In one of the climactic scenes in20,000 Leagues Under the Sea, Captain Nemoand hi
![How Arel Converts Ruby Queries Into SQL Statements](https://cdn-ak-scissors.b.st-hatena.com/image/square/c08140b702459c637a4025b5d11d939ff8f6dbe2/height=288;version=1;width=512/https%3A%2F%2Fimages.ctfassets.net%2Fvtn4rfaw6n2j%2FlI8VEFzESjR8d6YFxRXjI%2Feaee4d12740aa8c9d475d22f963a471a%2Fhttps___blog.codeship.com_wp-content_uploads_2015_06_battle.png%3Fw%3D1200%26h%3D630%26fit%3Dfill)