Prepares internal query (with `%s` placeholder) with fragment for each `ParameterValue`, and calculate parameter offset for each one.