SparkSQL only examples that process William Shakespeare's plays. The text of William Shakespeare's plays are from https://old.datahub.io/dataset/william-shakespeare-plays .
SQL scripts:
$SPARK_HOME/bin/spark-sql -f length_of_play.sql
Python scripts:
$SPARK_HOME/bin/spark-submit length_of_play.py