these are sentences that express present situations, which are not possible to happen.
The if - clause also states a conditional sentence.
The use of the past form of the verbs have, can, and were
is important to note since th act of wishing wich is something attainableput the verb in subjunctive mood.
Theses expressions of wishing goes with the verbs could were or would