That's not how type providers work - provided methods can't have return types which vary based on input values.
However, what you can do is use your query string as a static parameter to the type provider itself, and then expose a method with a signature that depends on the compile-time argument. Many of the documented examples use exactly this technique (see e.g. the section titled "A Type Provider That Uses Static Parameters" here).