This is already in the new database system to be released soon. You can even select combinations like stock-stock, stock-ETF, ETF-ETF, ETN-ETN, ...
You could even say: give me all stock-ETF pairs which perform well using long-only pair trading ("stock-outperforms-index-arbitrage"), ...