OnGraph interview question

Basically asked about SQL query related question