You can index into lists of objects to select the desired property.
This query returns the second line of the specified text file:
- Q: line 2 of file "c:/frost_poem.txt"
- A: his house is in the village, though.
while this other query returns the name of the ninth month:
- Q: month 9
- A: September