Wikipedia has become one of the most popular resources in natural language processing and it is used in quantities of applications.
this is translated in SQL as: sqlContext.sql(""" SELECt uri FROM wikidata WHERE predicate = 'wd:P31' AND value1 = 'urn:wikidata:Q5' """).cache().registertemptable ("persons") and results in a table called persons.