import org.infinispan.continuousquery.demo.* query tradeWatchdog(String $traderName) ourTrader: Trader(name == $traderName) ourTrade : Trade(trader.name == ourTrader.name) stockInfo : StockInfo(ourTrade.stockInfo.company == company) end In this example we have a query that have a parameter: "traderName". Queries need to be defined within the system before executing them. Query execution(or instant