Retrieving data from database drupal 7

I have a field_collection field named field_org_votes that has 3 fields: field_data_field_vote_value field_data_field_vote_member field_data_field_vote_party

I am struggling with a query to pull relevant information out of the db in preparation for field_collection migration. If you have done a similar thing in the past please help put me on the right track.