Learning Relations: Basing Top-Down Methods on Inverse Resolution