This document presents a master's thesis on SPARQL query rewriting with paths, focusing on eliminating projection in queries to address the NP-completeness of query evaluation. It details methods for rewriting queries by eliminating non-distinguished variables, providing examples and transformation rules for various query structures. The document also discusses related works and outlines a systematic approach to optimizing SPARQL queries through path patterns.