How would I make the following query a rest query in to dreamfactory?

SELECT id, name,( 3959 * acos( cos( radians(33) ) * cos( radians( 33 ) ) * cos( radians( -117 ) - radians(-117) ) + sin( radians(33) ) * sin( radians( 33 ) ) ) ) AS distance FROM wu_object HAVING distance < 10 ORDER BY distance LIMIT 0 , 10;