Yes, it is constructed dynamically. The queries come from qa-include/db/selects.php and there you can see it passes through 2-3 functions each providing some selections. So, it won't be good to get a query running once ans use it elsewhere -- because in future some plugin/version might override some of the select function.
In case you don't care for this, you might dump the query using print_r when called from qa-include/qa-feed.php for the respective cases.