Converted relations to where-syntax