[Developers] Generalizing 'Dated Integer' type

John Giannandrea jg at metaweb.com
Fri Aug 24 05:21:29 UTC 2007


Jeff Thompson wrote:
> 2.  How does MQL handle a query for "cities with population over  
> 100,000" since a City/Town population
> is not a simple unique-value integer?  What happens when you just  
> want a table of cities and their populations?
> Is there generalized support for looking through the list of 'Date  
> Integer' values and finding the latest one?

something like this should work:

   "query":[{
     "name":null,
     "population":[{
       "limit":1,
       "number":null,
       "sort":"-year",
       "year":null
     }],
     "sort":"-population.number",
     "type":"/location/citytown"
   }]


-jg





More information about the Developers mailing list