-- Database schema
| cites : cited_paper_id [ TEXT ] , citing_paper_id [ TEXT ] | paper : paper_id [ TEXT ] primary_key , class_label [ TEXT ] | content : paper_id [ TEXT ] content.paper_id = paper.paper_id , word_cited_id [ TEXT ] |
-- -- For all words cited in paper ID 315017, state the other paper ID and class label which also cited those words.

SELECT T1.class_label, T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.paper_id = 315017;