Added functional query demo