Input: Group (mathematics)
A group is called finite if it has a finite number of elements. The number of elements is called the order of the group. An important class is the symmetric groups SN, the groups of permutations of N letters. For example, the symmetric group on 3 letters S3 is the group consisting of all possible orderings of the three letters ABC, i.e. contains the elements ABC, ACB, ..., up to CBA, in total 6 (or 3 factorial) elements. This class is fundamental insofar as any finite group can be expressed as a subgroup of a symmetric group SN for a suitable integer N (Cayley's theorem). Parallel to the group of symmetries of the square above, S3 can also be interpreted as the group of symmetries of an equilateral triangle.

What does a finite group include?
Output: a finite number of elements

Input: Hellenistic period
Under Ptolemy II, Callimachus, Apollonius of Rhodes, Theocritus and a host of other poets made the city a center of Hellenistic literature. Ptolemy himself was eager to patronise the library, scientific research and individual scholars who lived on the grounds of the library. He and his successors also fought a series of wars with the Seleucids, known as the Syrian wars, over the region of Coele-Syria. Ptolemy IV won the great battle of Raphia (217 BCE) against the Seleucids, using native Egyptians trained as phalangites. However these Egyptian soldiers revolted, eventually setting up a native breakaway Egyptian state in the Thebaid between 205-186/5 BCE, severely weakening the Ptolemaic state.

Who did Ptolemy IV defeat in the great battle of Raphia?
Output: Seleucids

Input: Saint Barth%C3%A9lemy
Musee Territorial de St.-Barthelemy is a historical museum known as the "St. Barts Municipal Museum" also called the "Wall House" (musee bibliotheque) in Gustavia, which is located on the far end of La Pointe. The museum is housed in an old stone house, a two-storey building which has been refurbished. The island's history relating to French, Swedish and British period of occupation is well presented in the museum with photographs, maps and paintings. Also on display are the ancestral costumes, antique tools, models of Creole houses and ancient fishing boats. It also houses a library.

Besides the French and Swedish, who else occupied the island?
Output: British

Input: Baptists
Historians trace the earliest Baptist church back to 1609 in Amsterdam, with John Smyth as its pastor. Three years earlier, while a Fellow of Christ's College, Cambridge, he had broken his ties with the Church of England. Reared in the Church of England, he became "Puritan, English Separatist, and then a Baptist Separatist," and ended his days working with the Mennonites. He began meeting in England with 6070 English Separatists, in the face of "great danger." The persecution of religious nonconformists in England led Smyth to go into exile in Amsterdam with fellow Separatists from the congregation he had gathered in Lincolnshire, separate from the established church (Anglican). Smyth and his lay supporter, Thomas Helwys, together with those they led, broke with the other English exiles because Smyth and Helwys were convinced they should be baptized as believers. In 1609 Smyth first baptized himself and then baptized the others.

Who was the pastor of the earliest Baptist church?
Output:
John Smyth