Adding theme query