Find the name and partition id for users who tweeted less than twice.
create table user_profiles (name varchar, partitionid varchar, uid varchar, PRIMARY KEY (name)); create table tweets (uid varchar, PRIMARY KEY (uid))
select t1.name, t1.partitionid from user_profiles as t1 join tweets as t2 on t1.uid = t2.uid group by t2.uid having count(*) < 2