This one query determines if the block is spending only confirmed, unspent, mature outputs. We call this confirmation, which is entirely divorced from validation. Validation does not care about anything but input-output script validity and other odd structural constraints.