ehrQL is OpenSAFELY’s query language, originally designed for querying data from electronic health records.
This blog post describes how we’ve adapted ehrQL to support querying education data from the TED dataset. We have used ehrQL, with these adaptations, to replicate some of the research (using dummy data) in