EndPointInternalError: The endpoint returned the HTTP status code 500.

Response:
b'{\n    "exception": "The memory limit was exceeded during the computation of a cross-product. Check if this cross-product is intentional or if you have mistyped a variable name.",\n    "query": "#\\nPREFIX biopax: <http://www.biopax.org/release/biopax-level3.owl#>\\nPREFIX bd: <http://www.bigdata.com/rdf#>\\nPREFIX cc: <http://creativecommons.org/ns#>\\nPREFIX datacite: <http://purl.org/spar/datacite/>\\nPREFIX dblp: <https://dblp.org/rdf/schema#>\\nPREFIX dc:    <http://purl.org/dc/elements/1.1/>\\nPREFIX dct: <http://purl.org/dc/terms/>\\nPREFIX freq:  <http://purl.org/cld/freq/>\\nPREFIX geo: <http://www.opengis.net/ont/geosparql#>\\nPREFIX geom: <http://geovocab.org/geometry#>\\nPREFIX gpml:  <http://vocabularies.wikipathways.org/gpml#>\\nPREFIX litre: <http://purl.org/spar/literal/> \\nPREFIX lgdo: <http://linkedgeodata.org/ontology/>\\nPREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>\\nPREFIX orkgp: <http://orkg.org/orkg/predicate/>\\nPREFIX orkgc: <http://orkg.org/orkg/class/>\\nPREFIX orkgr: <http://orkg.org/orkg/resource/>\\nPREFIX owl: <http://www.w3.org/2002/07/owl#>\\nPREFIX p: <http://www.wikidata.org/prop/>\\nPREFIX pav: <http://purl.org/pav/>\\nPREFIX pq: <http://www.wikidata.org/prop/qualifier/>\\nPREFIX pqn: <http://www.wikidata.org/prop/qualifier/value-normalized/>\\nPREFIX pqv: <http://www.wikidata.org/prop/qualifier/value/>\\nPREFIX pr: <http://www.wikidata.org/prop/reference/>\\nPREFIX prn: <http://www.wikidata.org/prop/reference/value-normalized/>\\nPREFIX prov: <http://www.w3.org/ns/prov#>\\nPREFIX prv: <http://www.wikidata.org/prop/reference/value/>\\nPREFIX ps: <http://www.wikidata.org/prop/statement/>\\nPREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>\\nPREFIX psv: <http://www.wikidata.org/prop/statement/value/>\\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\\nPREFIX schema: <http://schema.org/>\\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\\nPREFIX void:  <http://rdfs.org/ns/void#>\\nPREFIX vrank: <http://purl.org/voc/vrank#>\\nPREFIX wd: <http://www.wikidata.org/entity/>\\nPREFIX wdata: <http://www.wikidata.org/wiki/Special:EntityData/>\\nPREFIX wdno: <http://www.wikidata.org/prop/novalue/>\\nPREFIX wdref: <http://www.wikidata.org/reference/>\\nPREFIX wds: <http://www.wikidata.org/entity/statement/>\\nPREFIX wdt: <http://www.wikidata.org/prop/direct/>\\nPREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>\\nPREFIX wdv: <http://www.wikidata.org/value/>\\nPREFIX wikibase: <http://wikiba.se/ontology#>\\nPREFIX wp: <http://vocabularies.wikipathways.org/wp#>\\nPREFIX wprdf: <http://rdf.wikipathways.org/>\\nPREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\\n\\nPREFIX wd: <http://www.wikidata.org/entity/>\\nPREFIX wdt: <http://www.wikidata.org/prop/direct/>\\nSELECT * WHERE {\\n  ?person wdt:P31 wd:Q5 .\\n  ?pesron wdt:P106 ?occupation .\\n}",\n    "resultsize": 0,\n    "runtimeInformation": {\n        "cache_status": "computed",\n        "children": [\n            {\n                "cache_status": "computed",\n                "children": [],\n                "column_names": [\n                    "?person"\n                ],\n                "description": "IndexScan ?person <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5>",\n                "details": null,\n                "estimated_column_multiplicities": [\n                    1.0\n                ],\n                "estimated_operation_cost": 11292238,\n                "estimated_size": 11292238,\n                "estimated_total_cost": 11292238,\n                "operation_time": 58,\n                "original_operation_time": 0,\n                "original_total_time": 0,\n                "result_cols": 1,\n                "result_rows": 11292238,\n                "status": "fully materialized",\n                "total_time": 58\n            },\n            {\n                "cache_status": "computed",\n                "children": [],\n                "column_names": [\n                    "?pesron",\n                    "?occupation"\n                ],\n                "description": "IndexScan ?pesron <http://www.wikidata.org/prop/direct/P106> ?occupation",\n                "details": null,\n                "estimated_column_multiplicities": [\n                    1.3748596906661987,\n                    561.48193359375\n                ],\n                "estimated_operation_cost": 11328459,\n                "estimated_size": 11328459,\n                "estimated_total_cost": 11328459,\n                "operation_time": 52,\n                "original_operation_time": 0,\n                "original_total_time": 0,\n                "result_cols": 2,\n                "result_rows": 11328459,\n                "status": "fully materialized",\n                "total_time": 52\n            }\n        ],\n        "column_names": [\n            "?person",\n            "?pesron",\n            "?occupation"\n        ],\n        "description": "Cartesian Product Join",\n        "details": null,\n        "estimated_column_multiplicities": [\n            1.0,\n            1.0,\n            1.0\n        ],\n        "estimated_operation_cost": 127923655201242,\n        "estimated_size": 127923655201242,\n        "estimated_total_cost": 127923677821939,\n        "operation_time": 15,\n        "original_operation_time": 0,\n        "original_total_time": 0,\n        "result_cols": 3,\n        "result_rows": 0,\n        "status": "failed",\n        "total_time": 125\n    },\n    "status": "ERROR",\n    "time": {\n        "computeResult": 128,\n        "total": 128\n    }\n}'