Primary keys in CREATE, some work on subqueries