Comparative Advantage in Innovation and Production