Finished the clips_query_facts function.