Towards understanding natural language: semantic parsing, commonsense knowledge acquisition, reasoning framework and applications