Automatic Ontology Construction for Query Based Information Access