温度という名前の Apache Spark DataFrame があります。データのサンプルを次の表に示します。

Spark SQL クエリを使用して、次のテーブルを生成する必要があります。

どのようにクエリを完成させますか?答えるには、適切な値を正しいターゲットにドラッグします。各値は、複数回使用することも、まったく使用しないこともできます。コンテンツを表示するには、分割バーをペイン間でドラッグするか、スクロールする必要がある場合があります。
注: 正しい選択ごとに 1 ポイントの価値があります。

正解:

Explanation:

Box 1: PIVOT
PIVOT rotates a table-valued expression by turning the unique values from one column in the expression into multiple columns in the output. And PIVOT runs aggregations where they're required on any remaining column values that are wanted in the final output.
Reference:
https://learnsql.com/cookbook/how-to-convert-an-integer-to-a-decimal-in-sql-server/
https://docs.microsoft.com/en-us/sql/t-sql/queries/from-using-pivot-and-unpivot