A Hidden Markov Model Approach to Keyword-based Search over Relational Databases