If you have the sql_id of the sql query, then you can create a baseline of that using below code.

Suppose you have multiple plan hash value of the sql_id and you wish to create baseline with a particular plan hash value , then below one can be used.