Is there a Drupal module that can create a content type from an SQL Query or a CSV file?
A module referred to as ECK has the functionality you're looking for.

Although, it works in the entity system to create new entity types. You might be looking for something to pragmatically create entity bundles (node content types). I would suggest researching the difference between Entity's and Bundles if you're not familiar.