Practice · History · Medium

Temples by period

Count the temples in each period. Return period and a column named temples, most first, breaking ties by period name.

Runs in your browser. No signup needed.

What you are given

temples(period). Periods include New Kingdom, Ptolemaic and later mixes.

Starting point

SELECT period, COUNT(*) AS temples
FROM temples
GROUP BY ...
ORDER BY ...;

The reference solution is checked automatically when you run your query on the practice page — results are compared row by row, and order matters for this one.

Did you know

Many of Egypt’s best-preserved temples are the youngest: Edfu and Dendera are Ptolemaic, built while Rome was rising. (Touropia; Wikipedia)

More History challenges

Open it in the playground →