Hi,
Thanks for reaching out to Microsoft Q&A.
You can use pyspark to query the data from sql pool., let me know if this is what you are looking for?
https://learn.microsoft.com/en-us/azure/synapse-analytics/get-started-analyze-spark#main
Please Upvote and Accept as answer if the reply was helpful, this will be benefitting the other community members who go through the same issue.