Question: What is 2004, when 2007 is "A", and when 1997 is "A"?
SQL: SELECT 2004 FROM table WHERE 2007 = a AND 1997 = a