I converted that to SPARQL using http://tools.wmflabs.org/wdq2sparql/w2s.php . This is what I got:
prefix wdt: <http://www.wikidata.org/prop/direct/> prefix entity: <http://www.wikidata.org/entity/> SELECT ?item WHERE { ?item wdt:P31 entity:Q3305213 . ?item wdt:P170 ?dummy0 . FILTER NOT EXISTS { ?item wdt:P170 ?sub1 } { ?sub1 wdt:P650 ?dummy2 . } UNION { ?sub1 wdt:P245 ?dummy3 . } FILTER NOT EXISTS { ?item wdt:P170 entity:Q4233718 } FILTER NOT EXISTS { ?item wdt:P170 entity:Q4294967294 } } LIMIT 10
If I run this I get a "ERROR: 504 Gateway Time-out 504 Gateway Time-out nginx/1.4.6 (Ubuntu) "