Question: List enrollments in 2021-2022 where student count is between 10 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 10 AND 200
ORDER BY student_count DESC


Question: Break down Roosevelt Academy enrollment by grade for 2023-2024.

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024'
ORDER BY grade_level


Question: In 2023-2024, how many Washington Middle students missed more than 25 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND absence_count > 25


Question: Show grades in 2024-2025 with enrollment between 50 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 50 AND 200
ORDER BY student_count DESC


Question: Show enrollment by grade level at Jefferson High for 2021-2022.

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022'
ORDER BY grade_level


Question: Count chronically absent students by grade at Roosevelt Academy for the 2022-2023 school year.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Washington Middle with over 20 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND absence_count > 20


Question: Which grade-school combinations in 2024-2025 have 50-150 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 50 AND 150
ORDER BY student_count DESC


Question: Show the 5 students with the highest absence counts at Lincoln Elementary for 2023-2024.

SELECT student_id, absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024'
ORDER BY absence_count DESC
LIMIT 5


Question: Break down chronic absenteeism by grade level at Jefferson High for 2022-2023.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Which grades at Jefferson High have chronically absent students in 2021-2022?

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: Which grades at Jefferson High have chronically absent students in 2022-2023?

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: How many kids at Kennedy Prep were chronically absent during 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: For Lincoln Elementary in 2023-2024, give me chronic absence numbers by grade.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: In 2022-2023, how many Roosevelt Academy students missed more than 20 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND absence_count > 20


Question: For 2022-2023, what was the chronic absence headcount at Roosevelt Academy?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: Which grades at Kennedy Prep had the most chronic absences in 2021-2022?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How many students were chronically absent at Kennedy Prep in 2022-2023?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: What's the chronic absence rate at Jefferson High for 2021-2022?

SELECT ROUND(100.0 * SUM(CASE WHEN is_chronically_absent THEN 1 ELSE 0 END) / COUNT(*), 1) AS chronic_pct
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022'


Question: Count the chronically absent students at Kennedy Prep for 2024-2025.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: How many chronically absent students are in each grade at Lincoln Elementary in 2023-2024?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2021-2022 have 20-100 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 20 AND 100
ORDER BY student_count DESC


Question: For Kennedy Prep in 2024-2025, give me chronic absence numbers by grade.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Count the chronically absent students at Lincoln Elementary for 2023-2024.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: List enrollments in 2023-2024 where student count is between 10 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 10 AND 80
ORDER BY student_count DESC


Question: How many students at Washington Middle had more than 10 absences in 2024-2025?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND absence_count > 10


Question: In 2023-2024, how many Washington Middle students missed more than 10 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND absence_count > 10


Question: Break down chronic absenteeism by grade level at Kennedy Prep for 2021-2022.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: List grades with chronic absenteeism at Kennedy Prep for 2024-2025.

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: In 2022-2023, how many Lincoln Elementary students missed more than 15 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023' AND absence_count > 15


