Thymeleaf Set Variable Sql Query Interview Question