sql: Make "using" functions return the same  value as the scope function.