Now this script just extracts positions from the first table and then ouputs all the data for those positions from the second table