Step 4: Ask a question that needs both tables and documents
Some questions need a fact from a table and a rule or event from a document. AWS Context searches both and combines them in one answer.
To ask a combined question
-
Choose New conversation.
-
Enter the following question, and then press Enter.
How much did Ivan Hernandez pay for the delivered order they asked to exchange items from?After about 20 seconds, the answer appears: Ivan Hernandez paid $6,070.19 for order #W5838674.
-
Review the steps and Sources. To answer, AWS Context found the exchange request in a support chat, and then ran SQL against the
orders,payments, andorder_itemstables for that order. The sources list the three query results and the support chat passage.
Next steps To query the sample from your own agent, continue with Tutorial: Query the sample Agent Context over MCP.