Calculator:format SQL selects automatically