A method and apparatus for querying multiple streams of data traffic are disclosed. In one embodiment, the method specifies interfaces or data sources in accordance with their properties. In turn, the method then accepts a query for querying multiple data streams and automatically constructs a set of queries in accordance with at least one specified property, where the set of queries is to be applied over the multiple data streams.