Question: Show the id, name of each editor and the number of journal committees they are on.
Schema: create table editor (editor_id varchar, name varchar, editor_id varchar, PRIMARY KEY (editor_id)); create table journal_committee (editor_id varchar, PRIMARY KEY (editor_id))
SQL: select t1.editor_id, t1.name, count(*) from editor as t1 join journal_committee as t2 on t1.editor_id = t2.editor_id group by t1.editor_id