[Developers] Problem with event query

Thimon Sistermans thimon at onvoltooid.nl
Wed Mar 11 17:13:52 UTC 2009


Hi all,

I just discovered freebase and I love it:) Great work!

I have a problem with a MQL query.

Im trying to get the names of the documents with the type
"/military/military_conflict" and "/time/event"  within a start and
end date.
I only want the documents without the "included_in_event" property. Or
when it has a "included_in_event" property, the document attached to
the event may not be of the same type (/military/military_conflict in
my example).

Below query dousnt seem to do the trick.


[
  {
    "/time/event/end_date" : null,
    "/time/event/end_date<=" : "1948",
    "/time/event/included_in_event" : [
      {
        "a:type!=" : "/military/military_conflict",
      }
    ],
    "/time/event/start_date" : null,
    "/time/event/start_date>=" : "1937",
    "a:type" : "/military/military_conflict",
    "b:type" : "/time/event",
    "limit" : 1000,
    "name" : null,
    "sort" : "name"
  }
]

Can someone help me fix this query?

Thanks in advance!,

Regards,

Thimon


More information about the Developers mailing list