Semantic Parsing for Natural Language Interfaces