I've gotten parameters for subqueries working in Scala.