DFA for SQL Query added