How can you create a new feature service from a feature service query in ArcGIS Online?
I don't have an AGOL account, but in the portals I've worked with you can do this from my contents. Add new item, select feature service, and the dialog should give you the option to create the service from an existing feature layer.
To do this manually via HTTP, first use this request to create an "empty" feature service: ArcGIS REST API
Then, using the JSON from an existing layer on another feature service, using this request to add a layer to the feature service you just created: ArcGIS REST API
Retrieving data ...