Spain temporarily occupies, along with the Netherlands, the fifth position in the ranking of countries by the return obtained in the seventh FP, having received an 8.3% of the total budget allocated to the countries of the EU27, after Germany (18.2 %), the UK (16.8%), France (12.1%) and Italy (9.3%). As for the distribution by return within Spain, Madrid (29.7%) is placed in the first position closely followed by Catalonia (29.1%).
You can consult the full document on the website of CDTI.