Simplified fragment and query parsing