You can write statements in relational algebra which are translated to SQL.
This is a step-by-step algebra equation solver for Windows.
Comprehensive algebra problem solver.