Write SQL in Scala