Add support for a[attr=val] selection
Test A complex query