My inner join query looks as below
SELECT list.id, list.name, sa.createdBy FROM list INNER JOIN data sa ON sa.listId = list.id WHERE sa.type