select count(*) from wf_places where workflow_key = :workflow_key and place_name = :place_name select count(*) from wf_places where workflow_key = :workflow_key and place_name = :place_name select place_key from wf_places where workflow_key = :workflow_key insert into wf_places (place_key, place_name, workflow_key) values (:place_key, :place_name, :workflow_key)