Analyzes two SQL queries to see if they are equivalent.