Answer: Subject, verb, indirect and direct object.
Step-by-step explanation:
Samson gave the Philistines a riddle.
Samson is a subject, gave is the verb, Philistines is an Indirect Object and a riddle is a direct object.
the and a are the articles.
In the sentence the indirect object(Philistines) receives the direct object(a riddle). Subject is telling us who is doing a function of a verb(gave).