diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/statistics.graphql b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/statistics.graphql
new file mode 100644
index 0000000000000000000000000000000000000000..af610d68d365061a4fbf7ac9ff4bd334c3b54e30
--- /dev/null
+++ b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/statistics.graphql
@@ -0,0 +1,50 @@
+fragment statistics on StatisticsByPersonType {
+  participationCount
+  absenceCount
+  absenceReasons {
+    id
+    shortName
+    name
+    colour
+    countAsAbsent
+    count
+  }
+  tardinessSum
+  tardinessCount
+  extraMarks {
+    id
+    shortName
+    name
+    colourFg
+    colourBg
+    showInCourseBook
+    count
+  }
+}
+
+query statisticsByPerson (
+  $personId: ID!
+  $termId: ID!
+) {
+  statistics: statisticsByPerson(
+    $personId: ID!
+    $termId: ID!
+  ) {
+  ...statistics
+}
+
+query statisticsByGroup (
+  $groupId: ID!
+  $termId: ID!
+) {
+  statistics: statisticsByGroup(
+    $groupId: ID!
+    $termId: ID!
+  ) {
+  persons {
+    id
+    firstName
+    lastName
+    ...statistics
+  }
+}