Large queries break for no obvious reason

From semantic-mediawiki.org