Frederick had been King of Jerusalem—and as such claimed suzerainty over Cyprus—in right of his wife Isabella II until her death in 1228. That year he arrived first in Cyprus, where he antagonised the nobles, and then in Jerusalem, where he stayed until 1229, leaving in humiliating circumstances after having produced an anti-imperialist reaction in the people. In 1231 he sent Riccardo Filangieri as his marshal. His attempt to assert his authority was opposed by John of Ibelin, the Old Lord of Beirut, who had been regent until Frederick's arrival. On John's death in 1236 the war was taken up by his son Balian. In 1239 Philip of Montfort assumed the leadership of the opposition. Though the ecclesiastical hierarchy and the Knights Templar supported the nobility, the Teutonic Knights and Knights Hospitaller supported Filangieri. In general his rights as regent were recognised but his practical power was denied on the basis of the Assizes and the Haute Cour. His headquarters were in Tyre and he had the allegiance of Bohemond V, Prince of Antioch and Count of Tripoli. He also held the Holy City of Jerusalem itself, which had been negotiated away from the Saracens by Frederick. So long as the Ibelins controlled the opposition, Filangieri could count on the support of their enemies as well. The Italian cities were also divided between the two factions: Pisa supported Filangieri and Genoa the Ibelins. The Ibelins controlled Beirut, Arsuf, and Caesarea as well as the old capital of Acre. In 1231 the citizens of Acre formed a commune with their headquarters at the church of Saint Andrew's in order to unify their opposition to Filangieri. In 1232 John of Ibelin was elected its mayor.

Question: Who died first John of Ibelin or Isabella II?
Answer: Isabella II

Question: How many years after the death of Isabella II did John of Ibelin die?
Answer: 3

Question: How many years after leaving Cyprus did Frederick wait to try to reassert his authority in Jerusalem?
Answer: 2

Question: Where did Frederick fgo last, Cyprus or Jerusalem?
Answer: Jerusalem

Question: How many years after leaving Jerusalem did Frederik send Filangieri as his marshall?
Answer: 2

Question: How many years after Frederick left Jerusalem did Philip of Monfort assume the leadership of the opposition?
Answer: 10

Question: Who claimed suzerainty over Cyprus?
Answer: King of Jerusalem

Question: Who did Frederick send as his marshal?
Answer: Filangieri

Question: How many factions were there?
Answer: 2

Question: Who had the headquarters  in Tyre and had the allegiance of Bohemond V, Prince of Antioch and Count of Tripoli?
Answer: Frederick

Question: How many years after Isabella II died did Frederick leave Jerusalem after he produced an anti-imperialist reaction in the people?
Answer: 1

Question: How many years after Frederick leave Jerusalem did he send Riccardo Filangieri as his marshal?
Answer: 2

Question: Who was Balian's father?
Answer: John of Ibelin

Question: How many years after Riccardo Filangieri arrived in Jerusalem did the person who opposed his authority, John of Ibelin, die?
Answer: 5

Question: How many years after the citizens of Acre formed a commune to unify their opposition to Filangieri was John of Ibelin elected its mayor?
Answer: 1

Question: How many years after John of Ibelin was elected mayor did he die?
Answer: 4

Question: How many years did Frederick stay in Jerusalem after his wifes death?
Answer: 1

Question: How many years after his wife died did Frederick stay in Jerusalem?
Answer: 1

Question: Where did Frederick go last, Cyprus or Jerusalem?
Answer: Jerusalem

Question: How many years after leaving Jerusalem did Frederick send Riccardo Filangieri as his marshal?
Answer: 2

Question: Who was the opposition leader first, John of Ibelin or Philip of Monfort?
Answer: John of Ibelin

Question: Who was Balian's father?
Answer: John of Ibelin

Question: How many groups of Knights supported Philip of Montfort?
Answer: 2

Question: Which city did not support Filangieri, Pisa or Genoa?
Answer: Genoa

Question: How many cities did the Ibelins control?
Answer: 4

Question: How many years after the citizens of Acre formed a commune did the elect John of Ibelin as their mayor?
Answer: 1

Question: How many years did John die after being elected mayor?
Answer: 4