CROSS JOIN between the platforms and experiment names to generate all possible combinations.LEFT JOIN with the Experiments table on both platform and experiment_name.GROUP BY to group the results by platform and experiment_name.COUNT to count the number of experiments for each group, and COALESCE to convert NULL counts to zero.
erDiagram
Experiments {
int experiment_id PK "Primary Key"
enum platform "One of ('Android', 'IOS', 'Web')"
enum experiment_name "One of ('Reading', 'Sports', 'Programming')"
}