Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
unknown invalid syntax

Hello all,
I'm new to quantopian, and have been trouble with the first line of code in the following block. I keep getting invalid syntax on that exact line and would love any help.
Thanks

context.fundamentals = get_fundamentals(
query(
fundamentals.asset_classification.morningstar_sector_code,
fundamentals.valuation_ratios.pe_ratio, #this line gets me the P/E ratios
fundamentals.operation_ratios.roa,#filter for the ROA, which is just net income/total assets
)
.filter(
fundamentals.operation_ratios.roa <= .25
)
.filter(
fundamentals.valuation_ratios.pe_ratio >= 22
) #filtering for P/E's of less than 22; i would like to make this specific to each company's industry if possible STILL HAVENT DONE THIS)
.filter(
fundamentals.valuation.market_cap != None
)
.filter(fundamentals.valuation.shares_outstanding != None)
.filter(fundamentals.asset_classification.morningstar_sector_code == 207)
.filter(fundamentals.asset_classification.morningstar_sector_code == 103)

    .order_by(fundamentals.valuation.market_cap.desc())  
    .limit(num_stocks)  
)