TxQuery is an SQL engine implemented in a TDataSet descendant component, that can parse SQL syntax, and that will use that syntax to query to another.