naive attempt at subject selection with postgresql and array indexes