Add missing encoding comment
Use materialized relation variables

fixes #3