Question: At Kennedy Prep, how many students had chronic absenteeism in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: I need the chronic absenteeism count for Lincoln Elementary in 2021-2022.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: How does grade 2 enrollment compare to grade 4 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (2, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Jefferson High had more than 20 absences in 2021-2022?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND absence_count > 20


Question: For Roosevelt Academy in 2024-2025, give me chronic absence numbers by grade.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Which grades at Kennedy Prep had the most chronic absences in 2022-2023?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 2 and grade 1 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (2, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Lincoln Elementary with over 10 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND absence_count > 10


Question: I need the chronic absenteeism count for Jefferson High in 2022-2023.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: How does grade 9 enrollment compare to grade 12 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (9, 12)
GROUP BY grade_level
ORDER BY grade_level


Question: I need the chronic absenteeism count for Washington Middle in 2023-2024.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: How many students at Kennedy Prep had more than 20 absences in 2023-2024?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2023-2024' AND absence_count > 20


Question: List grades with chronic absenteeism at Washington Middle for 2021-2022.

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: How does grade 2 enrollment compare to grade 1 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (2, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Roosevelt Academy with over 15 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND absence_count > 15


Question: In 2021-2022, how many Roosevelt Academy students missed more than 20 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND absence_count > 20


Question: Which grade-school combinations in 2023-2024 have 20-100 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 20 AND 100
ORDER BY student_count DESC


Question: Which is bigger in 2022-2023: grade 1 or grade 11 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (1, 11)
GROUP BY grade_level
ORDER BY grade_level


Question: In 2024-2025, how many students at Washington Middle were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Which grades at Roosevelt Academy had the most chronic absences in 2024-2025?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Kennedy Prep had more than 10 absences in 2021-2022?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND absence_count > 10


Question: List grades with chronic absenteeism at Kennedy Prep for 2021-2022.

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: Show enrollment by grade level at Washington Middle for 2024-2025.

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025'
ORDER BY grade_level


Question: List enrollments in 2022-2023 where student count is between 50 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 50 AND 100
ORDER BY student_count DESC


Question: How did chronic absenteeism change from 2023-2024 to 2022-2023?

SELECT school_year, COUNT(*) AS chronic_count
FROM attendance
WHERE school_year IN ('2023-2024', '2022-2023') AND is_chronically_absent = TRUE
GROUP BY school_year
ORDER BY school_year


Question: Show me the number of chronically absent kids at Roosevelt Academy, 2021-2022.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Which grades at Jefferson High had the most chronic absences in 2022-2023?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Roosevelt Academy with over 10 absences for 2022-2023.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND absence_count > 10


Question: How many students at Roosevelt Academy had more than 20 absences in 2021-2022?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND absence_count > 20


Question: Count students at Jefferson High with over 25 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND absence_count > 25


Question: Show grades in 2022-2023 with enrollment between 50 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 50 AND 150
ORDER BY student_count DESC


Question: Which is bigger in 2021-2022: grade 6 or grade 4 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (6, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Lincoln Elementary with over 25 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND absence_count > 25


Question: How many students were chronically absent at Washington Middle in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: For Jefferson High in 2023-2024, give me chronic absence numbers by grade.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Which is bigger in 2022-2023: grade 10 or grade 11 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (10, 11)
GROUP BY grade_level
ORDER BY grade_level


Question: List enrollments in 2022-2023 where student count is between 30 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 30 AND 150
ORDER BY student_count DESC


Question: Show the 5 students with the highest absence counts at Kennedy Prep for 2024-2025.

SELECT student_id, absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025'
ORDER BY absence_count DESC
LIMIT 5


Question: Count students at Washington Middle with over 25 absences for 2024-2025.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND absence_count > 25


Question: How many kids at Roosevelt Academy were chronically absent during 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: What's the count of chronically absent students at Washington Middle in 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: How does grade 4 enrollment compare to grade 7 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (4, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Kennedy Prep with over 10 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND absence_count > 10


Question: In 2022-2023, how many Washington Middle students missed more than 25 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023' AND absence_count > 25


Question: Compare enrollment between grade 11 and grade 5 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (11, 5)
GROUP BY grade_level
ORDER BY grade_level


Question: What's the count of chronically absent students at Roosevelt Academy in 2022-2023?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: At Kennedy Prep, how many students had chronic absenteeism in 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: What's the grade-by-grade enrollment at Kennedy Prep in 2024-2025?

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025'
ORDER BY grade_level


Question: Count students at Roosevelt Academy with over 10 absences for 2024-2025.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND absence_count > 10


Question: How does grade 0 enrollment compare to grade 9 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (0, 9)
GROUP BY grade_level
ORDER BY grade_level


Question: Show me the number of chronically absent kids at Jefferson High, 2024-2025.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Count students at Lincoln Elementary with over 20 absences for 2022-2023.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023' AND absence_count > 20


Question: Which grade-school combinations in 2024-2025 have 30-100 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: What's the grade-by-grade enrollment at Lincoln Elementary in 2023-2024?

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024'
ORDER BY grade_level


Question: How many students at Kennedy Prep had more than 25 absences in 2024-2025?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND absence_count > 25


Question: Which grade-school combinations in 2023-2024 have 20-80 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 20 AND 80
ORDER BY student_count DESC


Question: In 2021-2022, how many Jefferson High students missed more than 15 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND absence_count > 15


Question: Show me the number of chronically absent kids at Lincoln Elementary, 2023-2024.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: How many kids at Roosevelt Academy were chronically absent during 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: How many kids at Jefferson High were chronically absent during 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 8 and grade 11 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (8, 11)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2022-2023 have 30-100 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: Which grade-school combinations in 2023-2024 have 10-80 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 10 AND 80
ORDER BY student_count DESC


Question: At Washington Middle, how many students had chronic absenteeism in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: In 2021-2022, how many students at Washington Middle were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Show the 5 students with the highest absence counts at Kennedy Prep for 2022-2023.

SELECT student_id, absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023'
ORDER BY absence_count DESC
LIMIT 5


Question: In 2021-2022, how many Washington Middle students missed more than 15 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND absence_count > 15


Question: Break down chronic absenteeism by grade level at Lincoln Elementary for 2023-2024.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: In 2023-2024, how many Lincoln Elementary students missed more than 10 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND absence_count > 10


Question: Compare enrollment between grade 10 and grade 11 in 2021-2022.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (10, 11)
GROUP BY grade_level
ORDER BY grade_level


Question: Count chronically absent students by grade at Roosevelt Academy for the 2024-2025 school year.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2024-2025 with enrollment between 20 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 20 AND 100
ORDER BY student_count DESC


Question: Which is bigger in 2023-2024: grade 7 or grade 4 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (7, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: List enrollments in 2022-2023 where student count is between 10 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 10 AND 150
ORDER BY student_count DESC


Question: Which is bigger in 2024-2025: grade 0 or grade 4 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (0, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: In 2024-2025, how many students at Jefferson High were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 5 and grade 10 in 2022-2023.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (5, 10)
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Washington Middle had more than 10 absences in 2023-2024?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND absence_count > 10


Question: How does grade 6 enrollment compare to grade 12 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (6, 12)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 6 and grade 5 in 2022-2023.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (6, 5)
GROUP BY grade_level
ORDER BY grade_level


Question: In 2024-2025, how many Roosevelt Academy students missed more than 10 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND absence_count > 10


Question: In 2022-2023, how many students at Kennedy Prep were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: I need the chronic absenteeism count for Jefferson High in 2023-2024.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: What's the chronic absence rate at Lincoln Elementary for 2022-2023?

SELECT ROUND(100.0 * SUM(CASE WHEN is_chronically_absent THEN 1 ELSE 0 END) / COUNT(*), 1) AS chronic_pct
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023'


Question: Count the chronically absent students at Washington Middle for 2021-2022.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: List grades with chronic absenteeism at Jefferson High for 2021-2022.

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: How many students at Washington Middle had more than 20 absences in 2023-2024?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND absence_count > 20


Question: Which grade-school combinations in 2021-2022 have 20-150 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 20 AND 150
ORDER BY student_count DESC


Question: Show grades in 2024-2025 with enrollment between 50 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 50 AND 150
ORDER BY student_count DESC


Question: Compare enrollment between grade 0 and grade 7 in 2023-2024.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (0, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: What's the grade-by-grade enrollment at Roosevelt Academy in 2022-2023?

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023'
ORDER BY grade_level


Question: Break down chronic absenteeism by grade level at Washington Middle for 2021-2022.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Jefferson High had more than 25 absences in 2024-2025?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND absence_count > 25


Question: Show enrollment by grade level at Roosevelt Academy for 2021-2022.

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022'
ORDER BY grade_level


Question: At Roosevelt Academy, how many students had chronic absenteeism in 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Which grade-school combinations in 2023-2024 have 20-200 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 20 AND 200
ORDER BY student_count DESC


Question: Show grades in 2023-2024 with enrollment between 10 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 10 AND 150
ORDER BY student_count DESC


Question: In 2024-2025, how many Jefferson High students missed more than 15 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND absence_count > 15


Question: Show grades in 2023-2024 with enrollment between 30 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 30 AND 200
ORDER BY student_count DESC


Question: Which is bigger in 2023-2024: grade 1 or grade 3 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (1, 3)
GROUP BY grade_level
ORDER BY grade_level


Question: Who are the top 5 students with the most absences at Washington Middle in 2022-2023?

SELECT student_id, absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023'
ORDER BY absence_count DESC
LIMIT 5


Question: In 2022-2023, how many students at Jefferson High were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: How many students were chronically absent at Roosevelt Academy in 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Show grades in 2022-2023 with enrollment between 20 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 20 AND 200
ORDER BY student_count DESC


Question: How does grade 11 enrollment compare to grade 4 in 2023-2024?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (11, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grades at Washington Middle have chronically absent students in 2024-2025?

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: Compare enrollment between grade 10 and grade 7 in 2023-2024.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (10, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: At Roosevelt Academy, how many students had chronic absenteeism in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 11 and grade 0 in 2023-2024.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (11, 0)
GROUP BY grade_level
ORDER BY grade_level


Question: What's the count of chronically absent students at Washington Middle in 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Show the 5 students with the highest absence counts at Washington Middle for 2022-2023.

SELECT student_id, absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023'
ORDER BY absence_count DESC
LIMIT 5


Question: How many students were chronically absent at Jefferson High in 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 2 and grade 8 in 2021-2022.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (2, 8)
GROUP BY grade_level
ORDER BY grade_level


Question: Tell me the number of chronically absent students at Roosevelt Academy for the 2022-2023 school year.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: I need the chronic absenteeism count for Lincoln Elementary in 2023-2024.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: How many students at Lincoln Elementary had more than 20 absences in 2024-2025?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND absence_count > 20


Question: How many chronically absent students are in each grade at Roosevelt Academy in 2024-2025?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: For Washington Middle in 2024-2025, give me chronic absence numbers by grade.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Count chronically absent students by grade at Kennedy Prep for the 2024-2025 school year.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2021-2022 with enrollment between 30 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 30 AND 200
ORDER BY student_count DESC


Question: Count students at Roosevelt Academy with over 20 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND absence_count > 20


Question: How does grade 11 enrollment compare to grade 6 in 2023-2024?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (11, 6)
GROUP BY grade_level
ORDER BY grade_level


Question: Break down chronic absenteeism by grade level at Washington Middle for 2024-2025.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2024-2025 with enrollment between 30 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: Which is bigger in 2023-2024: grade 12 or grade 8 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (12, 8)
GROUP BY grade_level
ORDER BY grade_level


Question: Show the 5 students with the highest absence counts at Jefferson High for 2022-2023.

SELECT student_id, absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023'
ORDER BY absence_count DESC
LIMIT 5


Question: Which grade-school combinations in 2022-2023 have 10-150 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 10 AND 150
ORDER BY student_count DESC


Question: At Lincoln Elementary, how many students had chronic absenteeism in 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 1 and grade 2 in 2023-2024.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (1, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: Show chronic absence counts per grade at Washington Middle, 2022-2023.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Break down Washington Middle enrollment by grade for 2023-2024.

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024'
ORDER BY grade_level


Question: Show grades in 2022-2023 with enrollment between 30 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: How many chronically absent students are in each grade at Washington Middle in 2024-2025?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How does grade 9 enrollment compare to grade 6 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (9, 6)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2022-2023 have 50-100 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 50 AND 100
ORDER BY student_count DESC


Question: In 2022-2023, how many Kennedy Prep students missed more than 15 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND absence_count > 15


Question: What percentage of students at Jefferson High were chronically absent in 2023-2024?

SELECT ROUND(100.0 * SUM(CASE WHEN is_chronically_absent THEN 1 ELSE 0 END) / COUNT(*), 1) AS chronic_pct
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024'


Question: How does grade 0 enrollment compare to grade 10 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (0, 10)
GROUP BY grade_level
ORDER BY grade_level


Question: Show chronic absence counts per grade at Kennedy Prep, 2023-2024.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Which is bigger in 2022-2023: grade 10 or grade 6 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (10, 6)
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2022-2023 with enrollment between 30 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 30 AND 150
ORDER BY student_count DESC


Question: How does grade 2 enrollment compare to grade 3 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (2, 3)
GROUP BY grade_level
ORDER BY grade_level


Question: Which is bigger in 2024-2025: grade 11 or grade 4 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (11, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: How many kids at Roosevelt Academy were chronically absent during 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Tell me the number of chronically absent students at Kennedy Prep for the 2021-2022 school year.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: List enrollments in 2021-2022 where student count is between 10 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 10 AND 80
ORDER BY student_count DESC


Question: Which grades at Kennedy Prep had the most chronic absences in 2024-2025?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Count chronically absent students by grade at Roosevelt Academy for the 2021-2022 school year.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Jefferson High had more than 25 absences in 2023-2024?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND absence_count > 25


Question: Count the chronically absent students at Roosevelt Academy for 2024-2025.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Count the chronically absent students at Jefferson High for 2021-2022.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Which is bigger in 2023-2024: grade 4 or grade 0 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (4, 0)
GROUP BY grade_level
ORDER BY grade_level


Question: Which is bigger in 2024-2025: grade 1 or grade 11 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (1, 11)
GROUP BY grade_level
ORDER BY grade_level


Question: How many chronically absent students are in each grade at Jefferson High in 2023-2024?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How many chronically absent students are in each grade at Lincoln Elementary in 2024-2025?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2022-2023 have 50-80 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 50 AND 80
ORDER BY student_count DESC


Question: Count students at Kennedy Prep with over 10 absences for 2024-2025.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND absence_count > 10


Question: How many students at Roosevelt Academy had more than 10 absences in 2024-2025?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND absence_count > 10


Question: Which is bigger in 2023-2024: grade 7 or grade 1 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (7, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 3 and grade 4 in 2021-2022.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (3, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: I need the chronic absenteeism count for Roosevelt Academy in 2021-2022.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 7 and grade 5 in 2022-2023.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (7, 5)
GROUP BY grade_level
ORDER BY grade_level


Question: Tell me the number of chronically absent students at Lincoln Elementary for the 2022-2023 school year.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 10 and grade 11 in 2022-2023.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (10, 11)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Washington Middle with over 25 absences for 2022-2023.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023' AND absence_count > 25


Question: I need the chronic absenteeism count for Kennedy Prep in 2022-2023.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: Show enrollment by grade level at Washington Middle for 2022-2023.

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023'
ORDER BY grade_level


Question: What's the grade-by-grade enrollment at Kennedy Prep in 2023-2024?

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Kennedy Prep' AND school_year = '2023-2024'
ORDER BY grade_level


Question: In 2021-2022, how many Washington Middle students missed more than 25 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2021-2022' AND absence_count > 25


Question: For 2021-2022, what was the chronic absence headcount at Roosevelt Academy?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: How many students at Jefferson High had more than 10 absences in 2021-2022?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND absence_count > 10


Question: Which is bigger in 2024-2025: grade 6 or grade 5 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (6, 5)
GROUP BY grade_level
ORDER BY grade_level


Question: In 2021-2022, how many Jefferson High students missed more than 20 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND absence_count > 20


Question: Which grades at Roosevelt Academy had the most chronic absences in 2023-2024?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2021-2022 with enrollment between 50 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 50 AND 100
ORDER BY student_count DESC


Question: How does grade 1 enrollment compare to grade 6 in 2023-2024?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (1, 6)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 11 and grade 1 in 2021-2022.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (11, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 3 and grade 6 in 2022-2023.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (3, 6)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2022-2023 have 10-80 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 10 AND 80
ORDER BY student_count DESC


Question: List enrollments in 2021-2022 where student count is between 10 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 10 AND 100
ORDER BY student_count DESC


Question: Count students at Lincoln Elementary with over 20 absences for 2024-2025.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND absence_count > 20


Question: Which is bigger in 2024-2025: grade 6 or grade 10 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (6, 10)
GROUP BY grade_level
ORDER BY grade_level


Question: What's the count of chronically absent students at Lincoln Elementary in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Count chronically absent students by grade at Lincoln Elementary for the 2024-2025 school year.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How many kids at Washington Middle were chronically absent during 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: How many students at Roosevelt Academy had more than 15 absences in 2021-2022?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND absence_count > 15


Question: Count students at Kennedy Prep with over 20 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND absence_count > 20


Question: How many students were chronically absent at Lincoln Elementary in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 9 and grade 5 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (9, 5)
GROUP BY grade_level
ORDER BY grade_level


Question: In 2022-2023, how many Jefferson High students missed more than 25 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND absence_count > 25


Question: How many students were chronically absent at Washington Middle in 2022-2023?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: At Kennedy Prep, how many students had chronic absenteeism in 2022-2023?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: Which grade-school combinations in 2022-2023 have 50-200 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 50 AND 200
ORDER BY student_count DESC


Question: Which grades at Lincoln Elementary have chronically absent students in 2021-2022?

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: List enrollments in 2023-2024 where student count is between 10 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 10 AND 200
ORDER BY student_count DESC


Question: Which is bigger in 2021-2022: grade 6 or grade 9 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (6, 9)
GROUP BY grade_level
ORDER BY grade_level


Question: How does grade 12 enrollment compare to grade 0 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (12, 0)
GROUP BY grade_level
ORDER BY grade_level


Question: What's the count of chronically absent students at Roosevelt Academy in 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Show me the number of chronically absent kids at Jefferson High, 2022-2023.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: List enrollments in 2024-2025 where student count is between 10 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 10 AND 80
ORDER BY student_count DESC


Question: Which grade-school combinations in 2024-2025 have 20-150 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 20 AND 150
ORDER BY student_count DESC


Question: List enrollments in 2023-2024 where student count is between 10 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 10 AND 100
ORDER BY student_count DESC


Question: How does grade 0 enrollment compare to grade 9 in 2023-2024?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (0, 9)
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2022-2023 with enrollment between 30 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 30 AND 80
ORDER BY student_count DESC


Question: In 2023-2024, how many students at Kennedy Prep were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 6 and grade 2 in 2023-2024.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (6, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Jefferson High with over 15 absences for 2022-2023.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND absence_count > 15


Question: List enrollments in 2023-2024 where student count is between 30 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 30 AND 150
ORDER BY student_count DESC


Question: Show grades in 2021-2022 with enrollment between 20 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 20 AND 80
ORDER BY student_count DESC


Question: For 2023-2024, what was the chronic absence headcount at Jefferson High?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: How does grade 10 enrollment compare to grade 1 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (10, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: How many students were chronically absent at Jefferson High in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: List enrollments in 2023-2024 where student count is between 30 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 30 AND 200
ORDER BY student_count DESC


Question: Count the chronically absent students at Jefferson High for 2023-2024.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 10 and grade 8 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (10, 8)
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2021-2022 with enrollment between 30 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: In 2022-2023, how many Roosevelt Academy students missed more than 10 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND absence_count > 10


Question: How many students were chronically absent at Washington Middle in 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 4 and grade 0 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (4, 0)
GROUP BY grade_level
ORDER BY grade_level


Question: How many students were chronically absent at Washington Middle in 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: At Kennedy Prep, how many students had chronic absenteeism in 2023-2024?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Which is bigger in 2021-2022: grade 12 or grade 1 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (12, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2021-2022 have 10-150 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 10 AND 150
ORDER BY student_count DESC


Question: Show grades in 2021-2022 with enrollment between 10 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 10 AND 80
ORDER BY student_count DESC


Question: How many students at Lincoln Elementary had more than 25 absences in 2024-2025?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND absence_count > 25


Question: Show grades in 2023-2024 with enrollment between 30 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 30 AND 80
ORDER BY student_count DESC


Question: In 2021-2022, how many students at Lincoln Elementary were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Compare enrollment between grade 3 and grade 1 in 2022-2023.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (3, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: List enrollments in 2022-2023 where student count is between 10 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 10 AND 200
ORDER BY student_count DESC


Question: Compare enrollment between grade 9 and grade 7 in 2022-2023.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (9, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2021-2022 have 10-200 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 10 AND 200
ORDER BY student_count DESC


Question: Which is bigger in 2022-2023: grade 6 or grade 7 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (6, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: I need the chronic absenteeism count for Jefferson High in 2021-2022.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Count students at Lincoln Elementary with over 15 absences for 2024-2025.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND absence_count > 15


Question: Which is bigger in 2021-2022: grade 1 or grade 2 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (1, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 3 and grade 10 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (3, 10)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2023-2024 have 10-150 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 10 AND 150
ORDER BY student_count DESC


Question: Show grades in 2021-2022 with enrollment between 50 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 50 AND 150
ORDER BY student_count DESC


Question: I need the chronic absenteeism count for Kennedy Prep in 2024-2025.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Which grade-school combinations in 2024-2025 have 30-200 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 30 AND 200
ORDER BY student_count DESC


Question: Which is bigger in 2022-2023: grade 1 or grade 2 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (1, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: List enrollments in 2021-2022 where student count is between 30 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 30 AND 200
ORDER BY student_count DESC


Question: How does grade 11 enrollment compare to grade 0 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (11, 0)
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Washington Middle had more than 15 absences in 2022-2023?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023' AND absence_count > 15


Question: Count students at Jefferson High with over 10 absences for 2023-2024.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND absence_count > 10


Question: For Kennedy Prep in 2021-2022, give me chronic absence numbers by grade.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 12 and grade 3 in 2023-2024.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (12, 3)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grades at Jefferson High had the most chronic absences in 2024-2025?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Roosevelt Academy had more than 25 absences in 2024-2025?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND absence_count > 25


Question: What's the chronic absence rate at Roosevelt Academy for 2022-2023?

SELECT ROUND(100.0 * SUM(CASE WHEN is_chronically_absent THEN 1 ELSE 0 END) / COUNT(*), 1) AS chronic_pct
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023'


Question: For 2021-2022, what was the chronic absence headcount at Lincoln Elementary?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Which grade-school combinations in 2022-2023 have 20-200 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 20 AND 200
ORDER BY student_count DESC


Question: How does grade 11 enrollment compare to grade 1 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (11, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2022-2023 have 30-80 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 30 AND 80
ORDER BY student_count DESC


Question: Count the chronically absent students at Roosevelt Academy for 2023-2024.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Which is bigger in 2023-2024: grade 12 or grade 1 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (12, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Which is bigger in 2023-2024: grade 2 or grade 0 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (2, 0)
GROUP BY grade_level
ORDER BY grade_level


Question: How many chronically absent students are in each grade at Roosevelt Academy in 2022-2023?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How does grade 9 enrollment compare to grade 6 in 2023-2024?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (9, 6)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2023-2024 have 30-100 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: List enrollments in 2024-2025 where student count is between 20 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 20 AND 200
ORDER BY student_count DESC


Question: How many chronically absent students are in each grade at Roosevelt Academy in 2023-2024?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How does grade 6 enrollment compare to grade 7 in 2023-2024?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (6, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 7 and grade 2 in 2023-2024.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (7, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: In 2023-2024, how many students at Washington Middle were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Count students at Lincoln Elementary with over 20 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND absence_count > 20


Question: How many students at Kennedy Prep had more than 15 absences in 2022-2023?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND absence_count > 15


Question: How does grade 6 enrollment compare to grade 4 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (6, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Roosevelt Academy with over 10 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND absence_count > 10


Question: In 2021-2022, how many Kennedy Prep students missed more than 15 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND absence_count > 15


Question: How does grade 8 enrollment compare to grade 9 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (8, 9)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grade-school combinations in 2021-2022 have 50-100 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 50 AND 100
ORDER BY student_count DESC


Question: In 2021-2022, how many Roosevelt Academy students missed more than 25 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND absence_count > 25


Question: Count chronically absent students by grade at Lincoln Elementary for the 2021-2022 school year.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Lincoln Elementary had more than 20 absences in 2022-2023?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023' AND absence_count > 20


Question: Count students at Roosevelt Academy with over 15 absences for 2023-2024.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND absence_count > 15


Question: List enrollments in 2024-2025 where student count is between 30 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: Count the chronically absent students at Lincoln Elementary for 2021-2022.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: Tell me the number of chronically absent students at Jefferson High for the 2024-2025 school year.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: What's the grade-by-grade enrollment at Washington Middle in 2024-2025?

SELECT grade_level, student_count
FROM enrollment
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025'
ORDER BY grade_level


Question: Count students at Jefferson High with over 25 absences for 2024-2025.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND absence_count > 25


Question: Show grades in 2023-2024 with enrollment between 20 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 20 AND 80
ORDER BY student_count DESC


Question: List enrollments in 2023-2024 where student count is between 20 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 20 AND 80
ORDER BY student_count DESC


Question: Tell me the number of chronically absent students at Jefferson High for the 2023-2024 school year.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Which grade-school combinations in 2021-2022 have 30-100 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: Count students at Jefferson High with over 15 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND absence_count > 15


Question: List enrollments in 2024-2025 where student count is between 50 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 50 AND 100
ORDER BY student_count DESC


Question: For 2022-2023, what was the chronic absence headcount at Jefferson High?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: Count students at Lincoln Elementary with over 15 absences for 2022-2023.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023' AND absence_count > 15


Question: How does grade 0 enrollment compare to grade 12 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (0, 12)
GROUP BY grade_level
ORDER BY grade_level


Question: How does grade 11 enrollment compare to grade 8 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (11, 8)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Kennedy Prep with over 20 absences for 2024-2025.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND absence_count > 20


Question: Which is bigger in 2024-2025: grade 12 or grade 8 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (12, 8)
GROUP BY grade_level
ORDER BY grade_level


Question: Which is bigger in 2021-2022: grade 9 or grade 1 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (9, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Kennedy Prep with over 25 absences for 2023-2024.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2023-2024' AND absence_count > 25


Question: How does grade 8 enrollment compare to grade 2 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (8, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: What's the count of chronically absent students at Lincoln Elementary in 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: How many students at Lincoln Elementary had more than 15 absences in 2022-2023?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023' AND absence_count > 15


Question: Which is bigger in 2024-2025: grade 0 or grade 12 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (0, 12)
GROUP BY grade_level
ORDER BY grade_level


Question: How does grade 0 enrollment compare to grade 2 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (0, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: What's the count of chronically absent students at Jefferson High in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: How does grade 5 enrollment compare to grade 4 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (5, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2023-2024 with enrollment between 20 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 20 AND 150
ORDER BY student_count DESC


Question: How many kids at Jefferson High were chronically absent during 2022-2023?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: Which grades at Roosevelt Academy had the most chronic absences in 2021-2022?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: For 2024-2025, what was the chronic absence headcount at Lincoln Elementary?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: List enrollments in 2021-2022 where student count is between 10 and 150.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 10 AND 150
ORDER BY student_count DESC


Question: Compare enrollment between grade 9 and grade 0 in 2022-2023.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (9, 0)
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Jefferson High had more than 15 absences in 2021-2022?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND absence_count > 15


Question: How does grade 5 enrollment compare to grade 1 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (5, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: How many students were chronically absent at Lincoln Elementary in 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: How many students at Roosevelt Academy had more than 25 absences in 2021-2022?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2021-2022' AND absence_count > 25


Question: Count students at Washington Middle with over 10 absences for 2024-2025.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND absence_count > 10


Question: Who are the top 5 students with the most absences at Roosevelt Academy in 2024-2025?

SELECT student_id, absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025'
ORDER BY absence_count DESC
LIMIT 5


Question: How does grade 7 enrollment compare to grade 0 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (7, 0)
GROUP BY grade_level
ORDER BY grade_level


Question: Tell me the number of chronically absent students at Roosevelt Academy for the 2024-2025 school year.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: I need the chronic absenteeism count for Roosevelt Academy in 2022-2023.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: In 2021-2022, how many Lincoln Elementary students missed more than 25 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2021-2022' AND absence_count > 25


Question: Compare enrollment between grade 8 and grade 2 in 2021-2022.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (8, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: Tell me the number of chronically absent students at Washington Middle for the 2024-2025 school year.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Show chronic absence counts per grade at Washington Middle, 2023-2024.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: How does grade 11 enrollment compare to grade 7 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (11, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Kennedy Prep with over 15 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND absence_count > 15


Question: How many chronically absent students are in each grade at Washington Middle in 2022-2023?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2021-2022 with enrollment between 20 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2021-2022' AND student_count BETWEEN 20 AND 200
ORDER BY student_count DESC


Question: Which is bigger in 2023-2024: grade 1 or grade 7 enrollment?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2023-2024' AND grade_level IN (1, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: Which grades at Kennedy Prep have chronically absent students in 2022-2023?

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: Count students at Kennedy Prep with over 10 absences for 2023-2024.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2023-2024' AND absence_count > 10


Question: Count students at Jefferson High with over 20 absences for 2023-2024.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2023-2024' AND absence_count > 20


Question: For 2023-2024, what was the chronic absence headcount at Washington Middle?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: How does grade 0 enrollment compare to grade 3 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (0, 3)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 6 and grade 8 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (6, 8)
GROUP BY grade_level
ORDER BY grade_level


Question: Tell me the number of chronically absent students at Lincoln Elementary for the 2024-2025 school year.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: Count students at Kennedy Prep with over 15 absences for 2022-2023.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND absence_count > 15


Question: For 2024-2025, what was the chronic absence headcount at Jefferson High?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: I need the chronic absenteeism count for Lincoln Elementary in 2024-2025.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: In 2022-2023, how many Lincoln Elementary students missed more than 20 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023' AND absence_count > 20


Question: What's the count of chronically absent students at Kennedy Prep in 2024-2025?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: How many students at Jefferson High had more than 20 absences in 2022-2023?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND absence_count > 20


Question: Which grade-school combinations in 2023-2024 have 50-80 students?

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 50 AND 80
ORDER BY student_count DESC


Question: Count chronically absent students by grade at Jefferson High for the 2024-2025 school year.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Jefferson High with over 20 absences for 2021-2022.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND absence_count > 20


Question: How does grade 5 enrollment compare to grade 8 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (5, 8)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 10 and grade 4 in 2021-2022.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (10, 4)
GROUP BY grade_level
ORDER BY grade_level


Question: How many chronically absent students are in each grade at Jefferson High in 2021-2022?

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2021-2022' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: Count the chronically absent students at Jefferson High for 2024-2025.

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND is_chronically_absent = TRUE


Question: How does grade 0 enrollment compare to grade 1 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (0, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: In 2023-2024, how many Kennedy Prep students missed more than 15 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2023-2024' AND absence_count > 15


Question: How does grade 4 enrollment compare to grade 7 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (4, 7)
GROUP BY grade_level
ORDER BY grade_level


Question: Count students at Roosevelt Academy with over 25 absences for 2023-2024.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND absence_count > 25


Question: List enrollments in 2024-2025 where student count is between 10 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2024-2025' AND student_count BETWEEN 10 AND 100
ORDER BY student_count DESC


Question: How many students at Roosevelt Academy had more than 25 absences in 2023-2024?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND absence_count > 25


Question: Compare enrollment between grade 9 and grade 10 in 2024-2025.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (9, 10)
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2022-2023 with enrollment between 10 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 10 AND 80
ORDER BY student_count DESC


Question: How does grade 6 enrollment compare to grade 1 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (6, 1)
GROUP BY grade_level
ORDER BY grade_level


Question: Show grades in 2023-2024 with enrollment between 30 and 100.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 30 AND 100
ORDER BY student_count DESC


Question: Count students at Lincoln Elementary with over 10 absences for 2022-2023.

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2022-2023' AND absence_count > 10


Question: List enrollments in 2022-2023 where student count is between 30 and 80.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2022-2023' AND student_count BETWEEN 30 AND 80
ORDER BY student_count DESC


Question: How does grade 10 enrollment compare to grade 3 in 2021-2022?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (10, 3)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 10 and grade 2 in 2021-2022.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (10, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: How many students at Jefferson High had more than 10 absences in 2024-2025?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND absence_count > 10


Question: How does grade 0 enrollment compare to grade 2 in 2024-2025?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2024-2025' AND grade_level IN (0, 2)
GROUP BY grade_level
ORDER BY grade_level


Question: In 2022-2023, how many Jefferson High students missed more than 15 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2022-2023' AND absence_count > 15


Question: In 2024-2025, how many Washington Middle students missed more than 10 days?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Washington Middle' AND school_year = '2024-2025' AND absence_count > 10


Question: In 2023-2024, how many students at Roosevelt Academy were chronically absent?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2023-2024' AND is_chronically_absent = TRUE


Question: Show chronic absence counts per grade at Jefferson High, 2024-2025.

SELECT grade_level, COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Jefferson High' AND school_year = '2024-2025' AND is_chronically_absent = TRUE
GROUP BY grade_level
ORDER BY grade_level


Question: List grades with chronic absenteeism at Kennedy Prep for 2022-2023.

SELECT DISTINCT grade_level
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2022-2023' AND is_chronically_absent = TRUE
ORDER BY grade_level


Question: At Roosevelt Academy, how many students had chronic absenteeism in 2022-2023?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND is_chronically_absent = TRUE


Question: How many students at Lincoln Elementary had more than 15 absences in 2023-2024?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Lincoln Elementary' AND school_year = '2023-2024' AND absence_count > 15


Question: List enrollments in 2023-2024 where student count is between 50 and 200.

SELECT school_name, grade_level, student_count
FROM enrollment
WHERE school_year = '2023-2024' AND student_count BETWEEN 50 AND 200
ORDER BY student_count DESC


Question: How many students were chronically absent at Kennedy Prep in 2021-2022?

SELECT COUNT(*) AS chronic_count
FROM attendance
WHERE school_name = 'Kennedy Prep' AND school_year = '2021-2022' AND is_chronically_absent = TRUE


Question: How many students at Roosevelt Academy had more than 25 absences in 2022-2023?

SELECT COUNT(*) AS high_absence_count
FROM attendance
WHERE school_name = 'Roosevelt Academy' AND school_year = '2022-2023' AND absence_count > 25


Question: How does grade 3 enrollment compare to grade 5 in 2022-2023?

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2022-2023' AND grade_level IN (3, 5)
GROUP BY grade_level
ORDER BY grade_level


Question: Compare enrollment between grade 11 and grade 4 in 2021-2022.

SELECT grade_level, SUM(student_count) AS total_enrollment
FROM enrollment
WHERE school_year = '2021-2022' AND grade_level IN (11, 4)
GROUP BY grade_level
ORDER BY grade_level