script for Freebase look up