Using functions on columns instead on literals

Josep