SQL to QueryApi, no repetits