adding support for complex output attributes in selector
adding QueryParserTest and fixing EventConverterTest
fixing SelectorParser to generate correct output definition