Site scan summary SQL Query

If you look at the site scan summary in Nexpos,
There are assets, active assets, and inactive assets defined for the asset.
We must export a list of assets that appear as queries on each asset.
How do I export each asset list to a query?