If (like me in this exact moment) you have a mess of a Debian (Ubuntu, Mint) system, and you want to know what packages you have installed from what branch / origin (stable, testing, unstable, experimental, backports) you can use Aptitude for that:
aptitude search '?narrow(~i, ~Abackports)'
Substitute to "backports" the repo you want to list, and you will obtain a fancy package list.
The ?narrow option tells aptitude to list only the
installed packages. If you remove it, you'll get all packages you
can install from that branch.
Another way is to install
apt-show-versions and then use:
apt-show-versions -b | grep experimental
(again, substitute to "experimental" the branch you're interested in)