harbor run -t openthoughts/book-portfolio-analysisharbor download openthoughts/book-portfolio-analysisYou are given an advanced book portfolio analysis problem whose data is available in /workdir/data/.
Your task has TWO phases:
PHASE 1 - Database Setup:
PHASE 2 - Complex Portfolio Query: Write SQL queries to find exactly 8 books that meet ALL of these constraints:
FINANCIAL CONSTRAINTS:
TEMPORAL CONSTRAINTS:
DIVERSITY CONSTRAINTS:
CONTENT CONSTRAINTS:
Save your final result as a CSV file in /workdir/sol.csv with the format: book_title,author,publication_year,genre,price,pages,decade,era_category,has_number "Book Title 1","Author Name",1985,"Fiction",12.99,350,1980,"1960_to_1990","no" ...
Where:
Note that you do not have access to the internet. You have access to the following libraries:
The workdir is /workdir