A practical natural language interface to databases