The procedure to perform a RMQ is already shown in introduction. The pseudo-code for checking Range Minimum Query will be:
Procedure RangeMinimumQuery(SegmentTree, qLow, qHigh, low, high, position):
if qLow <= low and qHigh >= high //Total Overlap
Return SegmentTree[position]
el...