Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a
correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a Fabric eventstream that loads data into a table named Bike_Location in a KQL database. The table contains the following columns:
BikepointID
Street
Neighbourhood
No_Bikes
No_Empty_Docks
Timestamp
You need to apply transformation and filter logic to prepare the data for consumption. The solution must return data for a neighbourhood named Sands End when No_Bikes is at least 15. The results must be ordered by No_Bikes in ascending order.
Solution: You use the following code segment:

Does this meet the goal?
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a Fabric eventstream that loads data into a table named Bike_Location in a KQL database. The table contains the following columns:
BikepointID
Street
Neighbourhood
No_Bikes
No_Empty_Docks
Timestamp
You need to apply transformation and filter logic to prepare the data for consumption. The solution must return data for a neighbourhood named Sands End when No_Bikes is at least 15. The results must be ordered by No_Bikes in ascending order.
Solution: You use the following code segment:

Does this meet the goal?
Show answerHide answer
Correct answer: B no
Explanation
Explanation:The provided KQL code has multiple issues. First, filter should be where in KQL. Second, the project clause appears twice, which is redundant but not fatal. The critical problem is that the final output does not include the No_Bikes column (it is projected out in the second project), so ordering by No_Bikes becomes meaningless after the column is removed.
Correct Option (B – No):
The second project statement omits No_Bikes, but the requirement does not explicitly state that No_Bikes must be in the output. However, ordering by No_Bikes before projecting it out is allowed in KQL (ordering happens before projection). The actual fatal error is the use of filter instead of where — KQL does not recognize filter as a valid operator.
Additionally, sort by No_Bikes without specifying ascending/descending defaults to ascending, which is correct, but the syntax sort by is valid. However, the filter keyword makes the entire query invalid.
The query would fail to execute, thus not meeting the goal.
Why the answer is No (detailed):
filter is not a KQL operator – KQL uses where for row filtering. filter would cause a syntax error.
Column omission – While not required by the goal, removing No_Bikes makes the output less useful, but the primary failure is the invalid keyword.
Incorrect Option (A – Yes):
This would only be correct if filter were replaced with where. Since the solution uses invalid syntax, it does not meet the goal.
Reference:
Microsoft Kusto/KQL documentation: Query operators – "Use where to filter rows based on a predicate. filter is not a valid KQL operator." sort by – "Sorts rows by one or more columns. Use asc or desc."
