System.out.println("FinalLeft = " + NewLeft);
System.out.println("FinalRight = " + NewRight);
QuestionWordAction QWA = new QuestionWordAction(question, chunk, NewLeft, NewRight);
ToSql to = new ToSql(QWA, p, At, CompareWords, CompareActions, Left, Tag);
System.out.println(to.getSelect() + to.getFrom() + to.getWhere());
//System.out.println("SELECT " + attribute + " WHERE " + c1 + " FROM " + relation);
/*
Writer outputFile = new BufferedWriter(new OutputStreamWriter
(new FileOutputStream(Directory.LogFile), "UTF-8"));
outputFile.write(question + " ----- " + to.getSelect() + to.getFrom() + to.getWhere());
outputFile.close();
*/
String answer = to.getSelect() + to.getFrom() + to.getWhere();
try{
db.InsertLog(question, "answer");
} catch(Exception E){}
return (to.getSelect() + to.getFrom() + to.getWhere());
}