SELECT 
  player_id,
  COUNT(*) AS pet_count
FROM 
  "player_pet"
WHERE 
  (data->>'ID')::INT IN (273, 274)  -- 适配JSONB的data字段取id并转整型
GROUP BY 
  player_id
HAVING 
  COUNT(*) >= 2;  -- 筛选出拥有273/274宠物的玩家，可根据需求调整为>=2（同时拥有两者）