Hi Edmund. Thanks for your report.
The Wolfram Knowledge base is currently not a SPARQL endpoint, so the query is evaluated locally. This means that in some cases, a lot of data has to be downloaded and processed.
The second example exhausts all memory because the query is not evaluated in the optimal way. I have filed a suggestion for it.