query.ql 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977
  1. node(1101);out meta;
  2. node(1102);out meta;
  3. node(1201);out meta;
  4. node(1202);out meta;
  5. node(1203);out meta;
  6. node(1301);out meta;
  7. node(1302);out meta;
  8. node(1303);out meta;
  9. node(1304);out meta;
  10. node(1401);out meta;
  11. node(1402);out meta;
  12. node(1403);out meta;
  13. node(1404);out meta;
  14. node(1501);out meta;
  15. node(1502);out meta;
  16. node(1503);out meta;
  17. node(1504);out meta;
  18. node(1505);out meta;
  19. node(2101);out meta;
  20. node(2102);out meta;
  21. node(2103);out meta;
  22. node(2201);out meta;
  23. node(2202);out meta;
  24. node(2203);out meta;
  25. node(2204);out meta;
  26. node(2205);out meta;
  27. node(2206);out meta;
  28. node(2301);out meta;
  29. node(2302);out meta;
  30. node(2303);out meta;
  31. node(2304);out meta;
  32. node(2305);out meta;
  33. node(2306);out meta;
  34. node(2401);out meta;
  35. node(2402);out meta;
  36. node(2403);out meta;
  37. node(2501);out meta;
  38. node(2502);out meta;
  39. node(2503);out meta;
  40. node(2504);out meta;
  41. node(2505);out meta;
  42. node(2506);out meta;
  43. node(2601);out meta;
  44. node(2602);out meta;
  45. node(2603);out meta;
  46. node(2604);out meta;
  47. node(2605);out meta;
  48. node(2606);out meta;
  49. node(2607);out meta;
  50. node(2608);out meta;
  51. way(1101);out meta;
  52. way(1102);out meta;
  53. way(1103);out meta;
  54. way(1201);out meta;
  55. way(1202);out meta;
  56. way(1203);out meta;
  57. way(1301);out meta;
  58. way(1302);out meta;
  59. way(1303);out meta;
  60. way(1304);out meta;
  61. way(1401);out meta;
  62. way(1402);out meta;
  63. way(1403);out meta;
  64. way(1404);out meta;
  65. way(1501);out meta;
  66. way(1502);out meta;
  67. way(1503);out meta;
  68. way(1504);out meta;
  69. way(1505);out meta;
  70. way(1601);out meta;
  71. way(1602);out meta;
  72. way(1603);out meta;
  73. way(1701);out meta;
  74. way(1702);out meta;
  75. way(1703);out meta;
  76. way(1801);out meta;
  77. way(1802);out meta;
  78. way(1803);out meta;
  79. way(2101);out meta;
  80. way(2102);out meta;
  81. way(2103);out meta;
  82. way(2201);out meta;
  83. way(2202);out meta;
  84. way(2203);out meta;
  85. way(2204);out meta;
  86. way(2205);out meta;
  87. way(2206);out meta;
  88. way(2301);out meta;
  89. way(2302);out meta;
  90. way(2303);out meta;
  91. way(2304);out meta;
  92. way(2305);out meta;
  93. way(2306);out meta;
  94. way(2401);out meta;
  95. way(2402);out meta;
  96. way(2403);out meta;
  97. way(2501);out meta;
  98. way(2502);out meta;
  99. way(2503);out meta;
  100. way(2504);out meta;
  101. way(2505);out meta;
  102. way(2506);out meta;
  103. way(2601);out meta;
  104. way(2602);out meta;
  105. way(2603);out meta;
  106. way(2604);out meta;
  107. way(2605);out meta;
  108. way(2606);out meta;
  109. way(2607);out meta;
  110. way(2608);out meta;
  111. rel(1111);out meta;
  112. rel(1112);out meta;
  113. rel(1113);out meta;
  114. rel(1121);out meta;
  115. rel(1122);out meta;
  116. rel(1123);out meta;
  117. rel(1131);out meta;
  118. rel(1132);out meta;
  119. rel(1133);out meta;
  120. rel(1141);out meta;
  121. rel(1142);out meta;
  122. rel(1143);out meta;
  123. rel(1171);out meta;
  124. rel(1172);out meta;
  125. rel(1173);out meta;
  126. rel(1201);out meta;
  127. rel(1202);out meta;
  128. rel(1203);out meta;
  129. rel(1311);out meta;
  130. rel(1312);out meta;
  131. rel(1313);out meta;
  132. rel(1314);out meta;
  133. rel(1321);out meta;
  134. rel(1322);out meta;
  135. rel(1323);out meta;
  136. rel(1324);out meta;
  137. rel(1325);out meta;
  138. rel(1326);out meta;
  139. rel(1327);out meta;
  140. rel(1331);out meta;
  141. rel(1332);out meta;
  142. rel(1333);out meta;
  143. rel(1334);out meta;
  144. rel(1411);out meta;
  145. rel(1412);out meta;
  146. rel(1413);out meta;
  147. rel(1414);out meta;
  148. rel(1421);out meta;
  149. rel(1422);out meta;
  150. rel(1423);out meta;
  151. rel(1424);out meta;
  152. rel(1425);out meta;
  153. rel(1426);out meta;
  154. rel(1427);out meta;
  155. rel(1431);out meta;
  156. rel(1432);out meta;
  157. rel(1433);out meta;
  158. rel(1434);out meta;
  159. rel(1501);out meta;
  160. rel(1502);out meta;
  161. rel(1503);out meta;
  162. rel(1504);out meta;
  163. rel(1505);out meta;
  164. rel(1611);out meta;
  165. rel(1612);out meta;
  166. rel(1613);out meta;
  167. rel(1621);out meta;
  168. rel(1622);out meta;
  169. rel(1623);out meta;
  170. rel(1631);out meta;
  171. rel(1632);out meta;
  172. rel(1633);out meta;
  173. rel(1641);out meta;
  174. rel(1642);out meta;
  175. rel(1643);out meta;
  176. rel(1671);out meta;
  177. rel(1672);out meta;
  178. rel(1673);out meta;
  179. rel(1711);out meta;
  180. rel(1712);out meta;
  181. rel(1713);out meta;
  182. rel(1721);out meta;
  183. rel(1722);out meta;
  184. rel(1723);out meta;
  185. rel(1731);out meta;
  186. rel(1732);out meta;
  187. rel(1733);out meta;
  188. rel(1741);out meta;
  189. rel(1742);out meta;
  190. rel(1743);out meta;
  191. rel(1771);out meta;
  192. rel(1772);out meta;
  193. rel(1773);out meta;
  194. rel(1811);out meta;
  195. rel(1812);out meta;
  196. rel(1813);out meta;
  197. rel(1821);out meta;
  198. rel(1822);out meta;
  199. rel(1823);out meta;
  200. rel(1831);out meta;
  201. rel(1832);out meta;
  202. rel(1833);out meta;
  203. rel(1841);out meta;
  204. rel(1842);out meta;
  205. rel(1843);out meta;
  206. rel(1871);out meta;
  207. rel(1872);out meta;
  208. rel(1873);out meta;
  209. rel(1901);out meta;
  210. rel(1911);out meta;
  211. rel(1921);out meta;
  212. rel(1922);out meta;
  213. rel(1941);out meta;
  214. rel(2101);out meta;
  215. rel(2102);out meta;
  216. rel(2103);out meta;
  217. rel(2201);out meta;
  218. rel(2202);out meta;
  219. rel(2203);out meta;
  220. rel(2204);out meta;
  221. rel(2205);out meta;
  222. rel(2206);out meta;
  223. rel(2301);out meta;
  224. rel(2302);out meta;
  225. rel(2303);out meta;
  226. rel(2304);out meta;
  227. rel(2305);out meta;
  228. rel(2306);out meta;
  229. rel(2401);out meta;
  230. rel(2402);out meta;
  231. rel(2403);out meta;
  232. rel(2501);out meta;
  233. rel(2502);out meta;
  234. rel(2503);out meta;
  235. rel(2504);out meta;
  236. rel(2505);out meta;
  237. rel(2506);out meta;
  238. rel(2601);out meta;
  239. rel(2602);out meta;
  240. rel(2603);out meta;
  241. rel(2604);out meta;
  242. rel(2605);out meta;
  243. rel(2606);out meta;
  244. rel(2607);out meta;
  245. rel(2608);out meta;
  246. make marker test="output styles";out;
  247. node(11011);out ids;
  248. rel(1332);out ids;
  249. node(11012);out ids;
  250. rel(1332);out ids qt;
  251. node(12011);out ids;
  252. rel(1332);out ids center;
  253. node(12012);out ids;
  254. rel(1332);out ids qt center;
  255. node(13011);out ids;
  256. rel(1332);out ids bb;
  257. node(13012);out ids;
  258. rel(1332);out ids qt bb;
  259. node(14011);out ids;
  260. rel(1332);out ids geom;
  261. node(14012);out ids;
  262. rel(1332);out ids qt geom;
  263. node(11011);out ids;
  264. rel(1332);out tags;
  265. node(11012);out ids;
  266. rel(1332);out tags qt;
  267. node(12011);out ids;
  268. rel(1332);out tags center;
  269. node(12012);out ids;
  270. rel(1332);out tags qt center;
  271. node(13011);out ids;
  272. rel(1332);out tags bb;
  273. node(13012);out ids;
  274. rel(1332);out tags qt bb;
  275. node(14011);out ids;
  276. rel(1332);out tags geom;
  277. node(14012);out ids;
  278. rel(1332);out tags qt geom;
  279. node(11011);out ids;
  280. rel(1332);out skel;
  281. node(11012);out ids;
  282. rel(1332);out skel qt;
  283. node(12011);out ids;
  284. rel(1332);out skel center;
  285. node(12012);out ids;
  286. rel(1332);out skel qt center;
  287. node(13011);out ids;
  288. rel(1332);out skel bb;
  289. node(13012);out ids;
  290. rel(1332);out skel qt bb;
  291. node(14011);out ids;
  292. rel(1332);out skel geom;
  293. node(14012);out ids;
  294. rel(1332);out skel qt geom;
  295. node(11011);out ids;
  296. rel(1332);out body;
  297. node(11012);out ids;
  298. rel(1332);out body qt;
  299. node(12011);out ids;
  300. rel(1332);out body center;
  301. node(12012);out ids;
  302. rel(1332);out body qt center;
  303. node(13011);out ids;
  304. rel(1332);out body bb;
  305. node(13012);out ids;
  306. rel(1332);out body qt bb;
  307. node(14011);out ids;
  308. rel(1332);out body geom;
  309. node(14012);out ids;
  310. rel(1332);out body qt geom;
  311. node(11011);out ids;
  312. (rel(1332);>;);out ids;
  313. node(11012);out ids;
  314. (rel(1332);>;);out ids qt;
  315. node(12011);out ids;
  316. (rel(1332);>;);out ids center;
  317. node(12012);out ids;
  318. (rel(1332);>;);out ids qt center;
  319. node(13011);out ids;
  320. (rel(1332);>;);out ids bb;
  321. node(13012);out ids;
  322. (rel(1332);>;);out ids qt bb;
  323. node(14011);out ids;
  324. (rel(1332);>;);out ids geom;
  325. node(14012);out ids;
  326. (rel(1332);>;);out ids qt geom;
  327. node(11011);out ids;
  328. (rel(1332);>;);out tags;
  329. node(11012);out ids;
  330. (rel(1332);>;);out tags qt;
  331. node(12011);out ids;
  332. (rel(1332);>;);out tags center;
  333. node(12012);out ids;
  334. (rel(1332);>;);out tags qt center;
  335. node(13011);out ids;
  336. (rel(1332);>;);out tags bb;
  337. node(13012);out ids;
  338. (rel(1332);>;);out tags qt bb;
  339. node(14011);out ids;
  340. (rel(1332);>;);out tags geom;
  341. node(14012);out ids;
  342. (rel(1332);>;);out tags qt geom;
  343. node(11011);out ids;
  344. (rel(1332);>;);out skel;
  345. node(11012);out ids;
  346. (rel(1332);>;);out skel qt;
  347. node(12011);out ids;
  348. (rel(1332);>;);out skel center;
  349. node(12012);out ids;
  350. (rel(1332);>;);out skel qt center;
  351. node(13011);out ids;
  352. (rel(1332);>;);out skel bb;
  353. node(13012);out ids;
  354. (rel(1332);>;);out skel qt bb;
  355. node(14011);out ids;
  356. (rel(1332);>;);out skel geom;
  357. node(14012);out ids;
  358. (rel(1332);>;);out skel qt geom;
  359. node(11011);out ids;
  360. (rel(1332);>;);out body;
  361. node(11012);out ids;
  362. (rel(1332);>;);out body qt;
  363. node(12011);out ids;
  364. (rel(1332);>;);out body center;
  365. node(12012);out ids;
  366. (rel(1332);>;);out body qt center;
  367. node(13011);out ids;
  368. (rel(1332);>;);out body bb;
  369. node(13012);out ids;
  370. (rel(1332);>;);out body qt bb;
  371. node(14011);out ids;
  372. (rel(1332);>;);out body geom;
  373. node(14012);out ids;
  374. (rel(1332);>;);out body qt geom;
  375. way(1302);out geom(0,0,1,1);
  376. way(1302);out geom(-90,-180,90,180);
  377. way(1302);out geom(10,3.02,10,3.03);
  378. rel(1332);out geom(0,0,1,1);
  379. rel(1332);out geom(-90,-180,90,180);
  380. rel(1332);out geom(10,3.02001,11,3.02011);
  381. make marker test="bbox queries";out;
  382. node(0,0,30,40);out meta;
  383. way(0,0,30,40); out meta;
  384. rel(0,0,30,40); out meta;
  385. node(10,1,10.1,1.1);out meta;
  386. way(10,1,10.1,1.1); out meta;
  387. rel(10,1,10.8,1.1); out meta;
  388. node(10,2,10.1,2.1);out meta;
  389. way(10,2,10.1,2.1); out meta;
  390. rel(10,2,10.8,2.1); out meta;
  391. node(10,3,10.1,3.1);out meta;
  392. way(10,3,10.1,3.1); out meta;
  393. rel(10,3,10.8,3.1); out meta;
  394. node(10,4,10.1,4.1);out meta;
  395. way(10,4,10.1,4.1); out meta;
  396. rel(10,4,10.8,4.1); out meta;
  397. node(10,5,10.1,5.1);out meta;
  398. way(10,5,10.1,5.1); out meta;
  399. rel(10,5,10.8,5.1); out meta;
  400. node(10,6,10.1,6.1);out meta;
  401. way(10,6,10.1,6.1); out meta;
  402. rel(10,6,10.8,6.1); out meta;
  403. node(10,7,10.1,7.1);out meta;
  404. way(10,7,10.1,7.1); out meta;
  405. rel(10,7,10.8,7.1); out meta;
  406. node(10,8,10.1,8.1);out meta;
  407. way(10,8,10.1,8.1); out meta;
  408. rel(10,8,10.8,8.1); out meta;
  409. node(10.1,9,10.8,9.1); out meta;
  410. way(10.1,9,10.8,9.1); out meta;
  411. rel(10,9,10.8,9.1); out meta;
  412. node(11,1,11.1,1.1);out meta;
  413. way(11,1,11.1,1.1); out meta;
  414. rel(11,1,11.1,1.1); out meta;
  415. node(11,2,11.1,2.1);out meta;
  416. way(11,2,11.1,2.1); out meta;
  417. rel(11,2,11.1,2.1); out meta;
  418. node(11,3,11.1,3.1);out meta;
  419. way(11,3,11.1,3.1); out meta;
  420. rel(11,3,11.1,3.1); out meta;
  421. node(11,4,11.1,4.1);out meta;
  422. way(11,4,11.1,4.1); out meta;
  423. rel(11,4,11.1,4.1); out meta;
  424. node(11,5,11.1,5.1);out meta;
  425. way(11,5,11.1,5.1); out meta;
  426. rel(11,5,11.1,5.1); out meta;
  427. node(11,6,11.1,6.1);out meta;
  428. way(11,6,11.1,6.1); out meta;
  429. rel(11,6,11.1,6.1); out meta;
  430. rel(11.2,9,11.3,9.1); out meta;
  431. node(10,14,10.1,14.1);out meta;
  432. way(10,14,10.1,14.1); out meta;
  433. node(10,15,10.1,15.1);out meta;
  434. way(10,15,10.1,15.1); out meta;
  435. rel(10,15,10.1,15.1); out meta;
  436. node(10,24,10.1,24.1);out meta;
  437. way(10,24,10.1,24.1); out meta;
  438. node(10,25,10.1,25.1);out meta;
  439. way(10,25,10.1,25.1); out meta;
  440. rel(10,25,10.1,25.1); out meta;
  441. node(10,35,10.1,35.1);out meta;
  442. way(10,35,10.1,35.1); out meta;
  443. node(20,4,20.1,4.1);out meta;
  444. way(20,4,20.1,4.1); out meta;
  445. node(20,5,20.1,5.1);out meta;
  446. way(20,5,20.1,5.1); out meta;
  447. rel(20,5,20.1,5.1); out meta;
  448. node(20,14,20.1,14.1);out meta;
  449. way(20,14,20.1,14.1); out meta;
  450. make marker test="tag queries";out;
  451. node(11011);out ids;
  452. node["foo"="bar_1101"];out meta;
  453. node(11012);out ids;
  454. node["faa_1"="baz_1"];out meta;
  455. node(11013);out ids;
  456. node["faa_1"="baz"];out meta;
  457. node(12011);out ids;
  458. node["sense"="no"]["foo_1"="bar"];out meta;
  459. node(12012);out ids;
  460. node["foo_1"="bar"]["sense"];out meta;
  461. node(12013);out ids;
  462. node["faa_2"="baz"]["fee_2"]["sense"];out meta;
  463. node(12021);out ids;
  464. node["fee_2"];out meta;
  465. node(12022);out ids;
  466. node["foo_1101"="bar"]["foo"~"^bar_"];out meta;
  467. node(12023);out ids;
  468. node["foo_1101"="bar"]["foo"~"^bar_"]["foo"~"_1[123]..$"];out meta;
  469. node(12031);out ids;
  470. node["foo"~"_1[45]..$"];out meta;
  471. node(12032);out ids;
  472. node["sense"!="no"];out meta;
  473. node(12033);out ids;
  474. node["sense"!="no"]["foo_1"!="bar"];out meta;
  475. node(13011);out ids;
  476. node["sense"!~"."];out meta;
  477. node(13012);out ids;
  478. node["sense"!~"."]["foo_1"!~"."];out meta;
  479. node(13013);out ids;
  480. node["sense"!~"."]["foo_1"!="bar"];out meta;
  481. node(11011);out ids;
  482. node(10.99,5.0,11.01,5.07)[changes];out meta;
  483. node(11012);out ids;
  484. node(10.99,5.0,11.01,5.07)[changes~"no|yes"];out meta;
  485. node(11013);out ids;
  486. node(10.99,5.0,11.01,5.07)[changes!~"no|yes"];out meta;
  487. node(12011);out ids;
  488. node(10.99,6.0,11.01,6.07)[empty_value~"^$"];out meta;
  489. node(12012);out ids;
  490. node(10.99,6.0,11.01,6.07)[empty_value!~"^$"];out meta;
  491. node(12013);out ids;
  492. node(10.99,6.0,11.01,6.07)[multiple_values~"first"];out meta;
  493. node(12021);out ids;
  494. node(10.99,6.0,11.01,6.07)[multiple_values~"second"];out meta;
  495. node(12022);out ids;
  496. node(10.99,6.0,11.01,6.07)[multiple_values!~"first"][multiple_values!~"no"];out meta;
  497. node(12023);out ids;
  498. node(10.99,5.0,11.01,5.07)[changes~"^y"][changes~"..."];out meta;
  499. node(12031);out ids;
  500. node(10.99,3.0,11.01,3.07)["faa_2"~"new_vaa"]["fee_2"~"bez"];out meta;
  501. node(12032);out ids;
  502. node(10.99,3.0,11.01,3.07)["faa_2"~"new_vaa"]["fee_2"!~"new_vee"];out meta;
  503. node(12033);out ids;
  504. node(10.99,5.0,11.01,5.07)[changes][changes!~"^y"];out meta;
  505. node(11011);out ids;
  506. way(1302);node(w);out meta;
  507. way(1402);node(w);out meta;
  508. way(1602);node(w);out meta;
  509. way(1702);node(w);out meta;
  510. way(1802);node(w);out meta;
  511. node(11012);out ids;
  512. way(1302);node(10,3,10.2,3.2)(w);out meta;
  513. way(1402);node(10,4,10.2,4.2)(w);out meta;
  514. way(1602);node(10,6,10.2,6.2)(w);out meta;
  515. way(1702);node(10,7,10.2,7.2)(w);out meta;
  516. way(1802);node(10,8,10.2,8.2)(w);out meta;
  517. node(11011);out ids;
  518. rel(1312);node(r);out meta;
  519. rel(1412);node(r);out meta;
  520. rel(1612);node(r);out meta;
  521. rel(1712);node(r);out meta;
  522. rel(1812);node(r);out meta;
  523. node(11012);out ids;
  524. rel(1312);node(10,3,10.2,3.2)(r);out meta;
  525. rel(1412);node(10,4,10.2,4.2)(r);out meta;
  526. rel(1612);node(10,6,10.2,6.2)(r);out meta;
  527. rel(1712);node(10,7,10.2,7.2)(r);out meta;
  528. rel(1812);node(10,8,10.2,8.2)(r);out meta;
  529. node(11011);out ids;
  530. rel(1322);way(r);out meta;
  531. rel(1422);way(r);out meta;
  532. rel(1622);way(r);out meta;
  533. rel(1722);way(r);out meta;
  534. rel(1822);way(r);out meta;
  535. node(11022);out ids;
  536. rel(1322);way(10.2,3,10.3,3.2)(r);out meta;
  537. rel(1422);way(10.2,4,10.3,4.2)(r);out meta;
  538. rel(1622);way(10.2,6,10.3,6.2)(r);out meta;
  539. rel(1722);way(10.2,7,10.3,7.2)(r);out meta;
  540. rel(1822);way(10.2,8,10.3,8.2)(r);out meta;
  541. node(11011);out ids;
  542. way(1302);>;out meta;
  543. way(1402);>;out meta;
  544. way(1602);>;out meta;
  545. way(1702);>;out meta;
  546. way(1802);>;out meta;
  547. node(11012);out ids;
  548. rel(1332);>;out meta;
  549. rel(1432);>;out meta;
  550. rel(1632);>;out meta;
  551. rel(1732);>;out meta;
  552. rel(1832);>;out meta;
  553. node(11013);out ids;
  554. (rel(1332);way(1302););>;out meta;
  555. (rel(1432);way(1402););>;out meta;
  556. (rel(1632);way(1602););>;out meta;
  557. (rel(1732);way(1702););>;out meta;
  558. (rel(1832);way(1802););>;out meta;
  559. node(11011);out ids;
  560. rel(1642);rel(r);out meta;
  561. rel(1742);rel(r);out meta;
  562. rel(1842);rel(r);out meta;
  563. node(11012);out ids;
  564. rel(1642);rel(10.3,6,10.4,6.2)(r);out meta;
  565. rel(1742);rel(10.3,7,10.4,7.2)(r);out meta;
  566. rel(1842);rel(10.3,8,10.4,8.2)(r);out meta;
  567. node(11011);out ids;
  568. way(1302);>>;out meta;
  569. node(11012);out ids;
  570. rel(3000);>>;out meta;
  571. node(11013);out ids;
  572. (rel(3000);way(1302););>>;out meta;
  573. node(11011);out ids;
  574. node(12021);way(bn);out meta;
  575. node(13021);way(bn);out meta;
  576. node(14021);way(bn);out meta;
  577. node(16021);way(bn);out meta;
  578. node(17021);way(bn);out meta;
  579. node(18021);way(bn);out meta;
  580. node(11012);out ids;
  581. node(12023);way(bn);out meta;
  582. node(13023);way(bn);out meta;
  583. node(14023);way(bn);out meta;
  584. node(16024);way(bn);out meta;
  585. node(17024);way(bn);out meta;
  586. node(18024);way(bn);out meta;
  587. node(11013);out ids;
  588. (node(12021);node(12023););way(bn);out meta;
  589. (node(13021);node(13023););way(bn);out meta;
  590. (node(14021);node(14023););way(bn);out meta;
  591. (node(16021);node(16024););way(bn);out meta;
  592. (node(17021);node(17024););way(bn);out meta;
  593. (node(18021);node(18024););way(bn);out meta;
  594. node(11011);out ids;
  595. node(12021);way(bn)[foo];out meta;
  596. node(13021);way(bn)[foo];out meta;
  597. node(14021);way(bn)[foo];out meta;
  598. node(16021);way(bn)[foo];out meta;
  599. node(17021);way(bn)[foo];out meta;
  600. node(18021);way(bn)[foo];out meta;
  601. node(11012);out ids;
  602. node(12023);way(bn)[foo];out meta;
  603. node(13023);way(bn)[foo];out meta;
  604. node(14023);way(bn)[foo];out meta;
  605. node(16024);way(bn)[foo];out meta;
  606. node(17024);way(bn)[foo];out meta;
  607. node(18024);way(bn)[foo];out meta;
  608. node(11013);out ids;
  609. (node(12021);node(12023););way(bn)[foo];out meta;
  610. (node(13021);node(13023););way(bn)[foo];out meta;
  611. (node(14021);node(14023););way(bn)[foo];out meta;
  612. (node(16021);node(16024););way(bn)[foo];out meta;
  613. (node(17021);node(17024););way(bn)[foo];out meta;
  614. (node(18021);node(18024););way(bn)[foo];out meta;
  615. node(11011);out ids;
  616. node(120210);rel(bn);out meta;
  617. node(131210);rel(bn);out meta;
  618. node(141210);rel(bn);out meta;
  619. node(161210);rel(bn);out meta;
  620. node(171210);rel(bn);out meta;
  621. node(181210);rel(bn);out meta;
  622. node(11012);out ids;
  623. node(120220);rel(bn);out meta;
  624. node(131220);rel(bn);out meta;
  625. node(141220);rel(bn);out meta;
  626. node(161230);rel(bn);out meta;
  627. node(171230);rel(bn);out meta;
  628. node(181230);rel(bn);out meta;
  629. node(11013);out ids;
  630. (node(120210);node(120220););rel(bn);out meta;
  631. (node(131210);node(131220););rel(bn);out meta;
  632. (node(141210);node(141220););rel(bn);out meta;
  633. (node(161210);node(161230););rel(bn);out meta;
  634. (node(171210);node(171230););rel(bn);out meta;
  635. (node(181210);node(181230););rel(bn);out meta;
  636. node(11011);out ids;
  637. node(120210);rel[foo](bn);out meta;
  638. node(131210);rel[foo](bn);out meta;
  639. node(141210);rel[foo](bn);out meta;
  640. node(161210);rel[foo](bn);out meta;
  641. node(171210);rel[foo](bn);out meta;
  642. node(181210);rel[foo](bn);out meta;
  643. node(11012);out ids;
  644. node(120220);rel[foo](bn);out meta;
  645. node(131220);rel[foo](bn);out meta;
  646. node(141220);rel[foo](bn);out meta;
  647. node(161230);rel[foo](bn);out meta;
  648. node(171230);rel[foo](bn);out meta;
  649. node(181230);rel[foo](bn);out meta;
  650. node(11013);out ids;
  651. (node(120210);node(120220););rel[foo](bn);out meta;
  652. (node(131210);node(131220););rel[foo](bn);out meta;
  653. (node(141210);node(141220););rel[foo](bn);out meta;
  654. (node(161210);node(161230););rel[foo](bn);out meta;
  655. (node(171210);node(171230););rel[foo](bn);out meta;
  656. (node(181210);node(181230););rel[foo](bn);out meta;
  657. node(11011);out ids;
  658. way(13221);rel(bw);out meta;
  659. way(14221);rel(bw);out meta;
  660. way(16221);rel(bw);out meta;
  661. way(17221);rel(bw);out meta;
  662. way(18221);rel(bw);out meta;
  663. node(11012);out ids;
  664. way(13222);rel(bw);out meta;
  665. way(14222);rel(bw);out meta;
  666. way(16223);rel(bw);out meta;
  667. way(17223);rel(bw);out meta;
  668. way(18223);rel(bw);out meta;
  669. node(11013);out ids;
  670. (way(13221);way(13222););rel(bw);out meta;
  671. (way(14221);way(14222););rel(bw);out meta;
  672. (way(16221);way(16223););rel(bw);out meta;
  673. (way(17221);way(17223););rel(bw);out meta;
  674. (way(18221);way(18223););rel(bw);out meta;
  675. node(11011);out ids;
  676. way(13221);rel[foo](bw);out meta;
  677. way(14221);rel[foo](bw);out meta;
  678. way(16221);rel[foo](bw);out meta;
  679. way(17221);rel[foo](bw);out meta;
  680. way(18221);rel[foo](bw);out meta;
  681. node(11012);out ids;
  682. way(13222);rel[foo](bw);out meta;
  683. way(14222);rel[foo](bw);out meta;
  684. way(16223);rel[foo](bw);out meta;
  685. way(17223);rel[foo](bw);out meta;
  686. way(18223);rel[foo](bw);out meta;
  687. node(11013);out ids;
  688. (way(13221);way(13222););rel[foo](bw);out meta;
  689. (way(14221);way(14222););rel[foo](bw);out meta;
  690. (way(16221);way(16223););rel[foo](bw);out meta;
  691. (way(17221);way(17223););rel[foo](bw);out meta;
  692. (way(18221);way(18223););rel[foo](bw);out meta;
  693. node(11011);out ids;
  694. node(132111);<;out meta;
  695. node(161210);<;out meta;
  696. way(16221);<;out meta;
  697. node(163211);<;out meta;
  698. node(11012);out ids;
  699. (node(161210);way(16221);node(163211););<;out meta;
  700. node(11013);out ids;
  701. (node(163210);way(16321);node(163211););<;out meta;
  702. node(11011);out ids;
  703. rel(16421);rel(br);out meta;
  704. rel(17421);rel(br);out meta;
  705. rel(18421);rel(br);out meta;
  706. node(11012);out ids;
  707. rel(16423);rel(br);out meta;
  708. rel(17423);rel(br);out meta;
  709. rel(18423);rel(br);out meta;
  710. node(11013);out ids;
  711. (rel(16421);rel(16423););rel(br);out meta;
  712. (rel(17421);rel(17423););rel(br);out meta;
  713. (rel(18421);rel(18423););rel(br);out meta;
  714. node(11011);out ids;
  715. rel(16421);rel[foo](br);out meta;
  716. rel(17421);rel[foo](br);out meta;
  717. rel(18421);rel[foo](br);out meta;
  718. node(11012);out ids;
  719. rel(16423);rel[foo](br);out meta;
  720. rel(17423);rel[foo](br);out meta;
  721. rel(18423);rel[foo](br);out meta;
  722. node(11013);out ids;
  723. (rel(16421);rel(16423););rel[foo](br);out meta;
  724. (rel(17421);rel(17423););rel[foo](br);out meta;
  725. (rel(18421);rel(18423););rel[foo](br);out meta;
  726. node(11011);out ids;
  727. node(132111);<<;out meta;
  728. node(161210);<<;out meta;
  729. way(16221);<<;out meta;
  730. node(163211);<<;out meta;
  731. rel(16423);<<;out meta;
  732. node(11012);out ids;
  733. (node(161210);way(16221);node(163211);rel(16423););<<;out meta;
  734. node(11013);out ids;
  735. (node(167210);way(16721);node(167211);rel(16723););<<;out meta;
  736. node(11011);out ids;
  737. rel(1612);node(r:"");out meta;
  738. rel(1622);way(r:"");out meta;
  739. rel(1941);rel(r:"initial");out meta;
  740. node(11012);out ids;
  741. node(120210);rel(bn:"");out meta;
  742. node(11013);out ids;
  743. way(13221);rel(bw:"");out meta;
  744. node(12011);out ids;
  745. rel(1612);node(r:"foo");out meta;
  746. rel(1622);way(r:"foo");out meta;
  747. rel(1941);rel(r:"intermediate");out meta;
  748. node(12012);out ids;
  749. node(120210);rel(bn:"foo");out meta;
  750. node(11013);out ids;
  751. way(13221);rel(bw:"foo");out meta;
  752. node(around:2500,10.0,4.0);out meta;
  753. way(around:2500,10.0,4.0);out meta;
  754. node(11011);out ids;
  755. rel(around:1,10.301,4.02);out meta;
  756. node(11011);out ids;
  757. rel(around:100,20.2,4.0203);out meta;
  758. node(11011);out ids;
  759. node(1402);node(around:1500);out meta;
  760. node(11011);out ids;
  761. way(1402);node(around:1500);out meta;
  762. node(11011);out ids;
  763. rel(1432);node(around:1500);out meta;
  764. node(poly:"10.0 4.0 10.02 4.0 10.02 4.02 10.0 4.02");out meta;
  765. way(poly:"10.0 4.0 10.02 4.0 10.02 4.02 10.0 4.02");out meta;
  766. node(11011);out ids;
  767. rel(poly:"10.3 4.019 10.302 4.019 10.302 4.021 10.3 4.021");out meta;
  768. node(11011);out ids;
  769. rel(poly:"10.3 4.019 10.302 4.019 10.302 4.021 10.3 4.021");out meta;
  770. node(uid:42)(10,4,10.1,4.1);out meta;
  771. way(uid:42)(10,4,10.1,4.1);out meta;
  772. rel(uid:42)(10,5,10.1,5.1);out meta;
  773. node(10,0,20,10)(newer:"2013-07-01T09:03:15Z");out meta;
  774. way(10,0,20,10)(newer:"2013-07-01T09:03:15Z");out meta;
  775. rel(10,0,20,10)(newer:"2013-07-01T09:03:15Z");out meta;
  776. node(11011);out ids;
  777. node[~"f(aa|ee)"~"."];out meta;
  778. way[~"f(aa|ee)"~"."];out meta;
  779. rel[~"f(aa|ee)"~"."];out meta;
  780. node(11012);out ids;
  781. node[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  782. way[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  783. rel[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  784. node(12011);out ids;
  785. node(10.9,2,11.1,3.03)[~"f(aa|ee)"~"."];out meta;
  786. way(10.9,2,11.1,3.03)[~"f(aa|ee)"~"."];out meta;
  787. rel(10.9,2,11.1,3.03)[~"f(aa|ee)"~"."];out meta;
  788. node(12012);out ids;
  789. node(10.9,2,11.1,3.03)[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  790. way(10.9,2,11.1,3.03)[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  791. rel(10.9,2,11.1,3.03)[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  792. node(11011);out ids;
  793. node["sense"="no"][~"f(aa|ee)"~"."];out meta;
  794. way["sense"="no"][~"f(aa|ee)"~"."];out meta;
  795. rel["sense"="no"][~"f(aa|ee)"~"."];out meta;
  796. node(11012);out ids;
  797. node["sense"="no"][~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  798. way["sense"="no"][~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  799. rel["sense"="no"][~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  800. node(12011);out ids;
  801. node["sense"="no"](10.9,2,11.1,3.03)[~"f(aa|ee)"~"."];out meta;
  802. way["sense"="no"](10.9,2,11.1,3.03)[~"f(aa|ee)"~"."];out meta;
  803. rel["sense"="no"](10.9,2,11.1,3.03)[~"f(aa|ee)"~"."];out meta;
  804. node(12012);out ids;
  805. node["sense"="no"](10.9,2,11.1,3.03)[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  806. way["sense"="no"](10.9,2,11.1,3.03)[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  807. rel["sense"="no"](10.9,2,11.1,3.03)[~"f(aa|ee)"~"."][~"sense"~"."];out meta;
  808. node(11,5,11.1,5.1);
  809. convert meta ::id=id(), type=type(), version=version(), timestamp=timestamp(), changeset=changeset(), uid=uid(), user=user();
  810. out;
  811. way(11,5,11.1,5.1);
  812. convert meta ::id=id(), type=type(), version=version(), timestamp=timestamp(), changeset=changeset(), uid=uid(), user=user();
  813. out;
  814. rel(11,5,11.1,5.1);
  815. convert meta ::id=id(), type=type(), version=version(), timestamp=timestamp(), changeset=changeset(), uid=uid(), user=user();
  816. out;
  817. way(id:1303,1403,1503,1603,1703,1803);
  818. convert geometry ::id=id(), type=type(), length=length();
  819. out;
  820. rel(id:1333,1433,1673,1773,1873,1922);
  821. convert geometry ::id=id(), type=type(), length=length();
  822. out;
  823. (node[foo];way[foo];rel[foo];)->.orig;
  824. for.orig(version())
  825. {
  826. make for_test ver=u(version()),per_val=_.val,refs=set("{"+type()+","+id()+"}");
  827. (._;.result;)->.result;
  828. }
  829. .result out;
  830. .empty->.result;
  831. for.orig(keys())
  832. {
  833. if (count(nodes)+count(ways)+count(relations) > 1)
  834. {
  835. make for_keys_test
  836. key=_.val,values=set(t[_.val]),
  837. count=count(nodes)+";"+count(ways)+";"+count(relations)+";"+count(deriveds),
  838. length=sum(length());
  839. (._;.result;)->.result;
  840. }
  841. }
  842. .result out;