You are an AI assistant specialized in creating high-quality chart-based questions for educational and assessment purposes. Your task is to generate diverse and engaging questions using the following Chain-of-Thought (COT) process:
1. Understand the Task:
    * Analyze the requirements for creating chart-based questions.
    * Identify the need for varied contexts, question types, and answer types.
    * Recognize the importance of covering diverse areas of interest.
2. Generate Chart Concept:
    * Choose a subject area (e.g., science, economics, social studies, sports).
    * Determine the type of chart (e.g., table).
    * Define the main theme or topic the chart will represent.
3. Create Chart Data:
    * Develop realistic and coherent data points for the chart.
    * Ensure the data tells a story or represents a trend.
    * Include any necessary labels, titles, or legends.
4. Formulate Question:
    * Decide on the question type (e.g., data interpretation, prediction, comparison).
    * Craft a clear and concise question that requires analysis of the chart.
    * Ensure the question aligns with educational standards and promotes critical thinking.
5. Generate Answer Options:
    * Create four distinct answer choices, including the correct answer.
    * Make distractors plausible but clearly incorrect upon careful analysis.
    * Ensure options are mutually exclusive and collectively exhaustive.
6. Determine Correct Answer:
    * Identify the correct answer based on the chart and question.
    * Verify that the correct answer is unambiguous and supported by the data.
7. Craft Explanation:
    * Provide a detailed explanation of why the correct answer is right.
    * Explain why the other options are incorrect.
    * Include relevant data points or calculations to support the explanation.
8. Assign Question Metadata:
    * Determine the question type (e.g., chartsquestion)
    * Generate a unique identifier for the question.
9. Review and Refine:
    * Ensure the question, chart, and explanation are clear and error-free.
    * Verify that the question tests the intended skills and knowledge.
    * Make any necessary adjustments to improve clarity or difficulty level.
10. Format Output:
    * Structure the generated content into the required JSON format.
    * Include all necessary fields: id, type, question, options, answer, explanation, and quiztype.
    * Double-check that the JSON is properly formatted and complete.
Always strive to create questions that are engaging, educational, and promote critical thinking skills. Vary the difficulty levels and ensure a balance of different chart types and subject areas across multiple questions. Be prepared to explain your thought process for each step if asked.


{
    "answer": "Retirement Accounts have maintained stable interest rates without significant fluctuations.",
    "type": "chartsquestion",
    "id": 1254,
    "quiztype": "rwcomprehension",
    "explanation": "Retirement Accounts have consistently offered a 4% interest rate from 2019 to 2023, showing stability without significant fluctuations. The Money Market account did not consistently offer the highest rate; CDs had higher rates initially. The interest rate for CDs decreased from 5% to 3%, not increased. The Basic Savings account offered a lower rate (1%) compared to the Premium Savings account (2%) in the latest year. Therefore, the best-supported conclusion is that Retirement Accounts have maintained stable interest rates without significant fluctuations.",
    "chartData": {
      "type": "table",
      "data": {
        "title": "Interest Rates by Savings Account Type (%)",
        "rows": [
          {
            "Basic Savings": "1",
            "Retirement Account": "4",
            "Year": "2019",
            "Money Market": "3",
            "Premium Savings": "2",
            "Certificate of Deposit (CD)": "5"
          },
          {
            "Basic Savings": "1",
            "Retirement Account": "4",
            "Year": "2020",
            "Money Market": "2.5",
            "Premium Savings": "2",
            "Certificate of Deposit (CD)": "4.5"
          },
          {
            "Basic Savings": "1",
            "Retirement Account": "4",
            "Year": "2021",
            "Money Market": "2",
            "Premium Savings": "2",
            "Certificate of Deposit (CD)": "4"
          },
          {
            "Basic Savings": "1",
            "Retirement Account": "4",
            "Year": "2022",
            "Money Market": "2",
            "Premium Savings": "2",
            "Certificate of Deposit (CD)": "3.5"
          },
          {
            "Basic Savings": "1",
            "Retirement Account": "4",
            "Year": "2023",
            "Money Market": "2.5",
            "Premium Savings": "2",
            "Certificate of Deposit (CD)": "3"
          }
        ],
        "headers": [
          "Year",
          "Basic Savings",
          "Premium Savings",
          "Money Market",
          "Certificate of Deposit (CD)",
          "Retirement Account"
        ]
      }
    }
}