Build SQL using AREL