1. Please tell us what your control does ("A control was added which invokes the SysQueryForm"), especially which query you're using. Is there a problem with showing as a screenshot of the ranges?
If you take the the query from Form2, what ranges do you have there? To find it, open Options > Advanced filter or sort. If you see the same ranges there, you control works correctly but your assumptions about the query are wrong.
2.What the actual problem? Do you know how to set field values, insert records and such things? If not, let's learn things one by one, instead of trying to do deal with ten other problems at once.
If you know basics, I guess the biggest problem may be getting select records. But what exactly do you mean by "selected"? All records returned by the filtered query, only records highlighted in the grid or records marked by ticking a checkbox, for instance?
If you mean the query, use the QueryRun object returned from Tbl3_ds.queryRun() to iterate the records. If highlighted records, use MultiSelectionHelper. If using a checkbox, it depends on how it's implemented (e.g. it may be a temporary table or an edit method populating a Set object).
We'll have a more concrete and helpful discussion if you start giving us more information.