#INCLUDE ${WORKSPACEPROJECT}/GC_BASE_CONSTANTS.qry

#INCLUDE ${WORKSPACEPROJECT}/QUERY2_CONSTANTS.qry
#INTEROPERATORPARALLELIZATION TripCellCounter ${NUM_FRAGMENTS_Q1} ${Q1_BUFFERSIZE} GroupedAggregateMultithreadedTransformationStrategy

#IFSRCNDEF taxi
#INCLUDE ${WORKSPACEPROJECT}/Source.qry
#ENDIF

#PARSER PQL
#DOREWRITE false
#INCLUDE ${WORKSPACEPROJECT}/Query2Part1.pql

out = MAP({ expressions = [
					 ['toInteger(dropoff_cell_id/${ID_LEFTSHIFT})','x'],['toInteger(dropoff_cell_id%${ID_LEFTSHIFT})','y'], ['profit/empty_taxis', 'profitability']
                  ]
             },
             profitability
           )