API-Assisted Code Generation for Question Answering on Varied Table Structures