FIX: query for the common tags

fixes #2