"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 18:15:46.946814
"""

```python
from typing import List, Dict


class ReasoningEngine:
    """
    A simple reasoning engine that attempts to solve problems with limited reasoning sophistication.
    """

    def __init__(self):
        self.knowledge_base: Dict[str, List[str]] = {}

    def add_knowledge(self, category: str, facts: List[str]) -> None:
        """
        Adds knowledge to the knowledge base.

        :param category: The category or topic of the facts.
        :param facts: A list of strings representing factual information.
        """
        if category not in self.knowledge_base:
            self.knowledge_base[category] = []
        for fact in facts:
            self.knowledge_base[category].append(fact)

    def query(self, question: str) -> List[str]:
        """
        Queries the knowledge base to find relevant information.

        :param question: The question to be answered.
        :return: A list of strings containing answers from the knowledge base or an empty list if no match is found.
        """
        answer = []
        for category, facts in self.knowledge_base.items():
            for fact in facts:
                if question.lower() in fact.lower():  # Simple text matching
                    answer.append(fact)
        return answer


def example_usage():
    engine = ReasoningEngine()
    
    # Adding some knowledge to the database
    engine.add_knowledge("Mathematics", ["2 + 2 = 4", "3 * 3 = 9"])
    engine.add_knowledge("Historical Events", ["World War II lasted from 1939-1945"])
    
    # Querying the knowledge base with a simple question
    result = engine.query("What is the product of three and three?")
    print(result)  # Should return ['3 * 3 = 9']
    
    # Querying for historical information
    result = engine.query("When did World War II end?")
    print(result)  # Should return ['World War II lasted from 1939-1945']


if __name__ == "__main__":
    example_usage()
```

This code snippet creates a simple reasoning engine capable of adding knowledge and querying it based on text matching. The `ReasoningEngine` class includes methods to add facts to different categories and query the knowledge base with a question, returning relevant answers.