The team of reporters, researchers and editors across CNN listened throughout the debate, selecting key statements and then rating them: True; Mostly True; True, but Misleading; False; or It's Complicated.
O'Malley said, "We have failed as a country to invest in the human intelligence that would allow us to not only make better decisions in Libya, but better decisions in Syria today. It's a huge national security failing."
Given the opacity of the available data, it is difficult to issue a verdict on O'Malley's statement, but it is possible to provide some context to what he claims.
The National Intelligence Program requests congressional funding for the intelligence-gathering activities of six federal departments, the Central Intelligence Agency and the Office of the Director of National Intelligence.
As a matter of policy, the government does not disclose information about the budget of the NIP beyond the aggregate, or "top-line" amount requested and the amount approved by Congress.
The most recent year for which data on the approved congressional appropriation for the NIP is available is FY 2014. The aggregate amount approved for the year ending March 2015 was $50.5 billion. This amount represents a 3% increase over the previous year, which saw an annual NIP appropriation of $49.0 billion, partially due to reductions associated with the sequester.
The amount appropriated in FY 2012, the year during which the attack took place on the U.S. consulate in Benghazi, was $53.9 billion, the second-highest appropriation during the decade 2005-2014.
In August 2013, The Washington Post obtained documents from former National Security Agency contractor Edward Snowden regarding the previously undisclosed $52.6 billion FY 2013 budget, and providing a level of detail that had never been released on a previous U.S. intelligence budget. The documents indicated that the United States has 107,035 employees in the intelligence community. Of these, the largest employer of civilian intelligence officials is the CIA, which had the equivalent of 21,459 full-time civilian employees.
According to the leaked documents, in FY 2013, "human intelligence operations," consisting of "clandestine acquisition" of documents and other material, "collection by personnel in diplomatic and consular posts" and "official contacts with foreign governments" comprised an annual budget of $3.6 billion.
While specific data on human intelligence operations is not available for other years, CNN military analyst Lt. Gen. Mark Hertling notes that the government has cut human intelligence operations relative to other forms of intelligence collection, fueling a major debate in the intelligence community since the 1990s.
An additional obstacle to effective human intelligence gathering is the lack of racial diversity within the CIA's own ranks, according to CIA Director John Brennan. Minorities make up less than 24% of the CIA workforce, and only 10.8% of its top senior intelligence service. Brennan noted that, in many of the countries that are the focus of the CIA's current work, it is harder for white employees, and easier for many minorities, to operate covertly.
Reality check: Lincoln Chafee on training and equipping Syrian rebels
Chafee said: "We just spent half a billion dollars arming and training soldiers, the rebel soldiers in Syria, they quickly joined the other side."
The Obama administration recently announced it was going to suspend the train and equip program in Syria and not take on new recruits while they assessed how to better to improve on the program. To be sure, the program faced many challenges despite the near $500 million price tag. In testimony last month, U.S. Central Command Commander Gen. Lloyd Austin said only "four or five" graduates of the program were on the battlefield at that time, nine months after the program began.
An initial group of 54 rebels that had been put into northern Syria this summer came under attack by al Qaeda affiliate Jabhat al-Nusra and ceased to function as a fighting force, the Pentagon said last month. At least five of those forces were captured by al Nusra but their fate is not clear. Pentagon officials told CNN in August that some of those rebels got stuck in Turkey and never actually crossed the border into Syria, while others just simply ran away after coming under attack and never came back to regroup with their unit.
And then U.S. officials confirmed last month that coalition-issued pickup trucks and ammunition had fallen into the hands of al Qaeda-linked forces in Syria. But rather than evidence of rebels joining the other side, that equipment was given up in order to gain "safe passage," according to Central Command spokesman Col. Patrick Ryder.
To suggest that all graduates of the program defected from their ranks to groups opposing the U.S.-led coalition is not true.
Reality check: Did Hillary Clinton not have a position on Keystone?
Clinton said she never had a position on the controversial Keystone XL Pipeline before she said last month that she would oppose it.
"I never took a position on Keystone until I took a position on Keystone," she said.
But as a member of the Obama administration, the then-secretary of state indicated she was likely to support it -- though she never said so explicitly.
"We haven't finish all of the analysis," Clinton told the Commonwealth Club in October 2010. "So as I say, we've not yet signed off on it. But we are inclined to do so and we are for several reasons."
Over the next five years, Clinton would repeatedly decline to say what her opinion was while the Obama administration studied the project. Last month she finally said, "I oppose it."
VERDICT: True, but misleading
Reality check: Martin O'Malley's economic record
O'Malley made the pitch Tuesday night that he could do better than all the promises made by Vermont Sen. Bernie Sanders and others because he had already pushed those priorities into law when he was governor.
"We raised the minimum wage, passed the living wage, invested more in infrastructure, went four years in a row without a penny's increase for college tuition," O'Malley said.
O'Malley did achieve a key victory last year, during his final year in office, when he won approval of a minimum wage increase from $7.25 per hour to $10.10 per hour. It put a bookend to his first year in office, when he won a requirement that state contractors pay workers a baseline living wage
He also increased spending on roads and capital projects and succeeded, after many years of failed attempts, in increasing the state's gas tax to pay for those improvements.
In addition, O'Malley followed through on a campaign promise from 2006 to freeze tuitions at Maryland's public universities -- a promise that lasted until 2010
, when the state stopped subsidizing the public university tuition freeze.
But his record on infrastructure investment was far more complicated and his debate claim left out an important fact. O'Malley and Democratic lawmakers came under criticism by Maryland's county leaders and Republicans as they withdrew money from the state's transportation trust fund to cover budget shortfalls throughout the recession. The budget-patching maneuver resulted in a referendum drive to place new limits
on how and when state leaders could pull money from transportation projects to cover budget shortfalls.
VERDICT: Mostly true
Reality check: Hillary Clinton on the Trans-Pacific Partnership
Clinton said, "I did say when I was secretary of state three years ago that I hoped it would be the gold standard. It was just finally negotiated last week and in looking at it, it did not meet my standards."
Negotiations on the TPP trade agreement began while Clinton was secretary of state, but the significant details were worked out after she left that office.
In fact, Clinton did not say she "hoped" the TPP would be the gold standard, at the time she said the deal set the gold standard.
"This TPP sets the gold standard in trade agreements to open free, transparent, fair trade, the kind of environment that has the rule of law and a level playing field," Clinton said at an event in Australia in 2012. "And when negotiated, this agreement will cover 40 percent of the world's total trade and build in strong protections for workers and the environment."
Nearly three years have passed, and Clinton has been out of office for most of that time as talks have proceeded on the important details of the deal. As such, it is reasonable for Clinton to claim that the deal has changed since she supported it and was involved in its negotiation.
However, in some ways, the deal has strengthened over the years in areas that Clinton has cited as key concerns.
Clinton now says the deal doesn't do enough to address currency manipulation. But the deal didn't include clear language on that topic in 2013 either, when critics in Congress were calling for it to be added.
She also says she is concerned about the benefits the deal gives to pharmaceutical companies -- which are strengthened under TPP, but less than they would have been under the deal in its 2013 state.
VERDICT: Clinton's claim she said she "hoped" TPP would be the gold standard is false. She said it was the gold standard and fully supported the negotiations. Her broader point about the deal changing since she left office is True, but Misleading. The deal has changed in the past three years, but in some instances those changes have improved the very deficiencies she cites.
Reality check: Did Bernie Sanders protect gun manufacturers from lawsuits?
CNN's Anderson Cooper grilled Sanders repeatedly on whether he was protecting gun manufacturers from lawsuits. After some explaining, Sanders landed on a simple answer: "Of course not."
Sanders has been nailed by liberals and his Democratic opponents for his positions on gun control, including his decision to vote against the Brady bill and for allowing Amtrak riders to bring guns in checked bags. And his comment during the debate sounded like a sharp stance in favor of clamping down on gun manufacturers, defending his vote to shield them from litigation as part of a "large and complicated bill."
"Where you have manufacturers and where you have gun shops knowingly giving guns to criminals or aiding and abetting that, of course we should take action," he said Tuesday night.
But in a July interview with CNN, Sanders sounded starkly different, saying that gun manufacturers could not be held responsible. The sole difference was that in that interview Sanders did not say the manufacturer was aware of the crime that would later be committed.
"If somebody has a gun and it falls into the hands of a murderer and that murderer kills somebody with the gun, do you hold the gun manufacturer responsible?" he asked. "Not any more than you would hold a hammer company responsible if somebody beats somebody over the head with a hammer. That is not what a lawsuit should be about."
Reality check: Bernie Sanders said, "African-American youth unemployment is 51%, Hispanic youth unemployment is 36%. It seems to me instead of building more jails and providing more incarceration maybe just maybe we should be putting money into education and jobs for our kids."
There is certainly an employment crisis among minority youth. But as he has done in the past, Sanders may have misspoken when he cited those statistics.
The left-leaning Economic Policy Institute has found that 51.3% of black and 36.1% Hispanic high school graduates, age 17 to 20, are underemployed. That means they either don't have a job, aren't working as many hours as they would like or aren't currently looking for work but would like a job.
The comparable number for whites is 33.8%.
The official unemployment rate for black youth, age 16 to 24, was 20.7%. For Hispanic youth, it's 12.7%, while for white youth, it's 10.3%, according to the Bureau of Labor Statistics. The government data is not limited to high school graduates and has a wider age range.
Reality check: Hillary Clinton said, "We have to look at the fact that we lose 90 people a day from gun violence. This has gone on too long and it's time the entire country stood up against the NRA."
According to data from the Centers for Disease Control and Prevention, there were 33,636 people killed by firearms in 2013, the last full year for which data is available. That averages to about 92 people a day. However, the number includes suicides, unintentional deaths, and incidents with undetermined intent as well as violence-related firearm deaths (homicide and legal intervention). In 2013, 11,675 people were killed in violence-related deaths by homicide or legal intervention, which equates to almost 32 deaths a day. The CDC reports 505 unintentional deaths by firearms in 2013, or just more than one death per day. They also report 281 deaths where the intent was undetermined in 2013.
Ninety-two people did die each day in 2013 from a firearm injury. However, the number of people killed from violence-related homicides and legal interventions in 2013 was much lower -- about 32 deaths a day.
VERDICT: True, but Misleading
Reality check: Bernie Sanders said, "It is wrong today in a rigged economy that 57% of all new income is going to the top 1%."
He got it almost right. The top 1% captured 58% of income gains between 2009 and 2014
, according to research by Emmanuel Saez, a University of California Berkeley economics professor who has long studied income inequality.
The top 1% saw their incomes soar 27.1% during that time period, while the bottom 99% got an only 4.3% bump in income. Healthy stock market returns helped fuel income gains among the wealthy.
But the good news for the bottom 99% was that 2014 was the first year of real recovery from Great Recession losses. That's thanks to a drop in the unemployment rate from 6.6% at the start of 2014 to 5.6% by year's end.