StrataScratch
Find all posts which were reacted to with a heart. For such posts output all columns from facebook_posts table.
table name: facebook_reactions
table name: facebook_posts
Solution:
select distinct p.* from facebook_posts as p
join facebook_reactions as r
on p.post_id = r.post_id
where r.reaction='heart'