CREATE TABLE table_name_18 (Id VARCHAR)

Which 2007 has a 2010 of A, and a 2006 of lq?
SELECT 2007 FROM table_name_18 WHERE 2010 = "a" AND 2006 = "lq"
SELECT 2007 FROM "table_name_18" WHERE "a" = 2010 AND "lq" = 2006