PHRED: A Generator for Natural Language Interfaces