What object to use when creating a query that pulls a solicitation

I need to know where the Contact data is stored when you Generate Output for a particular source code; or what data sources do I need to create my own query that shows everyone that was solicited for a particular appeal mailing.

I know that the RFMMain and the Net Contact - can be used to identify the universe of people - but I don't know how to associate a Net Contat with a particular appeal and segment and source code.

I would like a listing of

Appeal - March Appeal 2007
Segment - 0-10 - Source Code - 123
Margo Rash
Fred Smith

Segment 11-25 - SOurce Code - 345
Jospeh Moore
ALice Cooper