Fixed argument handling between sparq and ZSPARQL refs #19537