From d7032d520402ac8efee40b751d23e199a600df4a Mon Sep 17 00:00:00 2001 From: Wieczorek Date: Thu, 3 Mar 2022 22:15:53 +0100 Subject: [PATCH] Done exercise 00 and started exercise 01 --- Big_Data_For_Engineers/.env | 2 + ...xercise00_Jupyter_Basics_SQL_Example.ipynb | 238 ++++- Big_Data_For_Engineers/exercise00/test_file | 1 + .../exercise01/Exercise01_SQL_Brush_Up.ipynb | 857 +++++++++++++++++- 4 files changed, 1066 insertions(+), 32 deletions(-) create mode 100644 Big_Data_For_Engineers/.env create mode 100644 Big_Data_For_Engineers/exercise00/test_file diff --git a/Big_Data_For_Engineers/.env b/Big_Data_For_Engineers/.env new file mode 100644 index 0000000..22934c8 --- /dev/null +++ b/Big_Data_For_Engineers/.env @@ -0,0 +1,2 @@ +HOST_UID=1000 +HOST_GID=1000 diff --git a/Big_Data_For_Engineers/exercise00/Exercise00_Jupyter_Basics_SQL_Example.ipynb b/Big_Data_For_Engineers/exercise00/Exercise00_Jupyter_Basics_SQL_Example.ipynb index 96d8505..ca017ae 100644 --- a/Big_Data_For_Engineers/exercise00/Exercise00_Jupyter_Basics_SQL_Example.ipynb +++ b/Big_Data_For_Engineers/exercise00/Exercise00_Jupyter_Basics_SQL_Example.ipynb @@ -27,7 +27,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -37,7 +37,15 @@ "id": "wcohBwLUbN0b", "outputId": "31bc09c5-95ae-492f-979e-17cbd0a07d0b" }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Hello World\n" + ] + } + ], "source": [ "print(\"Hello World\")" ] @@ -54,7 +62,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -64,7 +72,18 @@ "id": "TLYAvOpFbN0-", "outputId": "b32e3241-ebcf-4bda-eccb-a63b78c09bc0" }, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "maxX = 10\n", "[x * x for x in range(maxX)]" @@ -104,7 +123,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -114,7 +133,15 @@ "id": "cY2YeVQNbN1W", "outputId": "8df8f4ca-cfee-410b-b378-5cacdeedd077" }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Test File\n" + ] + } + ], "source": [ "%%bash\n", "echo \"Test File\" > test_file\n", @@ -143,7 +170,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -153,7 +180,18 @@ "id": "3nwSdHJybN1v", "outputId": "cbabccb3-b36b-4f27-f5cc-e6f5eebd9cde" }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "First I modify the file.\n", + "Then I check its content:\n", + "\n", + "Hello World\n" + ] + } + ], "source": [ "print(\"First I modify the file.\")\n", "\n", @@ -183,7 +221,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": { "colab": {}, "colab_type": "code", @@ -211,7 +249,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -221,7 +259,15 @@ "id": "I9LFmqFobN2V", "outputId": "e9be1a64-5cd5-4a91-9677-b96c81d33a29" }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[('PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit',)]\n" + ] + } + ], "source": [ "import sqlalchemy\n", "\n", @@ -242,7 +288,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -272,7 +318,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -282,7 +328,36 @@ "id": "UYQzRe-bbN2w", "outputId": "a6eaa8c8-b2bf-44e1-c3a2-dfe32766fbff" }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " * postgresql://postgres:***@postgres:5432/beer.stackexchange.com\n", + "1 rows affected.\n" + ] + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
version
PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
" + ], + "text/plain": [ + "[('PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit',)]" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "%%sql\n", "SELECT version();" @@ -300,7 +375,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -310,7 +385,84 @@ "id": "IC8xExyvbN27", "outputId": "106a7c2e-3998-4319-f833-02a1a363f729" }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Run a query!\n", + " * postgresql://postgres:***@postgres:5432/beer.stackexchange.com\n", + "10 rows affected.\n" + ] + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
iddisplayname
-1Community
1Geoff Dalgas
2Kasra Rahjerdi
3Adam Lear
4Arie Litovsky
5Brian Nickel
6Jeremy T
7Tom Medley
8LessPop_MoreFizz
9Nick Craver
" + ], + "text/plain": [ + "[(-1, 'Community'),\n", + " (1, 'Geoff Dalgas'),\n", + " (2, 'Kasra Rahjerdi'),\n", + " (3, 'Adam Lear'),\n", + " (4, 'Arie Litovsky'),\n", + " (5, 'Brian Nickel'),\n", + " (6, 'Jeremy T'),\n", + " (7, 'Tom Medley'),\n", + " (8, 'LessPop_MoreFizz'),\n", + " (9, 'Nick Craver')]" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "print(\"Run a query!\")\n", "%sql SELECT Id, DisplayName FROM Users ORDER BY Id LIMIT 10;" @@ -329,7 +481,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -340,7 +492,50 @@ "outputId": "e50273c9-2296-4211-ea47-ff8455b2d6fb", "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " * postgresql://postgres:***@postgres:5432/beer.stackexchange.com\n", + "8 rows affected.\n", + "+--------------+-------+\n", + "| creationyear | count |\n", + "+--------------+-------+\n", + "| 2014.0 | 1527 |\n", + "| 2015.0 | 1164 |\n", + "| 2016.0 | 1240 |\n", + "| 2017.0 | 1078 |\n", + "| 2018.0 | 814 |\n", + "| 2019.0 | 664 |\n", + "| 2020.0 | 825 |\n", + "| 2021.0 | 1017 |\n", + "+--------------+-------+\n" + ] + }, + { + "data": { + "text/plain": [ + "Text(0, 0.5, 'Number of Users')" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEKCAYAAADjDHn2AAAAOXRFWHRTb2Z0d2FyZQBN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/YPm8U59zuP1+Mb7mziPHmNcBjA4UCwPbNtn8o6Ygy58DXgLWSJkj6uKTrVc278A6oxveRtKoMarhW0txyqqXAC8pAjB8vg+TdUo75A0lfLvvfJOk1Jf42Sd9SNdfE7Woyr4Pt3wB/B5wt6fVUhe08Sf/QkNuHBvaXdKGqORDWSVrQEH9E0v+UdB3V0DMRLdth5uCOGCMHUr2pPpQ5wIG27yy/aP/L9sslTQR+JOkKqmHIT7D9UBki5VpJK6nmIzjQ9kHw/+80BiwEsP1iSS8Crmh49HUQ1WB/W4ENkv7V9qbGpGxfKulU4KvAqyS9jmpI9DlUA9+tlHS47auBt9t+sNyRXC/pm7YfoHpL/xbbHxjBzy3GuRSLiCdbbfvOsvw64CWS3lTWn0v1C7of+BdJh1MNuTAFqBsy/VXAvwLYvk3Sz4GBYrHK9n8BSFpPNbTJpibn+DdgF9sbJP11ye+msu3ZJbergXdLOqHEp5X4A8A2qoHsIrZbikWMN+uANw2z/dGGZQGn2768cQdJbwMmAYfYfkzVKMJ/UHPd4eYGaZynYBtD/7t8onwGzvcR218YlNsRwJ8Ch9n+tapRjQdy+23aKWKk0mYR4833gInlf+YASHq5pFc32fdy4LQyCi+S9pe0K9UdxuZSKF5DdScA8DDVlJnNXA28eeA8wHSqYblH6nLg7armR0DSlDKK63OBX5VC8SKqKTgjRi3FIsYVV93/TgCOKl1n1wEfpPl8BV+kGhH1xtJQ/QWq//WfB/RJWkNVAG4r536Aql3jFkkfH3Sus4EJktZSTfjzNo9i5jPbV1DNOXJNOecFVIXqO8BOkn5CNSvjtSO9RkSjdJ2NiIhaubOIiIhaKRYREVErxSIiImqlWERERK0Ui4iIqJViERERtVIsIiKiVopFRETU+n+e1NAt8V/ElAAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", @@ -366,6 +561,13 @@ "ax.set_xlabel('Creation Year')\n", "ax.set_ylabel('Number of Users')" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { diff --git a/Big_Data_For_Engineers/exercise00/test_file b/Big_Data_For_Engineers/exercise00/test_file new file mode 100644 index 0000000..557db03 --- /dev/null +++ b/Big_Data_For_Engineers/exercise00/test_file @@ -0,0 +1 @@ +Hello World diff --git a/Big_Data_For_Engineers/exercise01/Exercise01_SQL_Brush_Up.ipynb b/Big_Data_For_Engineers/exercise01/Exercise01_SQL_Brush_Up.ipynb index 7f84584..1253cb7 100644 --- a/Big_Data_For_Engineers/exercise01/Exercise01_SQL_Brush_Up.ipynb +++ b/Big_Data_For_Engineers/exercise01/Exercise01_SQL_Brush_Up.ipynb @@ -49,7 +49,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -62,7 +62,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -72,9 +72,38 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " * postgresql://postgres:***@postgres:5432/discogs\n", + "1 rows affected.\n" + ] + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
version
PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
" + ], + "text/plain": [ + "[('PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit',)]" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "%%sql\n", "SELECT version();" @@ -106,9 +135,47 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " * postgresql://postgres:***@postgres:5432/discogs\n", + "4 rows affected.\n" + ] + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
table_name
artists
released_by
releases
tracks
" + ], + "text/plain": [ + "[('artists',), ('released_by',), ('releases',), ('tracks',)]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "%%sql \n", "SELECT table_name\n", @@ -126,9 +193,174 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " * postgresql://postgres:***@postgres:5432/discogs\n", + "17 rows affected.\n" + ] + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
table_namecolumn_namedata_typeis_nullableordinal_position
artistsartist_idintegerNO1
artistsnamecharacter varyingYES2
artistsrealnametextYES3
artistsprofiletextYES4
artistsurltextYES5
released_byrelease_idintegerNO1
released_byartist_idintegerNO2
releasesrelease_idintegerNO1
releasesreleaseddateNO2
releasestitletextNO3
releasescountrycharacter varyingYES4
releasesgenrecharacter varyingNO5
tracksrelease_idintegerNO1
trackspositioncharacter varyingYES2
trackstitletextYES3
tracksdurationintegerYES4
trackstrack_idintegerNO5
" + ], + "text/plain": [ + "[('artists', 'artist_id', 'integer', 'NO', 1),\n", + " ('artists', 'name', 'character varying', 'YES', 2),\n", + " ('artists', 'realname', 'text', 'YES', 3),\n", + " ('artists', 'profile', 'text', 'YES', 4),\n", + " ('artists', 'url', 'text', 'YES', 5),\n", + " ('released_by', 'release_id', 'integer', 'NO', 1),\n", + " ('released_by', 'artist_id', 'integer', 'NO', 2),\n", + " ('releases', 'release_id', 'integer', 'NO', 1),\n", + " ('releases', 'released', 'date', 'NO', 2),\n", + " ('releases', 'title', 'text', 'NO', 3),\n", + " ('releases', 'country', 'character varying', 'YES', 4),\n", + " ('releases', 'genre', 'character varying', 'NO', 5),\n", + " ('tracks', 'release_id', 'integer', 'NO', 1),\n", + " ('tracks', 'position', 'character varying', 'YES', 2),\n", + " ('tracks', 'title', 'text', 'YES', 3),\n", + " ('tracks', 'duration', 'integer', 'YES', 4),\n", + " ('tracks', 'track_id', 'integer', 'NO', 5)]" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "%%sql \n", "SELECT table_name, column_name, data_type, is_nullable, ordinal_position\n", @@ -150,12 +382,63 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " * postgresql://postgres:***@postgres:5432/discogs\n", + "1 rows affected.\n" + ] + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
artist_idnamerealnameprofileurl
3840RadioheadNoneAlternative Rock (Modern Rock) band from Oxfordshire, England (United Kingdom).\r", + " \r", + " The name Radiohead comes from the [a=Talking Heads] song, "Radio Head", from the "[url=http://www.discogs.com/Talking-Heads-True-Stories/master/39386]True Stories[/url]" album. \r", + " \r", + " Formed by school friends in 1986, Radiohead did not release their first single until 1992's "[r=767600]". The cathartic "[url=http://www.discogs.com/Radiohead-Creep/master/21481]Creep[/url]", from the debut album "[url=http://www.discogs.com/Radiohead-Pablo-Honey/master/13344]Pablo Honey[/url]" (1993), became a worldwide hit as grunge music dominated radio airwaves. \r", + " \r", + " Radiohead were initially branded as a one-hit wonder abroad, but caught on at home in the UK with their second album, "[url=http://www.discogs.com/Radiohead-The-Bends/master/17008]The Bends[/url]" (1995), earning fans with their dense guitar atmospheres and front man [a=Thom Yorke]'s expressive singing. The album featured the hits "[url=http://www.discogs.com/Radiohead-High-Dry-Planet-Telex/release/199387]High & Dry[/url]", "[r=1463625]" and "[url=http://www.discogs.com/Radiohead-Fake-Plastic-Trees/master/21526]Fake Plastic Trees[/url]". \r", + " \r", + " The band's third album, "[url=http://www.discogs.com/Radiohead-OK-Computer/master/21491]OK Computer[/url]" (1997), propelled them to greater attention. Popular both for its expansive sound and themes of modern alienation, the album has been acclaimed by critics as a landmark record of the 1990's, some critics go as far to consider it one of the best of all time. "[url=http://www.discogs.com/Radiohead-Kid-A/master/21501]Kid A[/url]" (2000) marked further evolution, containing influences from experimental electronic music.\r", + " \r", + " "[url=http://www.discogs.com/Radiohead-Hail-To-The-Thief/master/16962]Hail To The Thief[/url]" (2003) was seen as a conventional return to the guitar and piano-led rock sound. After fulfilling their contract with EMI, Radiohead released "[url=http://www.discogs.com/Radiohead-In-Rainbows/master/21520]In Rainbows[/url]" (2007) famously via a pay-what-you-want model. Their latest album, "[url=https://www.discogs.com/Radiohead-A-Moon-Shaped-Pool/master/998252]A Moon Shaped Pool[/url]", was released in May 2016.\r", + " \r", + " Radiohead's original influences were cited as alternative rock and post-punk bands like [url=http://www.discogs.com/artist/Smiths,+The]The Smiths[/url], [a=Pixies], [a=Magazine], [a=Joy Division], and [a=R.E.M.] (with lead singer of the band, Thom Yorke, refering to himself as an 'R.E.M. groupie').http://www.radiohead.com
" + ], + "text/plain": [ + "[(3840, 'Radiohead', None, 'Alternative Rock (Modern Rock) band from Oxfordshire, England (United Kingdom).\\r \\r The name Radiohead comes from the [a=Talking Heads] song, \"Radio ... (2253 characters truncated) ... [a=Pixies], [a=Magazine], [a=Joy Division], and [a=R.E.M.] (with lead singer of the band, Thom Yorke, refering to himself as an \\'R.E.M. groupie\\').', 'http://www.radiohead.com')]" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "%%sql\n", - "..." + "SELECT *\n", + "FROM artists\n", + "WHERE name = 'Radiohead'" ] }, { @@ -167,12 +450,558 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " * postgresql://postgres:***@postgres:5432/discogs\n", + "129 rows affected.\n" + ] + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
title
2+2=5
2+2=5
2+2=5
2+2=5
2+2=5
2+2=5
27 5 94 The Astoria London Live
7 Television Commercials
7 Television Commercials
7 Television Commercials.
Airbag / How Am I Driving?
Ale To The Thieves
Amnesiac
Amnesiac
Amnesiac
Amnesiac
Amnesiac
Anyone Can Play Guitar
A Punchup At A Wedding
Beats And Breaks
Bizarre Love Triangle / Everything In Its Right Place (Nigel's Progressive House Mixes)
Climbing Up The Walls (Remixes)
Com Lag (2plus2isfive)
Creep
Creep
Creep
Creep
Deep In Velvet / Idioteque
Drill
Everything In Its Right Place (Aquasky Remix)
Everything In Its Right Place (House Mix)
Fake Plastic Trees
Fake Plastic Trees
Go To Sleep
Go To Sleep
Go To Sleep
Go To Sleep
Go To Sleep
Go To Sleep
Go To Sleep
Go To Sleep (Zoo DJs Remix)
Greenhouse Effect Vs. Radiohead
Hail To The Thief
Hail To The Thief
Hail To The Thief
Hail To The Thief
Hail To The Thief
Hail To The Thief
Hail To The Thief (Special Edition)
High & Dry
High & Dry / Planet Telex
High & Dry / Planet Telex
High & Dry / Planet Telex
Idioteque
I Might Be Wrong - Live Recordings
I Might Be Wrong - Live Recordings
Interview CD
Itch
Just
Karma Police
Karma Police
Karma Police
Kid A
Kid A
Kid A
Kid A
Kid A
Kid A
Kid A
Kid A (Book And Compact Disc)
Kid A (Book And Compact Disc)
Knives Out
Knives Out
Knives Out
Knives Out
Knives Out
Knives Out
Knives Out
Knives Out / Cuttooth
Lucky
My Iron Lung
My Iron Lung
My Iron Lung
My Iron Lung E.P.
No Surprises
No Surprises
No Surprises
No Surprises
No Surprises / Running From Demons = ノーサプライゼス〜ランニング・フロム・ディーモンズ
OK Computer
OK Computer
OK Computer
OK Computer
Pablo Honey
Pablo Honey
Pablo Honey
Packt Like Sardines In A Crushd Tin Box (SM Remix)
Paranoid Android
Paranoid Android
Paranoid Android
Paranoid Android
Planet Telex
Pop Is Dead
Pyramid Song
Pyramid Song
Pyramid Song
Pyramid Song
Pyramid Song
Radiohead - In-Store Compilation
Remyxomatosis / Sktterbrain
Street Spirit
Street Spirit / Die Another Day
Street Spirit (Fade Out)
Street Spirit (Fade Out)
Street Spirit (Fade Out)
Street Spirit (Fade Out)
The Bends
The Bends
The Bends
The Bends T/W Edition
The Bends = ザ・ベンズ
The Gloaming (DJ Shadow Remix)
The Kid Parade
There There
There There
There There
There There
The Right Place
Where I End And You Begin (2005 Club Mix)
" + ], + "text/plain": [ + "[('2+2=5',),\n", + " ('2+2=5',),\n", + " ('2+2=5',),\n", + " ('2+2=5',),\n", + " ('2+2=5',),\n", + " ('2+2=5',),\n", + " ('27 5 94 The Astoria London Live',),\n", + " ('7 Television Commercials',),\n", + " ('7 Television Commercials',),\n", + " ('7 Television Commercials.',),\n", + " ('Airbag / How Am I Driving?',),\n", + " ('Ale To The Thieves',),\n", + " ('Amnesiac',),\n", + " ('Amnesiac',),\n", + " ('Amnesiac',),\n", + " ('Amnesiac',),\n", + " ('Amnesiac',),\n", + " ('Anyone Can Play Guitar',),\n", + " ('A Punchup At A Wedding',),\n", + " ('Beats And Breaks',),\n", + " (\"Bizarre Love Triangle / Everything In Its Right Place (Nigel's Progressive House Mixes)\",),\n", + " ('Climbing Up The Walls (Remixes)',),\n", + " ('Com Lag (2plus2isfive)',),\n", + " ('Creep',),\n", + " ('Creep',),\n", + " ('Creep',),\n", + " ('Creep',),\n", + " ('Deep In Velvet / Idioteque',),\n", + " ('Drill',),\n", + " ('Everything In Its Right Place (Aquasky Remix)',),\n", + " ('Everything In Its Right Place (House Mix)',),\n", + " ('Fake Plastic Trees',),\n", + " ('Fake Plastic Trees',),\n", + " ('Go To Sleep',),\n", + " ('Go To Sleep',),\n", + " ('Go To Sleep',),\n", + " ('Go To Sleep',),\n", + " ('Go To Sleep',),\n", + " ('Go To Sleep',),\n", + " ('Go To Sleep',),\n", + " ('Go To Sleep (Zoo DJs Remix)',),\n", + " ('Greenhouse Effect Vs. Radiohead',),\n", + " ('Hail To The Thief',),\n", + " ('Hail To The Thief',),\n", + " ('Hail To The Thief',),\n", + " ('Hail To The Thief',),\n", + " ('Hail To The Thief',),\n", + " ('Hail To The Thief',),\n", + " ('Hail To The Thief (Special Edition)',),\n", + " ('High & Dry',),\n", + " ('High & Dry / Planet Telex',),\n", + " ('High & Dry / Planet Telex',),\n", + " ('High & Dry / Planet Telex',),\n", + " ('Idioteque',),\n", + " ('I Might Be Wrong - Live Recordings',),\n", + " ('I Might Be Wrong - Live Recordings',),\n", + " ('Interview CD',),\n", + " ('Itch',),\n", + " ('Just',),\n", + " ('Karma Police',),\n", + " ('Karma Police',),\n", + " ('Karma Police',),\n", + " ('Kid A',),\n", + " ('Kid A',),\n", + " ('Kid A',),\n", + " ('Kid A',),\n", + " ('Kid A',),\n", + " ('Kid A',),\n", + " ('Kid A',),\n", + " ('Kid A (Book And Compact Disc)',),\n", + " ('Kid A (Book And Compact Disc)',),\n", + " ('Knives Out',),\n", + " ('Knives Out',),\n", + " ('Knives Out',),\n", + " ('Knives Out',),\n", + " ('Knives Out',),\n", + " ('Knives Out',),\n", + " ('Knives Out',),\n", + " ('Knives Out / Cuttooth',),\n", + " ('Lucky',),\n", + " ('My Iron Lung',),\n", + " ('My Iron Lung',),\n", + " ('My Iron Lung',),\n", + " ('My Iron Lung E.P.',),\n", + " ('No Surprises',),\n", + " ('No Surprises',),\n", + " ('No Surprises',),\n", + " ('No Surprises',),\n", + " ('No Surprises / Running From Demons = ノーサプライゼス〜ランニング・フロム・ディーモンズ',),\n", + " ('OK Computer',),\n", + " ('OK Computer',),\n", + " ('OK Computer',),\n", + " ('OK Computer',),\n", + " ('Pablo Honey',),\n", + " ('Pablo Honey',),\n", + " ('Pablo Honey',),\n", + " ('Packt Like Sardines In A Crushd Tin Box (SM Remix)',),\n", + " ('Paranoid Android',),\n", + " ('Paranoid Android',),\n", + " ('Paranoid Android',),\n", + " ('Paranoid Android',),\n", + " ('Planet Telex',),\n", + " ('Pop Is Dead',),\n", + " ('Pyramid Song',),\n", + " ('Pyramid Song',),\n", + " ('Pyramid Song',),\n", + " ('Pyramid Song',),\n", + " ('Pyramid Song',),\n", + " ('Radiohead - In-Store Compilation',),\n", + " ('Remyxomatosis / Sktterbrain',),\n", + " ('Street Spirit',),\n", + " ('Street Spirit / Die Another Day',),\n", + " ('Street Spirit (Fade Out)',),\n", + " ('Street Spirit (Fade Out)',),\n", + " ('Street Spirit (Fade Out)',),\n", + " ('Street Spirit (Fade Out)',),\n", + " ('The Bends',),\n", + " ('The Bends',),\n", + " ('The Bends',),\n", + " ('The Bends T/W Edition',),\n", + " ('The Bends = ザ・ベンズ',),\n", + " ('The Gloaming (DJ Shadow Remix)',),\n", + " ('The Kid Parade',),\n", + " ('There There',),\n", + " ('There There',),\n", + " ('There There',),\n", + " ('There There',),\n", + " ('The Right Place',),\n", + " ('Where I End And You Begin (2005 Club Mix)',)]" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "%%sql\n", - "..." + "SELECT releases.title\n", + "FROM artists\n", + "JOIN released_by USING(artist_id)\n", + "JOIN releases USING(release_id)\n", + "WHERE artists.name = 'Radiohead'\n", + "ORDER BY releases.title" ] }, {