Translating Questions to SQL Queries with Generative Parsers Discriminatively Reranked