├── scripts ├── geoquery │ ├── translate.sh │ ├── semparse.rb │ ├── query.rb │ ├── sigf_format.rb │ ├── test.sh │ ├── select.rb │ ├── eval.rb │ ├── extract.rb │ └── cv.sh └── free917 │ ├── sigf_format.rb │ ├── eval.rb │ ├── parse_utterance.rb │ └── cv.sh ├── example_geoquery ├── grammar │ ├── grammar.15.gz │ ├── grammar.16.gz │ ├── grammar.25.gz │ ├── grammar.26.gz │ ├── grammar.29.gz │ ├── grammar.3.gz │ ├── grammar.33.gz │ ├── grammar.34.gz │ ├── grammar.37.gz │ └── grammar.6.gz ├── cdec.ini ├── cfg.rb ├── data.en ├── data.gold ├── data.funql ├── data.prolog ├── run.sh └── data.in ├── example_free917 ├── cfg.rb ├── cdec.ini ├── data.en ├── data.gold ├── data.in ├── run.sh └── data.mrl ├── data ├── weights.init ├── geoquery │ ├── delete.ids │ ├── folds600 │ │ ├── fold-1-test.ids │ │ ├── fold-2-test.ids │ │ ├── fold-8-test.ids │ │ ├── fold-3-test.ids │ │ ├── fold-4-test.ids │ │ ├── fold-5-test.ids │ │ ├── fold-6-test.ids │ │ ├── fold-7-test.ids │ │ ├── fold-9-test.ids │ │ ├── fold-0-test.ids │ │ ├── fold-0-train.ids │ │ ├── fold-3-train.ids │ │ ├── fold-4-train.ids │ │ ├── fold-5-train.ids │ │ ├── fold-6-train.ids │ │ ├── fold-7-train.ids │ │ ├── fold-9-train.ids │ │ ├── fold-1-train.ids │ │ ├── fold-2-train.ids │ │ └── fold-8-train.ids │ ├── README │ ├── split880.test.ids │ ├── split880.train.ids │ ├── wasp-1.0 │ │ ├── geoquery.pl │ │ └── eval.pl │ └── geoquery.de ├── free917 │ ├── README │ ├── free917v2.test.tok.en │ ├── free917v2.test.tok.de │ └── free917v2.test.gold └── stopwords.en ├── cfg.rb ├── README.md ├── hopefear.rb └── rebol.rb /scripts/geoquery/translate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /toolbox/cdec-dtrain/decoder/cdec -c $1 -w $2 2>/dev/null 4 | 5 | -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.15.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.15.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.16.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.16.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.25.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.25.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.26.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.26.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.29.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.29.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.3.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.3.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.33.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.33.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.34.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.34.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.37.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.37.gz -------------------------------------------------------------------------------- /example_geoquery/grammar/grammar.6.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pks/rebol/HEAD/example_geoquery/grammar/grammar.6.gz -------------------------------------------------------------------------------- /example_free917/cfg.rb: -------------------------------------------------------------------------------- 1 | SEMPRE = '/path/to/sempre' 2 | TIMEOUT = 60 3 | CDEC_BIN = '/path/to/cdec/decoder/cdec' 4 | $cache = Memcached.new('localhost:31337') 5 | 6 | -------------------------------------------------------------------------------- /scripts/geoquery/semparse.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nlp_ruby' 4 | require 'memcached' 5 | 6 | 7 | require_relative ARGV[0] 8 | 9 | while line = STDIN.gets 10 | puts `#{SMT_SEMPARSE} "#{line}"` 11 | end 12 | 13 | -------------------------------------------------------------------------------- /data/weights.init: -------------------------------------------------------------------------------- 1 | CountEF 0.1 2 | EgivenFCoherent -0.1 3 | Glue 0.01 4 | IsSingletonF -0.01 5 | IsSingletonFE -0.01 6 | LanguageModel 0.1 7 | LanguageModel_OOV -1 8 | MaxLexFgivenE -0.1 9 | MaxLexEgivenF -0.1 10 | PassThrough -0.1 11 | SampleCountF -0.1 12 | WordPenalty -0.1 13 | -------------------------------------------------------------------------------- /scripts/geoquery/query.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nlp_ruby' 4 | require 'memcached' 5 | 6 | 7 | require_relative ARGV[0] 8 | 9 | while line = STDIN.gets 10 | puts `echo "execute_funql_query(#{line}, X)." | swipl -s #{EVAL_PL} 2>&1 | grep "X ="`.gsub('X = ','').strip 11 | end 12 | 13 | -------------------------------------------------------------------------------- /data/geoquery/delete.ids: -------------------------------------------------------------------------------- 1 | 12 2 | 174 3 | 192 4 | 211 5 | 237 6 | 178 7 | 14 8 | 130 9 | 595 10 | 297 11 | 299 12 | 326 13 | 327 14 | 330 15 | 333 16 | 335 17 | 318 18 | 340 19 | 343 20 | 345 21 | 346 22 | 352 23 | 353 24 | 376 25 | 803 26 | 723 27 | 724 28 | 726 29 | 608 30 | 454 31 | 438 32 | 439 33 | 440 34 | 441 35 | 393 36 | 688 37 | -------------------------------------------------------------------------------- /example_free917/cdec.ini: -------------------------------------------------------------------------------- 1 | formalism=scfg 2 | intersection_strategy=cube_pruning 3 | cubepruning_pop_limit=30 4 | scfg_max_span_limit=15 5 | feature_function=WordPenalty 6 | feature_function=RuleIdentityFeatures 7 | feature_function=RuleSourceBigramFeatures 8 | feature_function=RuleTargetBigramFeatures 9 | feature_function=RuleShape 10 | -------------------------------------------------------------------------------- /example_geoquery/cdec.ini: -------------------------------------------------------------------------------- 1 | formalism=scfg 2 | intersection_strategy=cube_pruning 3 | cubepruning_pop_limit=30 4 | scfg_max_span_limit=15 5 | feature_function=WordPenalty 6 | feature_function=RuleIdentityFeatures 7 | feature_function=RuleSourceBigramFeatures 8 | feature_function=RuleTargetBigramFeatures 9 | feature_function=RuleShape 10 | -------------------------------------------------------------------------------- /scripts/free917/sigf_format.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'zipf' 4 | 5 | 6 | gold = ReadFile.readlines_strip ARGV[0] 7 | i = -1 8 | while line = STDIN.gets 9 | i += 1 10 | line.strip! 11 | a = [0, 0, 1] 12 | if line==gold[i] 13 | a[0] = 1 14 | a[1] = 1 15 | elsif line!='' 16 | a[1] = 1 17 | end 18 | puts a.join " " 19 | end 20 | 21 | -------------------------------------------------------------------------------- /scripts/geoquery/sigf_format.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nlp_ruby' 4 | 5 | 6 | gold = ReadFile.readlines_strip ARGV[0] 7 | i = -1 8 | while line = STDIN.gets 9 | i += 1 10 | line.strip! 11 | a = [0, 0, 1] 12 | if line==gold[i] 13 | a[0] = 1 14 | a[1] = 1 15 | elsif line!='' 16 | a[1] = 1 17 | end 18 | puts a.join " " 19 | end 20 | 21 | -------------------------------------------------------------------------------- /example_geoquery/cfg.rb: -------------------------------------------------------------------------------- 1 | _PATH = '/workspace/grounded/test' 2 | SMT_SEMPARSE = "python #{_PATH}/smt-semparse/decode_sentence.py /workspace/grounded/test/smt-semparse/work/full_dataset" 3 | EVAL_PL = "#{_PATH}/wasp-1.0/data/geo-funql/eval/eval.pl" 4 | ACCEPT_ZOMBIES = true 5 | TIMEOUT = 60 6 | CDEC_BIN = '/toolbox/cdec/decoder/cdec' 7 | $cache = Memcached.new('localhost:31337') 8 | 9 | -------------------------------------------------------------------------------- /example_geoquery/data.en: -------------------------------------------------------------------------------- 1 | name all the rivers in colorado 2 | count the states which have elevations lower than what alabama has 3 | give me the number of rivers in california 4 | give me the states that border utah 5 | how high is mount mckinley 6 | how high is the highest point in america 7 | how high is the highest point of alabama 8 | how large is alaska 9 | how large is texas 10 | how long is the colorado river 11 | -------------------------------------------------------------------------------- /example_geoquery/data.gold: -------------------------------------------------------------------------------- 1 | [riverid(arkansas),riverid(canadian),riverid(colorado),riverid(green),riverid('north platte'),riverid(republican),riverid('rio grande'),riverid('san juan'),riverid('smoky hill'),riverid('south platte')] 2 | [2] 3 | [1] 4 | [stateid(arizona),stateid(colorado),stateid(idaho),stateid(nevada),stateid('new mexico'),stateid(wyoming)] 5 | [6194] 6 | [6194] 7 | [734] 8 | [591000.0] 9 | [266807.0] 10 | [2333] 11 | -------------------------------------------------------------------------------- /scripts/geoquery/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /workspace/grounded/rebol/scripts/geoquery/translate.sh $1 $2 < /workspace/grounded/rebol/proper/d/split880.test.in | tee $2.transl | /workspace/grounded/rebol/scripts/geoquery/semparse.rb $3 | tee $2.parsed | /workspace/grounded/rebol/scripts/geoquery/query.rb $3 > $2.output 4 | /workspace/grounded/rebol/scripts/geoquery/eval.rb /workspace/grounded/rebol/proper/d/split880.test.gold < $2.output > $2.result 5 | 6 | -------------------------------------------------------------------------------- /scripts/geoquery/select.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nlp_ruby' 4 | 5 | 6 | def main 7 | ids = [] 8 | ids = ReadFile.readlines_strip(ARGV[0]).map{ |i| i.strip.to_i } if ARGV[0] 9 | delete_ids = [] 10 | delete_ids = ReadFile.readlines_strip(ARGV[1]).map{ |i| i.strip.to_i } if ARGV[1] 11 | i = 0 12 | while line = STDIN.gets 13 | puts line if ids.include?(i)&&!delete_ids.include?(i) 14 | i += 1 15 | end 16 | end 17 | 18 | 19 | main 20 | 21 | -------------------------------------------------------------------------------- /scripts/free917/eval.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'zipf' 4 | 5 | 6 | gold = ReadFile.readlines_strip ARGV[0] 7 | i = j = correct = 0 8 | while line = STDIN.gets 9 | line.strip! 10 | correct += 1 if line==gold[i] 11 | i += 1 12 | j += 1 if line=='' # no parse 13 | end 14 | acc = correct.to_f/i 15 | prec = correct.to_f/(i-j) 16 | puts "acc=#{(100*acc).round 2} prec=#{(100*prec).round 2} (#{i}/#{j}) abs=#{correct} f1=#{(100*(2*acc*prec)/(acc+prec)).round 2}" 17 | 18 | -------------------------------------------------------------------------------- /scripts/geoquery/eval.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nlp_ruby' 4 | 5 | 6 | gold = ReadFile.readlines_strip ARGV[0] 7 | i = j = correct = 0 8 | while line = STDIN.gets 9 | line.strip! 10 | correct += 1 if line==gold[i] 11 | i += 1 12 | j += 1 if line=='' # no parse 13 | end 14 | acc = correct.to_f/i 15 | prec = correct.to_f/(i-j) 16 | puts "acc=#{(100*acc).round 2} prec=#{(100*prec).round 2} (#{i}/#{j}) abs=#{correct} f1=#{(100*(2*acc*prec)/(acc+prec)).round 2}" 17 | 18 | -------------------------------------------------------------------------------- /example_free917/data.en: -------------------------------------------------------------------------------- 1 | at what institutions was marshall hall a professor 2 | how many companies are traded by the nyse 3 | what is the address of the apple , inc. headquarters 4 | what was the cover price of the x-men issue 1 5 | what issue of sandman is a dream of a thousand cats 6 | how many people survived the sinking of the titanic 7 | what olympics has egypt participated in 8 | what celebrities have gone to the betty ford center 9 | how old do you have to be to play monopoly 10 | how many first generation particles are there 11 | -------------------------------------------------------------------------------- /example_geoquery/data.funql: -------------------------------------------------------------------------------- 1 | answer(river(loc_2(stateid('colorado')))) 2 | answer(count(state(low_point_2(lower_2(low_point_1(stateid('alabama'))))))) 3 | answer(count(river(loc_2(stateid('california'))))) 4 | answer(state(next_to_2(stateid('utah')))) 5 | answer(elevation_1(placeid('mount mckinley'))) 6 | answer(elevation_1(highest(place(loc_2(countryid('usa')))))) 7 | answer(elevation_1(highest(place(loc_2(stateid('alabama')))))) 8 | answer(size(stateid('alaska'))) 9 | answer(size(stateid('texas'))) 10 | answer(len(river(riverid('colorado')))) 11 | -------------------------------------------------------------------------------- /example_geoquery/data.prolog: -------------------------------------------------------------------------------- 1 | answer(river(loc_2(stateid('colorado')))) 2 | answer(count(state(low_point_2(lower_2(low_point_1(stateid('alabama'))))))) 3 | answer(count(river(loc_2(stateid('california'))))) 4 | answer(state(next_to_2(stateid('utah')))) 5 | answer(elevation_1(placeid('mount mckinley'))) 6 | answer(elevation_1(highest(place(loc_2(countryid('usa')))))) 7 | answer(elevation_1(highest(place(loc_2(stateid('alabama')))))) 8 | answer(size(stateid('alaska'))) 9 | answer(size(stateid('texas'))) 10 | answer(len(river(riverid('colorado')))) 11 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-1-test.ids: -------------------------------------------------------------------------------- 1 | 4 2 | 7 3 | 12 4 | 23 5 | 41 6 | 52 7 | 68 8 | 70 9 | 77 10 | 120 11 | 133 12 | 142 13 | 143 14 | 164 15 | 171 16 | 180 17 | 254 18 | 261 19 | 263 20 | 269 21 | 274 22 | 294 23 | 310 24 | 314 25 | 353 26 | 393 27 | 404 28 | 419 29 | 453 30 | 460 31 | 461 32 | 484 33 | 487 34 | 493 35 | 514 36 | 559 37 | 564 38 | 575 39 | 591 40 | 602 41 | 619 42 | 648 43 | 660 44 | 674 45 | 682 46 | 683 47 | 730 48 | 734 49 | 738 50 | 749 51 | 750 52 | 784 53 | 814 54 | 820 55 | 834 56 | 841 57 | 842 58 | 858 59 | 859 60 | 877 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-2-test.ids: -------------------------------------------------------------------------------- 1 | 0 2 | 2 3 | 8 4 | 22 5 | 30 6 | 43 7 | 92 8 | 97 9 | 103 10 | 111 11 | 119 12 | 137 13 | 156 14 | 178 15 | 192 16 | 221 17 | 252 18 | 256 19 | 260 20 | 271 21 | 288 22 | 293 23 | 298 24 | 308 25 | 309 26 | 318 27 | 322 28 | 346 29 | 384 30 | 411 31 | 442 32 | 452 33 | 470 34 | 471 35 | 478 36 | 490 37 | 492 38 | 506 39 | 513 40 | 535 41 | 553 42 | 557 43 | 562 44 | 568 45 | 574 46 | 579 47 | 583 48 | 613 49 | 634 50 | 643 51 | 653 52 | 695 53 | 699 54 | 706 55 | 758 56 | 759 57 | 768 58 | 771 59 | 795 60 | 866 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-8-test.ids: -------------------------------------------------------------------------------- 1 | 9 2 | 13 3 | 14 4 | 28 5 | 58 6 | 65 7 | 66 8 | 69 9 | 72 10 | 78 11 | 102 12 | 145 13 | 186 14 | 189 15 | 217 16 | 244 17 | 267 18 | 306 19 | 327 20 | 330 21 | 351 22 | 362 23 | 367 24 | 407 25 | 410 26 | 415 27 | 430 28 | 447 29 | 465 30 | 473 31 | 474 32 | 512 33 | 527 34 | 530 35 | 540 36 | 541 37 | 560 38 | 561 39 | 567 40 | 569 41 | 584 42 | 587 43 | 607 44 | 609 45 | 614 46 | 624 47 | 647 48 | 651 49 | 655 50 | 681 51 | 691 52 | 726 53 | 727 54 | 752 55 | 790 56 | 817 57 | 846 58 | 848 59 | 854 60 | 856 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-3-test.ids: -------------------------------------------------------------------------------- 1 | 17 2 | 44 3 | 49 4 | 55 5 | 59 6 | 61 7 | 62 8 | 95 9 | 100 10 | 121 11 | 136 12 | 155 13 | 185 14 | 227 15 | 230 16 | 257 17 | 266 18 | 282 19 | 289 20 | 291 21 | 324 22 | 337 23 | 342 24 | 345 25 | 355 26 | 357 27 | 364 28 | 397 29 | 400 30 | 423 31 | 429 32 | 444 33 | 463 34 | 503 35 | 505 36 | 507 37 | 519 38 | 520 39 | 529 40 | 538 41 | 545 42 | 563 43 | 593 44 | 605 45 | 632 46 | 646 47 | 665 48 | 675 49 | 690 50 | 704 51 | 710 52 | 715 53 | 740 54 | 747 55 | 755 56 | 765 57 | 779 58 | 780 59 | 822 60 | 864 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-4-test.ids: -------------------------------------------------------------------------------- 1 | 21 2 | 24 3 | 36 4 | 67 5 | 75 6 | 79 7 | 83 8 | 90 9 | 112 10 | 144 11 | 154 12 | 160 13 | 165 14 | 170 15 | 176 16 | 215 17 | 237 18 | 258 19 | 262 20 | 265 21 | 278 22 | 279 23 | 299 24 | 312 25 | 338 26 | 360 27 | 361 28 | 371 29 | 392 30 | 427 31 | 441 32 | 466 33 | 476 34 | 480 35 | 494 36 | 501 37 | 509 38 | 510 39 | 528 40 | 580 41 | 597 42 | 644 43 | 652 44 | 673 45 | 680 46 | 686 47 | 693 48 | 700 49 | 709 50 | 739 51 | 751 52 | 773 53 | 783 54 | 800 55 | 805 56 | 807 57 | 855 58 | 857 59 | 863 60 | 873 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-5-test.ids: -------------------------------------------------------------------------------- 1 | 10 2 | 11 3 | 18 4 | 20 5 | 54 6 | 57 7 | 74 8 | 130 9 | 140 10 | 150 11 | 159 12 | 169 13 | 182 14 | 205 15 | 212 16 | 216 17 | 222 18 | 276 19 | 302 20 | 303 21 | 316 22 | 340 23 | 344 24 | 352 25 | 354 26 | 377 27 | 379 28 | 383 29 | 388 30 | 389 31 | 424 32 | 431 33 | 434 34 | 449 35 | 456 36 | 479 37 | 533 38 | 536 39 | 544 40 | 555 41 | 566 42 | 595 43 | 603 44 | 612 45 | 630 46 | 650 47 | 668 48 | 670 49 | 677 50 | 694 51 | 697 52 | 702 53 | 708 54 | 712 55 | 718 56 | 756 57 | 766 58 | 835 59 | 839 60 | 845 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-6-test.ids: -------------------------------------------------------------------------------- 1 | 19 2 | 31 3 | 32 4 | 56 5 | 86 6 | 89 7 | 94 8 | 106 9 | 113 10 | 174 11 | 193 12 | 194 13 | 202 14 | 248 15 | 259 16 | 264 17 | 280 18 | 307 19 | 366 20 | 370 21 | 376 22 | 385 23 | 394 24 | 443 25 | 445 26 | 448 27 | 450 28 | 462 29 | 481 30 | 496 31 | 497 32 | 518 33 | 523 34 | 525 35 | 556 36 | 578 37 | 589 38 | 594 39 | 610 40 | 623 41 | 625 42 | 638 43 | 667 44 | 679 45 | 728 46 | 733 47 | 736 48 | 748 49 | 777 50 | 789 51 | 797 52 | 801 53 | 806 54 | 823 55 | 830 56 | 833 57 | 838 58 | 847 59 | 867 60 | 872 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-7-test.ids: -------------------------------------------------------------------------------- 1 | 5 2 | 47 3 | 48 4 | 73 5 | 76 6 | 81 7 | 85 8 | 91 9 | 118 10 | 126 11 | 128 12 | 138 13 | 139 14 | 147 15 | 153 16 | 163 17 | 173 18 | 191 19 | 201 20 | 206 21 | 211 22 | 218 23 | 223 24 | 233 25 | 234 26 | 236 27 | 239 28 | 240 29 | 241 30 | 246 31 | 311 32 | 317 33 | 343 34 | 363 35 | 387 36 | 391 37 | 396 38 | 401 39 | 418 40 | 426 41 | 439 42 | 457 43 | 502 44 | 549 45 | 565 46 | 585 47 | 590 48 | 600 49 | 659 50 | 661 51 | 688 52 | 689 53 | 761 54 | 762 55 | 763 56 | 767 57 | 804 58 | 853 59 | 871 60 | 876 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-9-test.ids: -------------------------------------------------------------------------------- 1 | 27 2 | 42 3 | 71 4 | 80 5 | 96 6 | 98 7 | 109 8 | 123 9 | 124 10 | 129 11 | 175 12 | 177 13 | 197 14 | 198 15 | 219 16 | 235 17 | 268 18 | 277 19 | 284 20 | 285 21 | 297 22 | 315 23 | 326 24 | 329 25 | 335 26 | 374 27 | 421 28 | 458 29 | 488 30 | 499 31 | 532 32 | 539 33 | 543 34 | 570 35 | 576 36 | 588 37 | 601 38 | 606 39 | 622 40 | 626 41 | 627 42 | 628 43 | 629 44 | 637 45 | 641 46 | 654 47 | 658 48 | 671 49 | 672 50 | 685 51 | 714 52 | 717 53 | 720 54 | 741 55 | 764 56 | 770 57 | 772 58 | 821 59 | 844 60 | 878 61 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-0-test.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | -------------------------------------------------------------------------------- /example_free917/data.gold: -------------------------------------------------------------------------------- 1 | (name fb:en.ohio_state_university "Ohio State University") (name fb:en.california_institute_of_technology "California Institute of Technology") 2 | (number 2629) 3 | (name fb:en.cupertino Cupertino) 4 | (number 0.120) 5 | (number 18) 6 | (number 45) 7 | (name fb:en.1936_summer_olympics "1936 Summer Olympics") (name fb:en.2008_summer_olympics "2008 Summer Olympics") (name fb:en.1952_summer_olympics "1952 Summer Olympics") 8 | (name fb:en.stevie_nicks "Stevie Nicks") (name fb:en.keith_urban "Keith Urban") (name fb:en.jerry_garcia "Jerry Garcia") 9 | (number 8 fb:en.calendar_year) 10 | (number 7) 11 | -------------------------------------------------------------------------------- /cfg.rb: -------------------------------------------------------------------------------- 1 | #geoquery requirements: 2 | # edit here to change the parser 3 | SMT_SEMPARSE = 'python /path/to/decode_sentence.py/of/smt-semparse /path/to/smt-semparse/workdir' 4 | # this should be a 'fixed' (one that doesn't abbreviate its output) version of eval.pl 5 | EVAL_PL = '/path/to/wasp-1.0/data/geo-funql/eval/eval.pl' 6 | # set to true to ignore zombie eval.pl procs 7 | ACCEPT_ZOMBIES = true 8 | #free917 requirements: 9 | #location of sempre 10 | SEMPRE = '/path/to/sempre' 11 | #both 12 | TIMEOUT = 60 13 | # cdec binary 14 | CDEC_BIN = '/path/to/cdec/decoder/cdec' 15 | # memcached has to be running 16 | $cache = Memcached.new('localhost:31337') 17 | 18 | -------------------------------------------------------------------------------- /data/free917/README: -------------------------------------------------------------------------------- 1 | free917v2.dev.gold : gold answers for the development set 2 | free917v2.dev.mrl : simple lambda formulas for the development set 3 | free917v2.dev.tok.de : English sentences for the development set 4 | free917v2.dev.tok.en : German sentences for the development set 5 | free917v2.test.gold : gold answers for the test set 6 | free917v2.test.mrl : simple lambda formulas for the test set 7 | free917v2.test.tok.de : English sentences for the test set 8 | free917v2.test.tok.en : German sentences for the test set 9 | README : this file 10 | 11 | ../stopwords.en : English stopwords file 12 | ../weights.init : initial weights 13 | 14 | -------------------------------------------------------------------------------- /scripts/geoquery/extract.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nlp_ruby' 4 | require 'xmlsimple' 5 | 6 | 7 | def extract fn='./corpus.xml', lang='en', ids 8 | doc = XmlSimple.xml_in(fn) 9 | doc['example'].each { |example| 10 | next if (!ids.include? example['id']) && ids.size>0 11 | if lang == 'funql' || lang == 'geo-prolog' 12 | puts example['mrl'][0]['content'].to_s.strip 13 | else 14 | example['nl'].each { |nl| 15 | if nl['lang'] == lang 16 | puts nl['content'] 17 | else 18 | next 19 | end 20 | } 21 | end 22 | } 23 | end 24 | 25 | def main 26 | ids = [] 27 | ids = ReadFile.readlines_strip ARGV[2] 28 | extract ARGV[0], ARGV[1], ids 29 | end 30 | 31 | 32 | main 33 | 34 | -------------------------------------------------------------------------------- /data/geoquery/README: -------------------------------------------------------------------------------- 1 | corpus.xml : corpus-true.xml of Jacob Andreas, without non-printable chars 2 | delete.ids : references that give empty answers although they shouldn't 3 | folds600 : splits for cross-validation 4 | geoquery.de : slightly corrected German part 5 | geoquery.en : English part 6 | geoquery.funql : geoquery functional query language 7 | geoquery.gold : gold output, eval.pl script modified to output full answers 8 | geoquery.prolog : prolog mrl 9 | README : this file 10 | split880.test.ids : 880 train/test split test ids 11 | split880.train.ids : 880 train/test split train ids 12 | 13 | ../stopwords.en : English stopwords file 14 | ../weights.init : initial weights 15 | 16 | wasp-1.0/ : modified stuff from wasp-1.0 17 | 18 | -------------------------------------------------------------------------------- /example_geoquery/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # memcached has to be running! 4 | #memcached -p 31337 5 | 6 | CDEC=/toolbox/cdec 7 | 8 | ../rebol.rb \ 9 | -k 100 \ 10 | -i $(pwd)/data.in \ 11 | -r $(pwd)/data.en \ 12 | -g $(pwd)/data.gold \ 13 | -h $(pwd)/data.funql \ 14 | -w $(pwd)/../data/weights.init \ 15 | -t $(pwd)/../data/stopwords.en \ 16 | -c $(pwd)/cdec.ini \ 17 | -b $(pwd)/cfg.rb \ 18 | -o output-weights \ 19 | -l \ 20 | -e 0.01 \ 21 | -j 1 \ 22 | -u geoquery \ 23 | -v rebol 2>output.stderr > output.stdout 24 | 25 | # translate test 26 | $CDEC/decoder/cdec \ 27 | -c cdec.ini \ 28 | -w output-weights 2>/dev/null \ 29 | < data.in \ 30 | | ../scripts/geoquery/semparse.rb $(pwd)/cfg.rb \ 31 | | ../scripts/geoquery/query.rb $(pwd)/cfg.rb > output-answers 32 | 33 | # evaluate result 34 | ../scripts/geoquery/eval.rb \ 35 | data.gold < output-answers > output-eval 36 | 37 | -------------------------------------------------------------------------------- /example_geoquery/data.in: -------------------------------------------------------------------------------- 1 | nenne alle flüsse in colorado 2 | zähle die staaten , welche erhebungen haben , die niedriger liegen als jene in alabama 3 | nenne mir die anzahl der flüsse in california 4 | nenne mir die staaten , welche an utah grenzen 5 | wie hoch ist mount mckinley 6 | wie hoch liegt der höchste punkt in amerika 7 | wie hoch liegt der höchste punkt in alabama 8 | wie groß ist alaska 9 | wie groß ist texas 10 | wie lang ist der colorado fluss 11 | -------------------------------------------------------------------------------- /example_free917/data.in: -------------------------------------------------------------------------------- 1 | an welcher institution war marshall hall ein professor 2 | mit wie vielen firmen wird auf der nyse gehandelt 3 | was ist die adresse des hauptsitzes von apple , inc . 4 | was war der preis der ersten x-men ausgabe 5 | welche ausgabe von sandmann ist ein traum von tausend katzen 6 | wie viele menschen haben das sinken der titanik überlebt 7 | bei welchen olympischen spielen hat ägypten teilgenommen 8 | wie viele prominenten waren im betty ford center 9 | wie alt sollte man sein , um monopoly spielen zu können 10 | wie viele teilchen der ersten generation gibt es 11 | -------------------------------------------------------------------------------- /example_free917/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # memcached has to be running! 4 | #memcached -p 31337 5 | 6 | #NOTE: when you change sempre models make sure you delete the file LexiconFn.cache located in your sempre installation folder! 7 | CDEC=/path/to/cdec 8 | SEMPRE=/path/to/sempre 9 | MODEL=1 10 | 11 | ../rebol.rb \ 12 | -k 100 \ 13 | -i $(pwd)/data.in \ 14 | -r $(pwd)/data.en \ 15 | -g $(pwd)/data.gold \ 16 | -h $(pwd)/data.mrl \ 17 | -w $(pwd)/../data/weights.init \ 18 | -t $(pwd)/../data/stopwords.en \ 19 | -c $(pwd)/cdec.ini \ 20 | -b $(pwd)/cfg.rb \ 21 | -o output-weights \ 22 | -l \ 23 | -e 0.01 \ 24 | -j 1 \ 25 | -u free917 \ 26 | -z $MODEL \ 27 | -v rebol 2>output.stderr > output.stdout 28 | 29 | 30 | # translate test 31 | $CDEC/decoder/cdec \ 32 | -c cdec.ini \ 33 | -w output-weights 2>/dev/null \ 34 | < data.in >output-translation 35 | 36 | #get answers 37 | ../scripts/free917/parse_utterance.rb $MODEL $SEMPRE output-answers 38 | 39 | # evaluate result 40 | ../scripts/free917/eval.rb \ 41 | data.gold < output-answers > output-eval -------------------------------------------------------------------------------- /example_free917/data.mrl: -------------------------------------------------------------------------------- 1 | (!fb:education.academic_post.institution (and ((lambda x (fb:education.academic_post.person (var x))) fb:en.marshall_hall) ((lambda x (fb:education.academic_post.position_or_title (var x))) fb:en.professor))) 2 | (count (!fb:business.stock_ticker_symbol.ticker_symbol (!fb:finance.stock_exchange.companies_traded fb:en.new_york_stock_exchange_inc))) 3 | (!fb:location.mailing_address.citytown ((lambda x (!fb:organization.organization.headquarters (var x))) fb:en.apple_inc)) 4 | (!fb:measurement_unit.money_value.amount (!fb:comic_books.comic_book_issue.cover_price fb:en.the_x_men_1)) 5 | (!fb:comic_books.comic_book_issue.issue_number fb:en.a_dream_of_a_thousand_cats) 6 | (count (!fb:event.disaster.survivors fb:en.sinking_of_the_titanic)) 7 | (!fb:olympics.olympic_participating_country.olympics_participated_in fb:en.egypt) 8 | (!fb:celebrities.rehab.celebrity ((lambda x (fb:celebrities.rehab.rehab_facility (var x))) fb:en.betty_ford_center)) 9 | (!fb:games.game.minimum_age_years fb:en.monopoly_boardgame) 10 | (count (!fb:physics.subatomic_particle_generation.particles fb:m.0b66f5g)) 11 | -------------------------------------------------------------------------------- /scripts/geoquery/cv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function wait_for() 4 | { 5 | echo "Waiting for ${#WAITFOR[@]} procs..." 6 | echo ${WAITFOR[*]} 7 | for pid in ${WAITFOR[@]}; do 8 | wait $pid; 9 | done 10 | } 11 | 12 | killall memcached 13 | memcached & 14 | 15 | K=100 16 | J=10 17 | STOPWORDS=/path/to/stopwords.en 18 | 19 | for VARIANT in rebol rampion exec; do 20 | for E in 0.3 0.1 0.01 0.03 0.003 0.001 0.0003 0.0001; do 21 | for INI in /paths/to/cdec/inis; do 22 | for INIT_WEIGHTS in /paths/to/weight/files; do 23 | WAITFOR=() 24 | for FOLD in {0..9}; do 25 | 26 | NAME="v=$VARIANT.fold=$FOLD.e=$E.c=$(basename $INI).w=$(basename $INIT_WEIGHTS)" 27 | 28 | ../rampfion.rb \ 29 | -k $K \ 30 | -i /path/to/folds600/$FOLD/train.in \ 31 | -r /path/tod/folds600/$FOLD/train.en \ 32 | -g /path/to/folds600/$FOLD/train.gold \ 33 | -h /path/to/folds600/$FOLD/train.funql \ 34 | -w $INIT_WEIGHTS \ 35 | -t $STOPWORDS \ 36 | -c $INI \ 37 | -b $(pwd)/cfg.rb \ 38 | -e $E \ 39 | -j $J \ 40 | -v $VARIANT \ 41 | -o $NAME.weights &> $NAME.output & 42 | WAITFOR+=( $! ) 43 | 44 | done 45 | wait_for $WAITFOR 46 | done 47 | done 48 | done 49 | done 50 | 51 | -------------------------------------------------------------------------------- /scripts/free917/parse_utterance.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'pty' 4 | require 'expect' 5 | def query(string) 6 | answer = "\n" 7 | @in.printf("#{string}\n") 8 | result = @out.expect(/^> /,timeout=30) 9 | if result!=nil 10 | result[0].delete!("\r\n") 11 | result[0].delete!("\n") 12 | result[0].delete!("\r") 13 | matchData = result[0].match(/Top value { (.*) }>/) 14 | if matchData!=nil 15 | save = matchData[1].gsub(/^ */,"") 16 | save = save.gsub(/ *$/,"") 17 | save = save.gsub(/ +/," ") 18 | answer = save+"\n" 19 | end 20 | end 21 | STDOUT.write answer 22 | end 23 | 24 | def main 25 | model = ARGV[0] #parser model to be used 26 | lines = Array.new 27 | answers = Array.new 28 | original_dir = Dir.pwd 29 | Dir.chdir ARGV[1] #location of sempre 30 | @out, @in, @pid = PTY.spawn("./sempre @mode=interact @domain=free917 @sparqlserver=localhost:3093 @cacheserver=local @load=#{model} @executeTopOnly=0") 31 | @out.expect(/^> /,timeout=300)[0] 32 | @in.printf("initialize model\n") 33 | result = @out.expect(/^> /,timeout=300) 34 | 35 | Dir.chdir original_dir 36 | while line = $stdin.gets 37 | query(line.chomp) 38 | end 39 | end 40 | 41 | main 42 | 43 | -------------------------------------------------------------------------------- /scripts/free917/cv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | killall memcached 4 | memcached & 5 | 6 | K=100 7 | J=10 8 | SEMPRE=/path/to/sempre 9 | STOPWORDS=/path/to/stopwords.en 10 | CFG=/home/mitarb/haas1/caro/rebol/cfg.rb 11 | MODEL=1 12 | 13 | for VARIANT in rebol rampion exec; do 14 | for INI in /paths/to/cdec/inis; do 15 | for INIT_WEIGHTS in /paths/to/weight/files; do 16 | for E in 0.0001 0.0003 0.001 0.003 0.01 0.03 0.1 0.3; do 17 | 18 | NAME="v=$VARIANT.e=$E.c=$(basename $INI).w=$(basename $INIT_WEIGHTS).m=$MODEL/" 19 | 20 | cd $cwd 21 | mkdir $NAME 22 | 23 | for COUNT in #number of folds 24 | do 25 | cd $cwd 26 | cd $NAME 27 | mkdir $COUNT 28 | cd $COUNT 29 | for DEV in #number of folds 30 | do 31 | if [ $COUNT != $DEV ] 32 | then 33 | cat /path/to/free917v2.$DEV.in >> free917v2.dev.in 34 | cat /path/to/free917v2.$DEV.tok.en >> free917v2.dev.tok.en 35 | cat /path/to/free917v2.$DEV.gold >> free917v2.dev.gold 36 | cat /path/to/free917v2.$DEV.mrl >> free917v2.dev.mrl 37 | fi 38 | done 39 | ../rebol.rb \ 40 | -k $K \ 41 | -i /path/tofree917v2.dev.in \ 42 | -r /path/tofree917v2.dev.tok.en \ 43 | -g /path/tofree917v2.dev.gold \ 44 | -h /path/tofree917v2.dev.mrl \ 45 | -w $INIT_WEIGHTS \ 46 | -c $INI \ 47 | -t $STOPWORDS \ 48 | -o $NAME.weights \ 49 | -b $CFG \ 50 | -l \ 51 | -e $E \ 52 | -j $J \ 53 | -u free917 \ 54 | -z $MODEL \ 55 | -v $VARIANT &> $NAME.output & 56 | 57 | done 58 | done 59 | done 60 | done 61 | done 62 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | rebol 2 | ===== 3 | 4 | Code for grounded SMT on geoquery data or Free917 data. 5 | 6 | (N.b. This has nothing to do with the programming language REBOL [0]!) 7 | 8 | 9 | Dependencies 10 | ------------ 11 | 12 | ###Geoquery: 13 | _WASP_-1.0 includes the geoquery knowledge base and scripts for querying it. 14 | The evaluation scripts were slightly modified to produce full outputs. 15 | These scripts can be found in data/geoquery/wasp/, and they go into wasp-1.0/data/geo-funql/eval/. 16 | WASP-1.0 can be downloaded from here [1]. 17 | 18 | You'll also need a _Prolog_ environment for geoquery, e.g. SWI-Prolog [2]. 19 | 20 | We use the a slightly modified implementation of _smt-semparse_, 21 | as described in *Semantic parsing as machine translation* (Andreas et al, ACL 2013). 22 | Our fork can be found here [3]. This software depends on more stuff, e.g. the Moses decoder 23 | and SRILM. 24 | 25 | ###Free917: 26 | The parser used for Free917 is _sempre_, 27 | as described in *Semantic Parsing on Freebase from Question-Answer Pairs* (Berant et al, EMNLP 2013). 28 | It can be downloaded here [4] and further dependencies can be found in QUICKSTART.md. 29 | 30 | ###Both: 31 | For translation we use the _cdec_ toolkit, [5]. 32 | 33 | As semantic parsing is quite slow and rebol does it quite often, 34 | results are cached with _memcached_ [6]. 35 | 36 | You'll need the following _ruby gems_: 37 | * https://rubygems.org/gems/memcached 38 | * http://rubygems.org/gems/zipf 39 | * http://trollop.rubyforge.org/ 40 | 41 | 42 | 43 | --- 44 | * [0] http://www.rebol.com/ 45 | * [1] http://www.cs.utexas.edu/~ml/wasp/wasp-1.0.tar.bz2 46 | * [2] http://www.swi-prolog.org/ 47 | * [3] https://github.com/pks/smt-semparse 48 | * [4] https://github.com/percyliang/sempre 49 | * [5] https://github.com/redpony/cdec 50 | * [6] http://memcached.org/ 51 | 52 | -------------------------------------------------------------------------------- /data/stopwords.en: -------------------------------------------------------------------------------- 1 | a 2 | about 3 | above 4 | after 5 | again 6 | against 7 | all 8 | am 9 | an 10 | and 11 | any 12 | are 13 | aren't 14 | as 15 | at 16 | be 17 | because 18 | been 19 | before 20 | being 21 | below 22 | between 23 | both 24 | but 25 | by 26 | can't 27 | cannot 28 | could 29 | couldn't 30 | did 31 | didn't 32 | do 33 | does 34 | doesn't 35 | doing 36 | don't 37 | down 38 | during 39 | each 40 | few 41 | for 42 | from 43 | further 44 | had 45 | hadn't 46 | has 47 | hasn't 48 | have 49 | haven't 50 | having 51 | he 52 | he'd 53 | he'll 54 | he's 55 | her 56 | here 57 | here's 58 | hers 59 | herself 60 | him 61 | himself 62 | his 63 | how 64 | how's 65 | i 66 | i'd 67 | i'll 68 | i'm 69 | i've 70 | if 71 | in 72 | into 73 | is 74 | isn't 75 | it 76 | it's 77 | its 78 | itself 79 | let's 80 | me 81 | more 82 | most 83 | mustn't 84 | my 85 | myself 86 | no 87 | nor 88 | not 89 | of 90 | off 91 | on 92 | once 93 | only 94 | or 95 | other 96 | ought 97 | our 98 | ours 99 | ourselves 100 | out 101 | over 102 | own 103 | same 104 | shan't 105 | she 106 | she'd 107 | she'll 108 | she's 109 | should 110 | shouldn't 111 | so 112 | some 113 | such 114 | than 115 | that 116 | that's 117 | the 118 | their 119 | theirs 120 | them 121 | themselves 122 | then 123 | there 124 | there's 125 | these 126 | they 127 | they'd 128 | they'll 129 | they're 130 | they've 131 | this 132 | those 133 | through 134 | to 135 | too 136 | under 137 | until 138 | up 139 | very 140 | was 141 | wasn't 142 | we 143 | we'd 144 | we'll 145 | we're 146 | we've 147 | were 148 | weren't 149 | what 150 | what's 151 | when 152 | when's 153 | where 154 | where's 155 | which 156 | while 157 | who 158 | who's 159 | whom 160 | why 161 | why's 162 | with 163 | won't 164 | would 165 | wouldn't 166 | you 167 | you'd 168 | you'll 169 | you're 170 | you've 171 | your 172 | yours 173 | yourself 174 | yourselves 175 | 's 176 | 't 177 | -------------------------------------------------------------------------------- /data/geoquery/split880.test.ids: -------------------------------------------------------------------------------- 1 | 3 2 | 6 3 | 15 4 | 16 5 | 25 6 | 26 7 | 29 8 | 33 9 | 34 10 | 37 11 | 38 12 | 39 13 | 40 14 | 45 15 | 46 16 | 50 17 | 53 18 | 60 19 | 64 20 | 82 21 | 84 22 | 87 23 | 88 24 | 93 25 | 99 26 | 101 27 | 104 28 | 107 29 | 108 30 | 110 31 | 114 32 | 117 33 | 125 34 | 132 35 | 134 36 | 135 37 | 141 38 | 148 39 | 149 40 | 152 41 | 158 42 | 161 43 | 166 44 | 167 45 | 168 46 | 172 47 | 179 48 | 183 49 | 184 50 | 188 51 | 190 52 | 195 53 | 196 54 | 199 55 | 203 56 | 204 57 | 207 58 | 208 59 | 209 60 | 213 61 | 214 62 | 220 63 | 225 64 | 229 65 | 231 66 | 232 67 | 238 68 | 242 69 | 243 70 | 245 71 | 247 72 | 249 73 | 250 74 | 255 75 | 272 76 | 273 77 | 275 78 | 281 79 | 286 80 | 295 81 | 296 82 | 300 83 | 301 84 | 304 85 | 305 86 | 319 87 | 320 88 | 323 89 | 325 90 | 328 91 | 331 92 | 332 93 | 333 94 | 334 95 | 336 96 | 339 97 | 341 98 | 347 99 | 348 100 | 349 101 | 350 102 | 356 103 | 359 104 | 365 105 | 368 106 | 369 107 | 372 108 | 373 109 | 375 110 | 378 111 | 380 112 | 381 113 | 382 114 | 386 115 | 390 116 | 395 117 | 398 118 | 399 119 | 402 120 | 403 121 | 405 122 | 408 123 | 412 124 | 413 125 | 416 126 | 420 127 | 422 128 | 428 129 | 432 130 | 433 131 | 436 132 | 437 133 | 438 134 | 440 135 | 446 136 | 451 137 | 454 138 | 455 139 | 459 140 | 464 141 | 467 142 | 468 143 | 469 144 | 472 145 | 475 146 | 477 147 | 482 148 | 483 149 | 486 150 | 489 151 | 491 152 | 495 153 | 498 154 | 504 155 | 511 156 | 515 157 | 516 158 | 517 159 | 521 160 | 524 161 | 526 162 | 531 163 | 537 164 | 542 165 | 546 166 | 547 167 | 548 168 | 550 169 | 551 170 | 552 171 | 572 172 | 573 173 | 577 174 | 581 175 | 582 176 | 586 177 | 592 178 | 596 179 | 598 180 | 599 181 | 604 182 | 608 183 | 611 184 | 615 185 | 616 186 | 618 187 | 631 188 | 635 189 | 636 190 | 639 191 | 642 192 | 645 193 | 656 194 | 657 195 | 663 196 | 664 197 | 666 198 | 669 199 | 676 200 | 678 201 | 684 202 | 687 203 | 692 204 | 698 205 | 701 206 | 703 207 | 705 208 | 707 209 | 711 210 | 716 211 | 719 212 | 721 213 | 722 214 | 723 215 | 724 216 | 725 217 | 729 218 | 731 219 | 732 220 | 735 221 | 737 222 | 742 223 | 743 224 | 744 225 | 745 226 | 746 227 | 754 228 | 757 229 | 760 230 | 769 231 | 774 232 | 775 233 | 776 234 | 778 235 | 781 236 | 782 237 | 785 238 | 786 239 | 787 240 | 788 241 | 791 242 | 792 243 | 793 244 | 794 245 | 796 246 | 798 247 | 799 248 | 802 249 | 803 250 | 808 251 | 810 252 | 811 253 | 813 254 | 815 255 | 816 256 | 818 257 | 819 258 | 824 259 | 825 260 | 826 261 | 827 262 | 828 263 | 829 264 | 831 265 | 832 266 | 836 267 | 837 268 | 840 269 | 843 270 | 850 271 | 852 272 | 860 273 | 861 274 | 862 275 | 865 276 | 868 277 | 870 278 | 874 279 | 875 280 | 879 281 | -------------------------------------------------------------------------------- /hopefear.rb: -------------------------------------------------------------------------------- 1 | def hope_and_fear kbest, action 2 | max = -1.0/0 3 | max_idx = -1 4 | kbest.each_with_index { |k,i| 5 | if action=='hope' && k.scores[:decoder] + k.scores[:per_sentence_bleu] > max 6 | max_idx = i; max = k.scores[:decoder] + k.scores[:per_sentence_bleu] 7 | end 8 | if action=='fear' && k.scores[:decoder] - k.scores[:per_sentence_bleu] > max 9 | max_idx = i; max = k.scores[:decoder] - k.scores[:per_sentence_bleu] 10 | end 11 | } 12 | return max_idx 13 | end 14 | 15 | def gethopefear_rebol kbest, feedback, gold, max, corpus, own_reference=nil 16 | hope = fear = nil; new_reference = nil 17 | type1 = type2 = false 18 | if feedback == true 19 | # hope 20 | hope = kbest[0] 21 | new_reference = hope 22 | kbest.each { |k| k.scores[:per_sentence_bleu] = BLEU::per_sentence_bleu k.s, new_reference.s } 23 | # fear 24 | kbest.sort_by { |k| -(k.scores[:decoder]-k.scores[:per_sentence_bleu]) }.each_with_index { |k,i| 25 | break if i==max 26 | if !exec(k.s, gold, corpus, true)[0] 27 | fear = k 28 | break 29 | end 30 | } 31 | type1 = true 32 | else 33 | # fear 34 | fear = kbest[0] 35 | # hope 36 | kbest.sort_by { |k| -(k.scores[:decoder]+k.scores[:per_sentence_bleu]) }.each_with_index { |k,i| 37 | break if i==max 38 | if exec(k.s, gold, corpus, true)[0] 39 | hope = k 40 | break 41 | end 42 | } 43 | type2 = true 44 | end 45 | skip = true if !hope||!fear 46 | return hope, fear, skip, type1, type2, new_reference 47 | end 48 | 49 | def gethopefear_rebol_light kbest, feedback, gold, corpus 50 | hope = fear = nil 51 | type1 = type2 = false 52 | if feedback == true 53 | hope = kbest[0] 54 | type1 = true 55 | else 56 | hope = kbest[hope_and_fear kbest, 'hope'] 57 | type2 = true 58 | end 59 | fear = kbest[hope_and_fear kbest, 'fear'] 60 | # skip example if fear gives the right answer 61 | skip = exec(fear.s, gold, corpus, true)[0] 62 | return hope, fear, skip, type1, type2 63 | end 64 | 65 | def gethopefear_exec kbest, feedback, gold, max, corpus, own_reference=nil 66 | hope = fear = nil; hope_idx = 0; new_reference = nil 67 | type1 = type2 = false 68 | if feedback == true 69 | STDERR.write "If\n" 70 | hope = kbest[0] 71 | new_reference = hope 72 | type1 = true 73 | elsif own_reference 74 | STDERR.write "elsif\n" 75 | STDERR.write "#{own_reference.class}\n" 76 | hope = own_reference 77 | type1 = true 78 | else 79 | STDERR.write "else\n" 80 | # search for first (by decoder score) translation that gives the correct answer 81 | kbest.each_with_index { |k,i| 82 | next if i==0 83 | break if i==max 84 | if exec(k.s, gold, corpus, true)[0] 85 | hope_idx = i 86 | hope = k 87 | break 88 | end 89 | } 90 | type2 = true 91 | end 92 | # --"-- doesn't give the correct answer 93 | kbest.each_with_index { |k,i| 94 | next if i==0||i==hope_idx 95 | break if i==max 96 | if !exec(k.s, gold, corpus, true)[0] 97 | fear = k 98 | break 99 | end 100 | } 101 | skip = true if !hope||!fear 102 | return hope, fear, skip, type1, type2, new_reference 103 | end 104 | 105 | def gethopefear_rampion kbest, reference 106 | hope = fear = nil 107 | type1 = type2 = false 108 | # 1best is automatically hope if it matches reference 109 | if kbest[0].s == reference 110 | hope = kbest[0] 111 | fear = kbest[hope_and_fear kbest, 'fear'] 112 | type1 = true 113 | else 114 | hope = kbest[hope_and_fear kbest, 'hope'] 115 | # 1best is automatically fear if it doesn't match reference 116 | fear = kbest[0] 117 | type2 = true 118 | end 119 | return hope, fear, false, type1, type2 120 | end 121 | 122 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-0-train.ids: -------------------------------------------------------------------------------- 1 | 4 2 | 7 3 | 12 4 | 23 5 | 41 6 | 52 7 | 68 8 | 70 9 | 77 10 | 120 11 | 133 12 | 142 13 | 143 14 | 164 15 | 171 16 | 180 17 | 254 18 | 261 19 | 263 20 | 269 21 | 274 22 | 294 23 | 310 24 | 314 25 | 353 26 | 393 27 | 404 28 | 419 29 | 453 30 | 460 31 | 461 32 | 484 33 | 487 34 | 493 35 | 514 36 | 559 37 | 564 38 | 575 39 | 591 40 | 602 41 | 619 42 | 648 43 | 660 44 | 674 45 | 682 46 | 683 47 | 730 48 | 734 49 | 738 50 | 749 51 | 750 52 | 784 53 | 814 54 | 820 55 | 834 56 | 841 57 | 842 58 | 858 59 | 859 60 | 877 61 | 0 62 | 2 63 | 8 64 | 22 65 | 30 66 | 43 67 | 92 68 | 97 69 | 103 70 | 111 71 | 119 72 | 137 73 | 156 74 | 178 75 | 192 76 | 221 77 | 252 78 | 256 79 | 260 80 | 271 81 | 288 82 | 293 83 | 298 84 | 308 85 | 309 86 | 318 87 | 322 88 | 346 89 | 384 90 | 411 91 | 442 92 | 452 93 | 470 94 | 471 95 | 478 96 | 490 97 | 492 98 | 506 99 | 513 100 | 535 101 | 553 102 | 557 103 | 562 104 | 568 105 | 574 106 | 579 107 | 583 108 | 613 109 | 634 110 | 643 111 | 653 112 | 695 113 | 699 114 | 706 115 | 758 116 | 759 117 | 768 118 | 771 119 | 795 120 | 866 121 | 17 122 | 44 123 | 49 124 | 55 125 | 59 126 | 61 127 | 62 128 | 95 129 | 100 130 | 121 131 | 136 132 | 155 133 | 185 134 | 227 135 | 230 136 | 257 137 | 266 138 | 282 139 | 289 140 | 291 141 | 324 142 | 337 143 | 342 144 | 345 145 | 355 146 | 357 147 | 364 148 | 397 149 | 400 150 | 423 151 | 429 152 | 444 153 | 463 154 | 503 155 | 505 156 | 507 157 | 519 158 | 520 159 | 529 160 | 538 161 | 545 162 | 563 163 | 593 164 | 605 165 | 632 166 | 646 167 | 665 168 | 675 169 | 690 170 | 704 171 | 710 172 | 715 173 | 740 174 | 747 175 | 755 176 | 765 177 | 779 178 | 780 179 | 822 180 | 864 181 | 21 182 | 24 183 | 36 184 | 67 185 | 75 186 | 79 187 | 83 188 | 90 189 | 112 190 | 144 191 | 154 192 | 160 193 | 165 194 | 170 195 | 176 196 | 215 197 | 237 198 | 258 199 | 262 200 | 265 201 | 278 202 | 279 203 | 299 204 | 312 205 | 338 206 | 360 207 | 361 208 | 371 209 | 392 210 | 427 211 | 441 212 | 466 213 | 476 214 | 480 215 | 494 216 | 501 217 | 509 218 | 510 219 | 528 220 | 580 221 | 597 222 | 644 223 | 652 224 | 673 225 | 680 226 | 686 227 | 693 228 | 700 229 | 709 230 | 739 231 | 751 232 | 773 233 | 783 234 | 800 235 | 805 236 | 807 237 | 855 238 | 857 239 | 863 240 | 873 241 | 10 242 | 11 243 | 18 244 | 20 245 | 54 246 | 57 247 | 74 248 | 130 249 | 140 250 | 150 251 | 159 252 | 169 253 | 182 254 | 205 255 | 212 256 | 216 257 | 222 258 | 276 259 | 302 260 | 303 261 | 316 262 | 340 263 | 344 264 | 352 265 | 354 266 | 377 267 | 379 268 | 383 269 | 388 270 | 389 271 | 424 272 | 431 273 | 434 274 | 449 275 | 456 276 | 479 277 | 533 278 | 536 279 | 544 280 | 555 281 | 566 282 | 595 283 | 603 284 | 612 285 | 630 286 | 650 287 | 668 288 | 670 289 | 677 290 | 694 291 | 697 292 | 702 293 | 708 294 | 712 295 | 718 296 | 756 297 | 766 298 | 835 299 | 839 300 | 845 301 | 19 302 | 31 303 | 32 304 | 56 305 | 86 306 | 89 307 | 94 308 | 106 309 | 113 310 | 174 311 | 193 312 | 194 313 | 202 314 | 248 315 | 259 316 | 264 317 | 280 318 | 307 319 | 366 320 | 370 321 | 376 322 | 385 323 | 394 324 | 443 325 | 445 326 | 448 327 | 450 328 | 462 329 | 481 330 | 496 331 | 497 332 | 518 333 | 523 334 | 525 335 | 556 336 | 578 337 | 589 338 | 594 339 | 610 340 | 623 341 | 625 342 | 638 343 | 667 344 | 679 345 | 728 346 | 733 347 | 736 348 | 748 349 | 777 350 | 789 351 | 797 352 | 801 353 | 806 354 | 823 355 | 830 356 | 833 357 | 838 358 | 847 359 | 867 360 | 872 361 | 5 362 | 47 363 | 48 364 | 73 365 | 76 366 | 81 367 | 85 368 | 91 369 | 118 370 | 126 371 | 128 372 | 138 373 | 139 374 | 147 375 | 153 376 | 163 377 | 173 378 | 191 379 | 201 380 | 206 381 | 211 382 | 218 383 | 223 384 | 233 385 | 234 386 | 236 387 | 239 388 | 240 389 | 241 390 | 246 391 | 311 392 | 317 393 | 343 394 | 363 395 | 387 396 | 391 397 | 396 398 | 401 399 | 418 400 | 426 401 | 439 402 | 457 403 | 502 404 | 549 405 | 565 406 | 585 407 | 590 408 | 600 409 | 659 410 | 661 411 | 688 412 | 689 413 | 761 414 | 762 415 | 763 416 | 767 417 | 804 418 | 853 419 | 871 420 | 876 421 | 9 422 | 13 423 | 14 424 | 28 425 | 58 426 | 65 427 | 66 428 | 69 429 | 72 430 | 78 431 | 102 432 | 145 433 | 186 434 | 189 435 | 217 436 | 244 437 | 267 438 | 306 439 | 327 440 | 330 441 | 351 442 | 362 443 | 367 444 | 407 445 | 410 446 | 415 447 | 430 448 | 447 449 | 465 450 | 473 451 | 474 452 | 512 453 | 527 454 | 530 455 | 540 456 | 541 457 | 560 458 | 561 459 | 567 460 | 569 461 | 584 462 | 587 463 | 607 464 | 609 465 | 614 466 | 624 467 | 647 468 | 651 469 | 655 470 | 681 471 | 691 472 | 726 473 | 727 474 | 752 475 | 790 476 | 817 477 | 846 478 | 848 479 | 854 480 | 856 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-3-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 4 62 | 7 63 | 12 64 | 23 65 | 41 66 | 52 67 | 68 68 | 70 69 | 77 70 | 120 71 | 133 72 | 142 73 | 143 74 | 164 75 | 171 76 | 180 77 | 254 78 | 261 79 | 263 80 | 269 81 | 274 82 | 294 83 | 310 84 | 314 85 | 353 86 | 393 87 | 404 88 | 419 89 | 453 90 | 460 91 | 461 92 | 484 93 | 487 94 | 493 95 | 514 96 | 559 97 | 564 98 | 575 99 | 591 100 | 602 101 | 619 102 | 648 103 | 660 104 | 674 105 | 682 106 | 683 107 | 730 108 | 734 109 | 738 110 | 749 111 | 750 112 | 784 113 | 814 114 | 820 115 | 834 116 | 841 117 | 842 118 | 858 119 | 859 120 | 877 121 | 0 122 | 2 123 | 8 124 | 22 125 | 30 126 | 43 127 | 92 128 | 97 129 | 103 130 | 111 131 | 119 132 | 137 133 | 156 134 | 178 135 | 192 136 | 221 137 | 252 138 | 256 139 | 260 140 | 271 141 | 288 142 | 293 143 | 298 144 | 308 145 | 309 146 | 318 147 | 322 148 | 346 149 | 384 150 | 411 151 | 442 152 | 452 153 | 470 154 | 471 155 | 478 156 | 490 157 | 492 158 | 506 159 | 513 160 | 535 161 | 553 162 | 557 163 | 562 164 | 568 165 | 574 166 | 579 167 | 583 168 | 613 169 | 634 170 | 643 171 | 653 172 | 695 173 | 699 174 | 706 175 | 758 176 | 759 177 | 768 178 | 771 179 | 795 180 | 866 181 | 21 182 | 24 183 | 36 184 | 67 185 | 75 186 | 79 187 | 83 188 | 90 189 | 112 190 | 144 191 | 154 192 | 160 193 | 165 194 | 170 195 | 176 196 | 215 197 | 237 198 | 258 199 | 262 200 | 265 201 | 278 202 | 279 203 | 299 204 | 312 205 | 338 206 | 360 207 | 361 208 | 371 209 | 392 210 | 427 211 | 441 212 | 466 213 | 476 214 | 480 215 | 494 216 | 501 217 | 509 218 | 510 219 | 528 220 | 580 221 | 597 222 | 644 223 | 652 224 | 673 225 | 680 226 | 686 227 | 693 228 | 700 229 | 709 230 | 739 231 | 751 232 | 773 233 | 783 234 | 800 235 | 805 236 | 807 237 | 855 238 | 857 239 | 863 240 | 873 241 | 10 242 | 11 243 | 18 244 | 20 245 | 54 246 | 57 247 | 74 248 | 130 249 | 140 250 | 150 251 | 159 252 | 169 253 | 182 254 | 205 255 | 212 256 | 216 257 | 222 258 | 276 259 | 302 260 | 303 261 | 316 262 | 340 263 | 344 264 | 352 265 | 354 266 | 377 267 | 379 268 | 383 269 | 388 270 | 389 271 | 424 272 | 431 273 | 434 274 | 449 275 | 456 276 | 479 277 | 533 278 | 536 279 | 544 280 | 555 281 | 566 282 | 595 283 | 603 284 | 612 285 | 630 286 | 650 287 | 668 288 | 670 289 | 677 290 | 694 291 | 697 292 | 702 293 | 708 294 | 712 295 | 718 296 | 756 297 | 766 298 | 835 299 | 839 300 | 845 301 | 19 302 | 31 303 | 32 304 | 56 305 | 86 306 | 89 307 | 94 308 | 106 309 | 113 310 | 174 311 | 193 312 | 194 313 | 202 314 | 248 315 | 259 316 | 264 317 | 280 318 | 307 319 | 366 320 | 370 321 | 376 322 | 385 323 | 394 324 | 443 325 | 445 326 | 448 327 | 450 328 | 462 329 | 481 330 | 496 331 | 497 332 | 518 333 | 523 334 | 525 335 | 556 336 | 578 337 | 589 338 | 594 339 | 610 340 | 623 341 | 625 342 | 638 343 | 667 344 | 679 345 | 728 346 | 733 347 | 736 348 | 748 349 | 777 350 | 789 351 | 797 352 | 801 353 | 806 354 | 823 355 | 830 356 | 833 357 | 838 358 | 847 359 | 867 360 | 872 361 | 5 362 | 47 363 | 48 364 | 73 365 | 76 366 | 81 367 | 85 368 | 91 369 | 118 370 | 126 371 | 128 372 | 138 373 | 139 374 | 147 375 | 153 376 | 163 377 | 173 378 | 191 379 | 201 380 | 206 381 | 211 382 | 218 383 | 223 384 | 233 385 | 234 386 | 236 387 | 239 388 | 240 389 | 241 390 | 246 391 | 311 392 | 317 393 | 343 394 | 363 395 | 387 396 | 391 397 | 396 398 | 401 399 | 418 400 | 426 401 | 439 402 | 457 403 | 502 404 | 549 405 | 565 406 | 585 407 | 590 408 | 600 409 | 659 410 | 661 411 | 688 412 | 689 413 | 761 414 | 762 415 | 763 416 | 767 417 | 804 418 | 853 419 | 871 420 | 876 421 | 9 422 | 13 423 | 14 424 | 28 425 | 58 426 | 65 427 | 66 428 | 69 429 | 72 430 | 78 431 | 102 432 | 145 433 | 186 434 | 189 435 | 217 436 | 244 437 | 267 438 | 306 439 | 327 440 | 330 441 | 351 442 | 362 443 | 367 444 | 407 445 | 410 446 | 415 447 | 430 448 | 447 449 | 465 450 | 473 451 | 474 452 | 512 453 | 527 454 | 530 455 | 540 456 | 541 457 | 560 458 | 561 459 | 567 460 | 569 461 | 584 462 | 587 463 | 607 464 | 609 465 | 614 466 | 624 467 | 647 468 | 651 469 | 655 470 | 681 471 | 691 472 | 726 473 | 727 474 | 752 475 | 790 476 | 817 477 | 846 478 | 848 479 | 854 480 | 856 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-4-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 4 62 | 7 63 | 12 64 | 23 65 | 41 66 | 52 67 | 68 68 | 70 69 | 77 70 | 120 71 | 133 72 | 142 73 | 143 74 | 164 75 | 171 76 | 180 77 | 254 78 | 261 79 | 263 80 | 269 81 | 274 82 | 294 83 | 310 84 | 314 85 | 353 86 | 393 87 | 404 88 | 419 89 | 453 90 | 460 91 | 461 92 | 484 93 | 487 94 | 493 95 | 514 96 | 559 97 | 564 98 | 575 99 | 591 100 | 602 101 | 619 102 | 648 103 | 660 104 | 674 105 | 682 106 | 683 107 | 730 108 | 734 109 | 738 110 | 749 111 | 750 112 | 784 113 | 814 114 | 820 115 | 834 116 | 841 117 | 842 118 | 858 119 | 859 120 | 877 121 | 0 122 | 2 123 | 8 124 | 22 125 | 30 126 | 43 127 | 92 128 | 97 129 | 103 130 | 111 131 | 119 132 | 137 133 | 156 134 | 178 135 | 192 136 | 221 137 | 252 138 | 256 139 | 260 140 | 271 141 | 288 142 | 293 143 | 298 144 | 308 145 | 309 146 | 318 147 | 322 148 | 346 149 | 384 150 | 411 151 | 442 152 | 452 153 | 470 154 | 471 155 | 478 156 | 490 157 | 492 158 | 506 159 | 513 160 | 535 161 | 553 162 | 557 163 | 562 164 | 568 165 | 574 166 | 579 167 | 583 168 | 613 169 | 634 170 | 643 171 | 653 172 | 695 173 | 699 174 | 706 175 | 758 176 | 759 177 | 768 178 | 771 179 | 795 180 | 866 181 | 17 182 | 44 183 | 49 184 | 55 185 | 59 186 | 61 187 | 62 188 | 95 189 | 100 190 | 121 191 | 136 192 | 155 193 | 185 194 | 227 195 | 230 196 | 257 197 | 266 198 | 282 199 | 289 200 | 291 201 | 324 202 | 337 203 | 342 204 | 345 205 | 355 206 | 357 207 | 364 208 | 397 209 | 400 210 | 423 211 | 429 212 | 444 213 | 463 214 | 503 215 | 505 216 | 507 217 | 519 218 | 520 219 | 529 220 | 538 221 | 545 222 | 563 223 | 593 224 | 605 225 | 632 226 | 646 227 | 665 228 | 675 229 | 690 230 | 704 231 | 710 232 | 715 233 | 740 234 | 747 235 | 755 236 | 765 237 | 779 238 | 780 239 | 822 240 | 864 241 | 10 242 | 11 243 | 18 244 | 20 245 | 54 246 | 57 247 | 74 248 | 130 249 | 140 250 | 150 251 | 159 252 | 169 253 | 182 254 | 205 255 | 212 256 | 216 257 | 222 258 | 276 259 | 302 260 | 303 261 | 316 262 | 340 263 | 344 264 | 352 265 | 354 266 | 377 267 | 379 268 | 383 269 | 388 270 | 389 271 | 424 272 | 431 273 | 434 274 | 449 275 | 456 276 | 479 277 | 533 278 | 536 279 | 544 280 | 555 281 | 566 282 | 595 283 | 603 284 | 612 285 | 630 286 | 650 287 | 668 288 | 670 289 | 677 290 | 694 291 | 697 292 | 702 293 | 708 294 | 712 295 | 718 296 | 756 297 | 766 298 | 835 299 | 839 300 | 845 301 | 19 302 | 31 303 | 32 304 | 56 305 | 86 306 | 89 307 | 94 308 | 106 309 | 113 310 | 174 311 | 193 312 | 194 313 | 202 314 | 248 315 | 259 316 | 264 317 | 280 318 | 307 319 | 366 320 | 370 321 | 376 322 | 385 323 | 394 324 | 443 325 | 445 326 | 448 327 | 450 328 | 462 329 | 481 330 | 496 331 | 497 332 | 518 333 | 523 334 | 525 335 | 556 336 | 578 337 | 589 338 | 594 339 | 610 340 | 623 341 | 625 342 | 638 343 | 667 344 | 679 345 | 728 346 | 733 347 | 736 348 | 748 349 | 777 350 | 789 351 | 797 352 | 801 353 | 806 354 | 823 355 | 830 356 | 833 357 | 838 358 | 847 359 | 867 360 | 872 361 | 5 362 | 47 363 | 48 364 | 73 365 | 76 366 | 81 367 | 85 368 | 91 369 | 118 370 | 126 371 | 128 372 | 138 373 | 139 374 | 147 375 | 153 376 | 163 377 | 173 378 | 191 379 | 201 380 | 206 381 | 211 382 | 218 383 | 223 384 | 233 385 | 234 386 | 236 387 | 239 388 | 240 389 | 241 390 | 246 391 | 311 392 | 317 393 | 343 394 | 363 395 | 387 396 | 391 397 | 396 398 | 401 399 | 418 400 | 426 401 | 439 402 | 457 403 | 502 404 | 549 405 | 565 406 | 585 407 | 590 408 | 600 409 | 659 410 | 661 411 | 688 412 | 689 413 | 761 414 | 762 415 | 763 416 | 767 417 | 804 418 | 853 419 | 871 420 | 876 421 | 9 422 | 13 423 | 14 424 | 28 425 | 58 426 | 65 427 | 66 428 | 69 429 | 72 430 | 78 431 | 102 432 | 145 433 | 186 434 | 189 435 | 217 436 | 244 437 | 267 438 | 306 439 | 327 440 | 330 441 | 351 442 | 362 443 | 367 444 | 407 445 | 410 446 | 415 447 | 430 448 | 447 449 | 465 450 | 473 451 | 474 452 | 512 453 | 527 454 | 530 455 | 540 456 | 541 457 | 560 458 | 561 459 | 567 460 | 569 461 | 584 462 | 587 463 | 607 464 | 609 465 | 614 466 | 624 467 | 647 468 | 651 469 | 655 470 | 681 471 | 691 472 | 726 473 | 727 474 | 752 475 | 790 476 | 817 477 | 846 478 | 848 479 | 854 480 | 856 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-5-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 4 62 | 7 63 | 12 64 | 23 65 | 41 66 | 52 67 | 68 68 | 70 69 | 77 70 | 120 71 | 133 72 | 142 73 | 143 74 | 164 75 | 171 76 | 180 77 | 254 78 | 261 79 | 263 80 | 269 81 | 274 82 | 294 83 | 310 84 | 314 85 | 353 86 | 393 87 | 404 88 | 419 89 | 453 90 | 460 91 | 461 92 | 484 93 | 487 94 | 493 95 | 514 96 | 559 97 | 564 98 | 575 99 | 591 100 | 602 101 | 619 102 | 648 103 | 660 104 | 674 105 | 682 106 | 683 107 | 730 108 | 734 109 | 738 110 | 749 111 | 750 112 | 784 113 | 814 114 | 820 115 | 834 116 | 841 117 | 842 118 | 858 119 | 859 120 | 877 121 | 0 122 | 2 123 | 8 124 | 22 125 | 30 126 | 43 127 | 92 128 | 97 129 | 103 130 | 111 131 | 119 132 | 137 133 | 156 134 | 178 135 | 192 136 | 221 137 | 252 138 | 256 139 | 260 140 | 271 141 | 288 142 | 293 143 | 298 144 | 308 145 | 309 146 | 318 147 | 322 148 | 346 149 | 384 150 | 411 151 | 442 152 | 452 153 | 470 154 | 471 155 | 478 156 | 490 157 | 492 158 | 506 159 | 513 160 | 535 161 | 553 162 | 557 163 | 562 164 | 568 165 | 574 166 | 579 167 | 583 168 | 613 169 | 634 170 | 643 171 | 653 172 | 695 173 | 699 174 | 706 175 | 758 176 | 759 177 | 768 178 | 771 179 | 795 180 | 866 181 | 17 182 | 44 183 | 49 184 | 55 185 | 59 186 | 61 187 | 62 188 | 95 189 | 100 190 | 121 191 | 136 192 | 155 193 | 185 194 | 227 195 | 230 196 | 257 197 | 266 198 | 282 199 | 289 200 | 291 201 | 324 202 | 337 203 | 342 204 | 345 205 | 355 206 | 357 207 | 364 208 | 397 209 | 400 210 | 423 211 | 429 212 | 444 213 | 463 214 | 503 215 | 505 216 | 507 217 | 519 218 | 520 219 | 529 220 | 538 221 | 545 222 | 563 223 | 593 224 | 605 225 | 632 226 | 646 227 | 665 228 | 675 229 | 690 230 | 704 231 | 710 232 | 715 233 | 740 234 | 747 235 | 755 236 | 765 237 | 779 238 | 780 239 | 822 240 | 864 241 | 21 242 | 24 243 | 36 244 | 67 245 | 75 246 | 79 247 | 83 248 | 90 249 | 112 250 | 144 251 | 154 252 | 160 253 | 165 254 | 170 255 | 176 256 | 215 257 | 237 258 | 258 259 | 262 260 | 265 261 | 278 262 | 279 263 | 299 264 | 312 265 | 338 266 | 360 267 | 361 268 | 371 269 | 392 270 | 427 271 | 441 272 | 466 273 | 476 274 | 480 275 | 494 276 | 501 277 | 509 278 | 510 279 | 528 280 | 580 281 | 597 282 | 644 283 | 652 284 | 673 285 | 680 286 | 686 287 | 693 288 | 700 289 | 709 290 | 739 291 | 751 292 | 773 293 | 783 294 | 800 295 | 805 296 | 807 297 | 855 298 | 857 299 | 863 300 | 873 301 | 19 302 | 31 303 | 32 304 | 56 305 | 86 306 | 89 307 | 94 308 | 106 309 | 113 310 | 174 311 | 193 312 | 194 313 | 202 314 | 248 315 | 259 316 | 264 317 | 280 318 | 307 319 | 366 320 | 370 321 | 376 322 | 385 323 | 394 324 | 443 325 | 445 326 | 448 327 | 450 328 | 462 329 | 481 330 | 496 331 | 497 332 | 518 333 | 523 334 | 525 335 | 556 336 | 578 337 | 589 338 | 594 339 | 610 340 | 623 341 | 625 342 | 638 343 | 667 344 | 679 345 | 728 346 | 733 347 | 736 348 | 748 349 | 777 350 | 789 351 | 797 352 | 801 353 | 806 354 | 823 355 | 830 356 | 833 357 | 838 358 | 847 359 | 867 360 | 872 361 | 5 362 | 47 363 | 48 364 | 73 365 | 76 366 | 81 367 | 85 368 | 91 369 | 118 370 | 126 371 | 128 372 | 138 373 | 139 374 | 147 375 | 153 376 | 163 377 | 173 378 | 191 379 | 201 380 | 206 381 | 211 382 | 218 383 | 223 384 | 233 385 | 234 386 | 236 387 | 239 388 | 240 389 | 241 390 | 246 391 | 311 392 | 317 393 | 343 394 | 363 395 | 387 396 | 391 397 | 396 398 | 401 399 | 418 400 | 426 401 | 439 402 | 457 403 | 502 404 | 549 405 | 565 406 | 585 407 | 590 408 | 600 409 | 659 410 | 661 411 | 688 412 | 689 413 | 761 414 | 762 415 | 763 416 | 767 417 | 804 418 | 853 419 | 871 420 | 876 421 | 9 422 | 13 423 | 14 424 | 28 425 | 58 426 | 65 427 | 66 428 | 69 429 | 72 430 | 78 431 | 102 432 | 145 433 | 186 434 | 189 435 | 217 436 | 244 437 | 267 438 | 306 439 | 327 440 | 330 441 | 351 442 | 362 443 | 367 444 | 407 445 | 410 446 | 415 447 | 430 448 | 447 449 | 465 450 | 473 451 | 474 452 | 512 453 | 527 454 | 530 455 | 540 456 | 541 457 | 560 458 | 561 459 | 567 460 | 569 461 | 584 462 | 587 463 | 607 464 | 609 465 | 614 466 | 624 467 | 647 468 | 651 469 | 655 470 | 681 471 | 691 472 | 726 473 | 727 474 | 752 475 | 790 476 | 817 477 | 846 478 | 848 479 | 854 480 | 856 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-6-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 4 62 | 7 63 | 12 64 | 23 65 | 41 66 | 52 67 | 68 68 | 70 69 | 77 70 | 120 71 | 133 72 | 142 73 | 143 74 | 164 75 | 171 76 | 180 77 | 254 78 | 261 79 | 263 80 | 269 81 | 274 82 | 294 83 | 310 84 | 314 85 | 353 86 | 393 87 | 404 88 | 419 89 | 453 90 | 460 91 | 461 92 | 484 93 | 487 94 | 493 95 | 514 96 | 559 97 | 564 98 | 575 99 | 591 100 | 602 101 | 619 102 | 648 103 | 660 104 | 674 105 | 682 106 | 683 107 | 730 108 | 734 109 | 738 110 | 749 111 | 750 112 | 784 113 | 814 114 | 820 115 | 834 116 | 841 117 | 842 118 | 858 119 | 859 120 | 877 121 | 0 122 | 2 123 | 8 124 | 22 125 | 30 126 | 43 127 | 92 128 | 97 129 | 103 130 | 111 131 | 119 132 | 137 133 | 156 134 | 178 135 | 192 136 | 221 137 | 252 138 | 256 139 | 260 140 | 271 141 | 288 142 | 293 143 | 298 144 | 308 145 | 309 146 | 318 147 | 322 148 | 346 149 | 384 150 | 411 151 | 442 152 | 452 153 | 470 154 | 471 155 | 478 156 | 490 157 | 492 158 | 506 159 | 513 160 | 535 161 | 553 162 | 557 163 | 562 164 | 568 165 | 574 166 | 579 167 | 583 168 | 613 169 | 634 170 | 643 171 | 653 172 | 695 173 | 699 174 | 706 175 | 758 176 | 759 177 | 768 178 | 771 179 | 795 180 | 866 181 | 17 182 | 44 183 | 49 184 | 55 185 | 59 186 | 61 187 | 62 188 | 95 189 | 100 190 | 121 191 | 136 192 | 155 193 | 185 194 | 227 195 | 230 196 | 257 197 | 266 198 | 282 199 | 289 200 | 291 201 | 324 202 | 337 203 | 342 204 | 345 205 | 355 206 | 357 207 | 364 208 | 397 209 | 400 210 | 423 211 | 429 212 | 444 213 | 463 214 | 503 215 | 505 216 | 507 217 | 519 218 | 520 219 | 529 220 | 538 221 | 545 222 | 563 223 | 593 224 | 605 225 | 632 226 | 646 227 | 665 228 | 675 229 | 690 230 | 704 231 | 710 232 | 715 233 | 740 234 | 747 235 | 755 236 | 765 237 | 779 238 | 780 239 | 822 240 | 864 241 | 21 242 | 24 243 | 36 244 | 67 245 | 75 246 | 79 247 | 83 248 | 90 249 | 112 250 | 144 251 | 154 252 | 160 253 | 165 254 | 170 255 | 176 256 | 215 257 | 237 258 | 258 259 | 262 260 | 265 261 | 278 262 | 279 263 | 299 264 | 312 265 | 338 266 | 360 267 | 361 268 | 371 269 | 392 270 | 427 271 | 441 272 | 466 273 | 476 274 | 480 275 | 494 276 | 501 277 | 509 278 | 510 279 | 528 280 | 580 281 | 597 282 | 644 283 | 652 284 | 673 285 | 680 286 | 686 287 | 693 288 | 700 289 | 709 290 | 739 291 | 751 292 | 773 293 | 783 294 | 800 295 | 805 296 | 807 297 | 855 298 | 857 299 | 863 300 | 873 301 | 10 302 | 11 303 | 18 304 | 20 305 | 54 306 | 57 307 | 74 308 | 130 309 | 140 310 | 150 311 | 159 312 | 169 313 | 182 314 | 205 315 | 212 316 | 216 317 | 222 318 | 276 319 | 302 320 | 303 321 | 316 322 | 340 323 | 344 324 | 352 325 | 354 326 | 377 327 | 379 328 | 383 329 | 388 330 | 389 331 | 424 332 | 431 333 | 434 334 | 449 335 | 456 336 | 479 337 | 533 338 | 536 339 | 544 340 | 555 341 | 566 342 | 595 343 | 603 344 | 612 345 | 630 346 | 650 347 | 668 348 | 670 349 | 677 350 | 694 351 | 697 352 | 702 353 | 708 354 | 712 355 | 718 356 | 756 357 | 766 358 | 835 359 | 839 360 | 845 361 | 5 362 | 47 363 | 48 364 | 73 365 | 76 366 | 81 367 | 85 368 | 91 369 | 118 370 | 126 371 | 128 372 | 138 373 | 139 374 | 147 375 | 153 376 | 163 377 | 173 378 | 191 379 | 201 380 | 206 381 | 211 382 | 218 383 | 223 384 | 233 385 | 234 386 | 236 387 | 239 388 | 240 389 | 241 390 | 246 391 | 311 392 | 317 393 | 343 394 | 363 395 | 387 396 | 391 397 | 396 398 | 401 399 | 418 400 | 426 401 | 439 402 | 457 403 | 502 404 | 549 405 | 565 406 | 585 407 | 590 408 | 600 409 | 659 410 | 661 411 | 688 412 | 689 413 | 761 414 | 762 415 | 763 416 | 767 417 | 804 418 | 853 419 | 871 420 | 876 421 | 9 422 | 13 423 | 14 424 | 28 425 | 58 426 | 65 427 | 66 428 | 69 429 | 72 430 | 78 431 | 102 432 | 145 433 | 186 434 | 189 435 | 217 436 | 244 437 | 267 438 | 306 439 | 327 440 | 330 441 | 351 442 | 362 443 | 367 444 | 407 445 | 410 446 | 415 447 | 430 448 | 447 449 | 465 450 | 473 451 | 474 452 | 512 453 | 527 454 | 530 455 | 540 456 | 541 457 | 560 458 | 561 459 | 567 460 | 569 461 | 584 462 | 587 463 | 607 464 | 609 465 | 614 466 | 624 467 | 647 468 | 651 469 | 655 470 | 681 471 | 691 472 | 726 473 | 727 474 | 752 475 | 790 476 | 817 477 | 846 478 | 848 479 | 854 480 | 856 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-7-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 4 62 | 7 63 | 12 64 | 23 65 | 41 66 | 52 67 | 68 68 | 70 69 | 77 70 | 120 71 | 133 72 | 142 73 | 143 74 | 164 75 | 171 76 | 180 77 | 254 78 | 261 79 | 263 80 | 269 81 | 274 82 | 294 83 | 310 84 | 314 85 | 353 86 | 393 87 | 404 88 | 419 89 | 453 90 | 460 91 | 461 92 | 484 93 | 487 94 | 493 95 | 514 96 | 559 97 | 564 98 | 575 99 | 591 100 | 602 101 | 619 102 | 648 103 | 660 104 | 674 105 | 682 106 | 683 107 | 730 108 | 734 109 | 738 110 | 749 111 | 750 112 | 784 113 | 814 114 | 820 115 | 834 116 | 841 117 | 842 118 | 858 119 | 859 120 | 877 121 | 0 122 | 2 123 | 8 124 | 22 125 | 30 126 | 43 127 | 92 128 | 97 129 | 103 130 | 111 131 | 119 132 | 137 133 | 156 134 | 178 135 | 192 136 | 221 137 | 252 138 | 256 139 | 260 140 | 271 141 | 288 142 | 293 143 | 298 144 | 308 145 | 309 146 | 318 147 | 322 148 | 346 149 | 384 150 | 411 151 | 442 152 | 452 153 | 470 154 | 471 155 | 478 156 | 490 157 | 492 158 | 506 159 | 513 160 | 535 161 | 553 162 | 557 163 | 562 164 | 568 165 | 574 166 | 579 167 | 583 168 | 613 169 | 634 170 | 643 171 | 653 172 | 695 173 | 699 174 | 706 175 | 758 176 | 759 177 | 768 178 | 771 179 | 795 180 | 866 181 | 17 182 | 44 183 | 49 184 | 55 185 | 59 186 | 61 187 | 62 188 | 95 189 | 100 190 | 121 191 | 136 192 | 155 193 | 185 194 | 227 195 | 230 196 | 257 197 | 266 198 | 282 199 | 289 200 | 291 201 | 324 202 | 337 203 | 342 204 | 345 205 | 355 206 | 357 207 | 364 208 | 397 209 | 400 210 | 423 211 | 429 212 | 444 213 | 463 214 | 503 215 | 505 216 | 507 217 | 519 218 | 520 219 | 529 220 | 538 221 | 545 222 | 563 223 | 593 224 | 605 225 | 632 226 | 646 227 | 665 228 | 675 229 | 690 230 | 704 231 | 710 232 | 715 233 | 740 234 | 747 235 | 755 236 | 765 237 | 779 238 | 780 239 | 822 240 | 864 241 | 21 242 | 24 243 | 36 244 | 67 245 | 75 246 | 79 247 | 83 248 | 90 249 | 112 250 | 144 251 | 154 252 | 160 253 | 165 254 | 170 255 | 176 256 | 215 257 | 237 258 | 258 259 | 262 260 | 265 261 | 278 262 | 279 263 | 299 264 | 312 265 | 338 266 | 360 267 | 361 268 | 371 269 | 392 270 | 427 271 | 441 272 | 466 273 | 476 274 | 480 275 | 494 276 | 501 277 | 509 278 | 510 279 | 528 280 | 580 281 | 597 282 | 644 283 | 652 284 | 673 285 | 680 286 | 686 287 | 693 288 | 700 289 | 709 290 | 739 291 | 751 292 | 773 293 | 783 294 | 800 295 | 805 296 | 807 297 | 855 298 | 857 299 | 863 300 | 873 301 | 10 302 | 11 303 | 18 304 | 20 305 | 54 306 | 57 307 | 74 308 | 130 309 | 140 310 | 150 311 | 159 312 | 169 313 | 182 314 | 205 315 | 212 316 | 216 317 | 222 318 | 276 319 | 302 320 | 303 321 | 316 322 | 340 323 | 344 324 | 352 325 | 354 326 | 377 327 | 379 328 | 383 329 | 388 330 | 389 331 | 424 332 | 431 333 | 434 334 | 449 335 | 456 336 | 479 337 | 533 338 | 536 339 | 544 340 | 555 341 | 566 342 | 595 343 | 603 344 | 612 345 | 630 346 | 650 347 | 668 348 | 670 349 | 677 350 | 694 351 | 697 352 | 702 353 | 708 354 | 712 355 | 718 356 | 756 357 | 766 358 | 835 359 | 839 360 | 845 361 | 19 362 | 31 363 | 32 364 | 56 365 | 86 366 | 89 367 | 94 368 | 106 369 | 113 370 | 174 371 | 193 372 | 194 373 | 202 374 | 248 375 | 259 376 | 264 377 | 280 378 | 307 379 | 366 380 | 370 381 | 376 382 | 385 383 | 394 384 | 443 385 | 445 386 | 448 387 | 450 388 | 462 389 | 481 390 | 496 391 | 497 392 | 518 393 | 523 394 | 525 395 | 556 396 | 578 397 | 589 398 | 594 399 | 610 400 | 623 401 | 625 402 | 638 403 | 667 404 | 679 405 | 728 406 | 733 407 | 736 408 | 748 409 | 777 410 | 789 411 | 797 412 | 801 413 | 806 414 | 823 415 | 830 416 | 833 417 | 838 418 | 847 419 | 867 420 | 872 421 | 9 422 | 13 423 | 14 424 | 28 425 | 58 426 | 65 427 | 66 428 | 69 429 | 72 430 | 78 431 | 102 432 | 145 433 | 186 434 | 189 435 | 217 436 | 244 437 | 267 438 | 306 439 | 327 440 | 330 441 | 351 442 | 362 443 | 367 444 | 407 445 | 410 446 | 415 447 | 430 448 | 447 449 | 465 450 | 473 451 | 474 452 | 512 453 | 527 454 | 530 455 | 540 456 | 541 457 | 560 458 | 561 459 | 567 460 | 569 461 | 584 462 | 587 463 | 607 464 | 609 465 | 614 466 | 624 467 | 647 468 | 651 469 | 655 470 | 681 471 | 691 472 | 726 473 | 727 474 | 752 475 | 790 476 | 817 477 | 846 478 | 848 479 | 854 480 | 856 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-9-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 4 62 | 7 63 | 12 64 | 23 65 | 41 66 | 52 67 | 68 68 | 70 69 | 77 70 | 120 71 | 133 72 | 142 73 | 143 74 | 164 75 | 171 76 | 180 77 | 254 78 | 261 79 | 263 80 | 269 81 | 274 82 | 294 83 | 310 84 | 314 85 | 353 86 | 393 87 | 404 88 | 419 89 | 453 90 | 460 91 | 461 92 | 484 93 | 487 94 | 493 95 | 514 96 | 559 97 | 564 98 | 575 99 | 591 100 | 602 101 | 619 102 | 648 103 | 660 104 | 674 105 | 682 106 | 683 107 | 730 108 | 734 109 | 738 110 | 749 111 | 750 112 | 784 113 | 814 114 | 820 115 | 834 116 | 841 117 | 842 118 | 858 119 | 859 120 | 877 121 | 0 122 | 2 123 | 8 124 | 22 125 | 30 126 | 43 127 | 92 128 | 97 129 | 103 130 | 111 131 | 119 132 | 137 133 | 156 134 | 178 135 | 192 136 | 221 137 | 252 138 | 256 139 | 260 140 | 271 141 | 288 142 | 293 143 | 298 144 | 308 145 | 309 146 | 318 147 | 322 148 | 346 149 | 384 150 | 411 151 | 442 152 | 452 153 | 470 154 | 471 155 | 478 156 | 490 157 | 492 158 | 506 159 | 513 160 | 535 161 | 553 162 | 557 163 | 562 164 | 568 165 | 574 166 | 579 167 | 583 168 | 613 169 | 634 170 | 643 171 | 653 172 | 695 173 | 699 174 | 706 175 | 758 176 | 759 177 | 768 178 | 771 179 | 795 180 | 866 181 | 17 182 | 44 183 | 49 184 | 55 185 | 59 186 | 61 187 | 62 188 | 95 189 | 100 190 | 121 191 | 136 192 | 155 193 | 185 194 | 227 195 | 230 196 | 257 197 | 266 198 | 282 199 | 289 200 | 291 201 | 324 202 | 337 203 | 342 204 | 345 205 | 355 206 | 357 207 | 364 208 | 397 209 | 400 210 | 423 211 | 429 212 | 444 213 | 463 214 | 503 215 | 505 216 | 507 217 | 519 218 | 520 219 | 529 220 | 538 221 | 545 222 | 563 223 | 593 224 | 605 225 | 632 226 | 646 227 | 665 228 | 675 229 | 690 230 | 704 231 | 710 232 | 715 233 | 740 234 | 747 235 | 755 236 | 765 237 | 779 238 | 780 239 | 822 240 | 864 241 | 21 242 | 24 243 | 36 244 | 67 245 | 75 246 | 79 247 | 83 248 | 90 249 | 112 250 | 144 251 | 154 252 | 160 253 | 165 254 | 170 255 | 176 256 | 215 257 | 237 258 | 258 259 | 262 260 | 265 261 | 278 262 | 279 263 | 299 264 | 312 265 | 338 266 | 360 267 | 361 268 | 371 269 | 392 270 | 427 271 | 441 272 | 466 273 | 476 274 | 480 275 | 494 276 | 501 277 | 509 278 | 510 279 | 528 280 | 580 281 | 597 282 | 644 283 | 652 284 | 673 285 | 680 286 | 686 287 | 693 288 | 700 289 | 709 290 | 739 291 | 751 292 | 773 293 | 783 294 | 800 295 | 805 296 | 807 297 | 855 298 | 857 299 | 863 300 | 873 301 | 10 302 | 11 303 | 18 304 | 20 305 | 54 306 | 57 307 | 74 308 | 130 309 | 140 310 | 150 311 | 159 312 | 169 313 | 182 314 | 205 315 | 212 316 | 216 317 | 222 318 | 276 319 | 302 320 | 303 321 | 316 322 | 340 323 | 344 324 | 352 325 | 354 326 | 377 327 | 379 328 | 383 329 | 388 330 | 389 331 | 424 332 | 431 333 | 434 334 | 449 335 | 456 336 | 479 337 | 533 338 | 536 339 | 544 340 | 555 341 | 566 342 | 595 343 | 603 344 | 612 345 | 630 346 | 650 347 | 668 348 | 670 349 | 677 350 | 694 351 | 697 352 | 702 353 | 708 354 | 712 355 | 718 356 | 756 357 | 766 358 | 835 359 | 839 360 | 845 361 | 19 362 | 31 363 | 32 364 | 56 365 | 86 366 | 89 367 | 94 368 | 106 369 | 113 370 | 174 371 | 193 372 | 194 373 | 202 374 | 248 375 | 259 376 | 264 377 | 280 378 | 307 379 | 366 380 | 370 381 | 376 382 | 385 383 | 394 384 | 443 385 | 445 386 | 448 387 | 450 388 | 462 389 | 481 390 | 496 391 | 497 392 | 518 393 | 523 394 | 525 395 | 556 396 | 578 397 | 589 398 | 594 399 | 610 400 | 623 401 | 625 402 | 638 403 | 667 404 | 679 405 | 728 406 | 733 407 | 736 408 | 748 409 | 777 410 | 789 411 | 797 412 | 801 413 | 806 414 | 823 415 | 830 416 | 833 417 | 838 418 | 847 419 | 867 420 | 872 421 | 5 422 | 47 423 | 48 424 | 73 425 | 76 426 | 81 427 | 85 428 | 91 429 | 118 430 | 126 431 | 128 432 | 138 433 | 139 434 | 147 435 | 153 436 | 163 437 | 173 438 | 191 439 | 201 440 | 206 441 | 211 442 | 218 443 | 223 444 | 233 445 | 234 446 | 236 447 | 239 448 | 240 449 | 241 450 | 246 451 | 311 452 | 317 453 | 343 454 | 363 455 | 387 456 | 391 457 | 396 458 | 401 459 | 418 460 | 426 461 | 439 462 | 457 463 | 502 464 | 549 465 | 565 466 | 585 467 | 590 468 | 600 469 | 659 470 | 661 471 | 688 472 | 689 473 | 761 474 | 762 475 | 763 476 | 767 477 | 804 478 | 853 479 | 871 480 | 876 481 | 9 482 | 13 483 | 14 484 | 28 485 | 58 486 | 65 487 | 66 488 | 69 489 | 72 490 | 78 491 | 102 492 | 145 493 | 186 494 | 189 495 | 217 496 | 244 497 | 267 498 | 306 499 | 327 500 | 330 501 | 351 502 | 362 503 | 367 504 | 407 505 | 410 506 | 415 507 | 430 508 | 447 509 | 465 510 | 473 511 | 474 512 | 512 513 | 527 514 | 530 515 | 540 516 | 541 517 | 560 518 | 561 519 | 567 520 | 569 521 | 584 522 | 587 523 | 607 524 | 609 525 | 614 526 | 624 527 | 647 528 | 651 529 | 655 530 | 681 531 | 691 532 | 726 533 | 727 534 | 752 535 | 790 536 | 817 537 | 846 538 | 848 539 | 854 540 | 856 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-1-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 0 62 | 2 63 | 8 64 | 22 65 | 30 66 | 43 67 | 92 68 | 97 69 | 103 70 | 111 71 | 119 72 | 137 73 | 156 74 | 178 75 | 192 76 | 221 77 | 252 78 | 256 79 | 260 80 | 271 81 | 288 82 | 293 83 | 298 84 | 308 85 | 309 86 | 318 87 | 322 88 | 346 89 | 384 90 | 411 91 | 442 92 | 452 93 | 470 94 | 471 95 | 478 96 | 490 97 | 492 98 | 506 99 | 513 100 | 535 101 | 553 102 | 557 103 | 562 104 | 568 105 | 574 106 | 579 107 | 583 108 | 613 109 | 634 110 | 643 111 | 653 112 | 695 113 | 699 114 | 706 115 | 758 116 | 759 117 | 768 118 | 771 119 | 795 120 | 866 121 | 17 122 | 44 123 | 49 124 | 55 125 | 59 126 | 61 127 | 62 128 | 95 129 | 100 130 | 121 131 | 136 132 | 155 133 | 185 134 | 227 135 | 230 136 | 257 137 | 266 138 | 282 139 | 289 140 | 291 141 | 324 142 | 337 143 | 342 144 | 345 145 | 355 146 | 357 147 | 364 148 | 397 149 | 400 150 | 423 151 | 429 152 | 444 153 | 463 154 | 503 155 | 505 156 | 507 157 | 519 158 | 520 159 | 529 160 | 538 161 | 545 162 | 563 163 | 593 164 | 605 165 | 632 166 | 646 167 | 665 168 | 675 169 | 690 170 | 704 171 | 710 172 | 715 173 | 740 174 | 747 175 | 755 176 | 765 177 | 779 178 | 780 179 | 822 180 | 864 181 | 21 182 | 24 183 | 36 184 | 67 185 | 75 186 | 79 187 | 83 188 | 90 189 | 112 190 | 144 191 | 154 192 | 160 193 | 165 194 | 170 195 | 176 196 | 215 197 | 237 198 | 258 199 | 262 200 | 265 201 | 278 202 | 279 203 | 299 204 | 312 205 | 338 206 | 360 207 | 361 208 | 371 209 | 392 210 | 427 211 | 441 212 | 466 213 | 476 214 | 480 215 | 494 216 | 501 217 | 509 218 | 510 219 | 528 220 | 580 221 | 597 222 | 644 223 | 652 224 | 673 225 | 680 226 | 686 227 | 693 228 | 700 229 | 709 230 | 739 231 | 751 232 | 773 233 | 783 234 | 800 235 | 805 236 | 807 237 | 855 238 | 857 239 | 863 240 | 873 241 | 10 242 | 11 243 | 18 244 | 20 245 | 54 246 | 57 247 | 74 248 | 130 249 | 140 250 | 150 251 | 159 252 | 169 253 | 182 254 | 205 255 | 212 256 | 216 257 | 222 258 | 276 259 | 302 260 | 303 261 | 316 262 | 340 263 | 344 264 | 352 265 | 354 266 | 377 267 | 379 268 | 383 269 | 388 270 | 389 271 | 424 272 | 431 273 | 434 274 | 449 275 | 456 276 | 479 277 | 533 278 | 536 279 | 544 280 | 555 281 | 566 282 | 595 283 | 603 284 | 612 285 | 630 286 | 650 287 | 668 288 | 670 289 | 677 290 | 694 291 | 697 292 | 702 293 | 708 294 | 712 295 | 718 296 | 756 297 | 766 298 | 835 299 | 839 300 | 845 301 | 19 302 | 31 303 | 32 304 | 56 305 | 86 306 | 89 307 | 94 308 | 106 309 | 113 310 | 174 311 | 193 312 | 194 313 | 202 314 | 248 315 | 259 316 | 264 317 | 280 318 | 307 319 | 366 320 | 370 321 | 376 322 | 385 323 | 394 324 | 443 325 | 445 326 | 448 327 | 450 328 | 462 329 | 481 330 | 496 331 | 497 332 | 518 333 | 523 334 | 525 335 | 556 336 | 578 337 | 589 338 | 594 339 | 610 340 | 623 341 | 625 342 | 638 343 | 667 344 | 679 345 | 728 346 | 733 347 | 736 348 | 748 349 | 777 350 | 789 351 | 797 352 | 801 353 | 806 354 | 823 355 | 830 356 | 833 357 | 838 358 | 847 359 | 867 360 | 872 361 | 5 362 | 47 363 | 48 364 | 73 365 | 76 366 | 81 367 | 85 368 | 91 369 | 118 370 | 126 371 | 128 372 | 138 373 | 139 374 | 147 375 | 153 376 | 163 377 | 173 378 | 191 379 | 201 380 | 206 381 | 211 382 | 218 383 | 223 384 | 233 385 | 234 386 | 236 387 | 239 388 | 240 389 | 241 390 | 246 391 | 311 392 | 317 393 | 343 394 | 363 395 | 387 396 | 391 397 | 396 398 | 401 399 | 418 400 | 426 401 | 439 402 | 457 403 | 502 404 | 549 405 | 565 406 | 585 407 | 590 408 | 600 409 | 659 410 | 661 411 | 688 412 | 689 413 | 761 414 | 762 415 | 763 416 | 767 417 | 804 418 | 853 419 | 871 420 | 876 421 | 9 422 | 13 423 | 14 424 | 28 425 | 58 426 | 65 427 | 66 428 | 69 429 | 72 430 | 78 431 | 102 432 | 145 433 | 186 434 | 189 435 | 217 436 | 244 437 | 267 438 | 306 439 | 327 440 | 330 441 | 351 442 | 362 443 | 367 444 | 407 445 | 410 446 | 415 447 | 430 448 | 447 449 | 465 450 | 473 451 | 474 452 | 512 453 | 527 454 | 530 455 | 540 456 | 541 457 | 560 458 | 561 459 | 567 460 | 569 461 | 584 462 | 587 463 | 607 464 | 609 465 | 614 466 | 624 467 | 647 468 | 651 469 | 655 470 | 681 471 | 691 472 | 726 473 | 727 474 | 752 475 | 790 476 | 817 477 | 846 478 | 848 479 | 854 480 | 856 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-2-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 4 62 | 7 63 | 12 64 | 23 65 | 41 66 | 52 67 | 68 68 | 70 69 | 77 70 | 120 71 | 133 72 | 142 73 | 143 74 | 164 75 | 171 76 | 180 77 | 254 78 | 261 79 | 263 80 | 269 81 | 274 82 | 294 83 | 310 84 | 314 85 | 353 86 | 393 87 | 404 88 | 419 89 | 453 90 | 460 91 | 461 92 | 484 93 | 487 94 | 493 95 | 514 96 | 559 97 | 564 98 | 575 99 | 591 100 | 602 101 | 619 102 | 648 103 | 660 104 | 674 105 | 682 106 | 683 107 | 730 108 | 734 109 | 738 110 | 749 111 | 750 112 | 784 113 | 814 114 | 820 115 | 834 116 | 841 117 | 842 118 | 858 119 | 859 120 | 877 121 | 17 122 | 44 123 | 49 124 | 55 125 | 59 126 | 61 127 | 62 128 | 95 129 | 100 130 | 121 131 | 136 132 | 155 133 | 185 134 | 227 135 | 230 136 | 257 137 | 266 138 | 282 139 | 289 140 | 291 141 | 324 142 | 337 143 | 342 144 | 345 145 | 355 146 | 357 147 | 364 148 | 397 149 | 400 150 | 423 151 | 429 152 | 444 153 | 463 154 | 503 155 | 505 156 | 507 157 | 519 158 | 520 159 | 529 160 | 538 161 | 545 162 | 563 163 | 593 164 | 605 165 | 632 166 | 646 167 | 665 168 | 675 169 | 690 170 | 704 171 | 710 172 | 715 173 | 740 174 | 747 175 | 755 176 | 765 177 | 779 178 | 780 179 | 822 180 | 864 181 | 21 182 | 24 183 | 36 184 | 67 185 | 75 186 | 79 187 | 83 188 | 90 189 | 112 190 | 144 191 | 154 192 | 160 193 | 165 194 | 170 195 | 176 196 | 215 197 | 237 198 | 258 199 | 262 200 | 265 201 | 278 202 | 279 203 | 299 204 | 312 205 | 338 206 | 360 207 | 361 208 | 371 209 | 392 210 | 427 211 | 441 212 | 466 213 | 476 214 | 480 215 | 494 216 | 501 217 | 509 218 | 510 219 | 528 220 | 580 221 | 597 222 | 644 223 | 652 224 | 673 225 | 680 226 | 686 227 | 693 228 | 700 229 | 709 230 | 739 231 | 751 232 | 773 233 | 783 234 | 800 235 | 805 236 | 807 237 | 855 238 | 857 239 | 863 240 | 873 241 | 10 242 | 11 243 | 18 244 | 20 245 | 54 246 | 57 247 | 74 248 | 130 249 | 140 250 | 150 251 | 159 252 | 169 253 | 182 254 | 205 255 | 212 256 | 216 257 | 222 258 | 276 259 | 302 260 | 303 261 | 316 262 | 340 263 | 344 264 | 352 265 | 354 266 | 377 267 | 379 268 | 383 269 | 388 270 | 389 271 | 424 272 | 431 273 | 434 274 | 449 275 | 456 276 | 479 277 | 533 278 | 536 279 | 544 280 | 555 281 | 566 282 | 595 283 | 603 284 | 612 285 | 630 286 | 650 287 | 668 288 | 670 289 | 677 290 | 694 291 | 697 292 | 702 293 | 708 294 | 712 295 | 718 296 | 756 297 | 766 298 | 835 299 | 839 300 | 845 301 | 19 302 | 31 303 | 32 304 | 56 305 | 86 306 | 89 307 | 94 308 | 106 309 | 113 310 | 174 311 | 193 312 | 194 313 | 202 314 | 248 315 | 259 316 | 264 317 | 280 318 | 307 319 | 366 320 | 370 321 | 376 322 | 385 323 | 394 324 | 443 325 | 445 326 | 448 327 | 450 328 | 462 329 | 481 330 | 496 331 | 497 332 | 518 333 | 523 334 | 525 335 | 556 336 | 578 337 | 589 338 | 594 339 | 610 340 | 623 341 | 625 342 | 638 343 | 667 344 | 679 345 | 728 346 | 733 347 | 736 348 | 748 349 | 777 350 | 789 351 | 797 352 | 801 353 | 806 354 | 823 355 | 830 356 | 833 357 | 838 358 | 847 359 | 867 360 | 872 361 | 5 362 | 47 363 | 48 364 | 73 365 | 76 366 | 81 367 | 85 368 | 91 369 | 118 370 | 126 371 | 128 372 | 138 373 | 139 374 | 147 375 | 153 376 | 163 377 | 173 378 | 191 379 | 201 380 | 206 381 | 211 382 | 218 383 | 223 384 | 233 385 | 234 386 | 236 387 | 239 388 | 240 389 | 241 390 | 246 391 | 311 392 | 317 393 | 343 394 | 363 395 | 387 396 | 391 397 | 396 398 | 401 399 | 418 400 | 426 401 | 439 402 | 457 403 | 502 404 | 549 405 | 565 406 | 585 407 | 590 408 | 600 409 | 659 410 | 661 411 | 688 412 | 689 413 | 761 414 | 762 415 | 763 416 | 767 417 | 804 418 | 853 419 | 871 420 | 876 421 | 9 422 | 13 423 | 14 424 | 28 425 | 58 426 | 65 427 | 66 428 | 69 429 | 72 430 | 78 431 | 102 432 | 145 433 | 186 434 | 189 435 | 217 436 | 244 437 | 267 438 | 306 439 | 327 440 | 330 441 | 351 442 | 362 443 | 367 444 | 407 445 | 410 446 | 415 447 | 430 448 | 447 449 | 465 450 | 473 451 | 474 452 | 512 453 | 527 454 | 530 455 | 540 456 | 541 457 | 560 458 | 561 459 | 567 460 | 569 461 | 584 462 | 587 463 | 607 464 | 609 465 | 614 466 | 624 467 | 647 468 | 651 469 | 655 470 | 681 471 | 691 472 | 726 473 | 727 474 | 752 475 | 790 476 | 817 477 | 846 478 | 848 479 | 854 480 | 856 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/folds600/fold-8-train.ids: -------------------------------------------------------------------------------- 1 | 1 2 | 35 3 | 51 4 | 63 5 | 105 6 | 115 7 | 116 8 | 122 9 | 127 10 | 131 11 | 146 12 | 151 13 | 157 14 | 162 15 | 181 16 | 187 17 | 200 18 | 210 19 | 224 20 | 226 21 | 228 22 | 251 23 | 253 24 | 270 25 | 283 26 | 287 27 | 290 28 | 292 29 | 313 30 | 321 31 | 358 32 | 406 33 | 409 34 | 414 35 | 417 36 | 425 37 | 435 38 | 485 39 | 500 40 | 508 41 | 522 42 | 534 43 | 554 44 | 558 45 | 571 46 | 617 47 | 620 48 | 621 49 | 633 50 | 640 51 | 649 52 | 662 53 | 696 54 | 713 55 | 753 56 | 809 57 | 812 58 | 849 59 | 851 60 | 869 61 | 4 62 | 7 63 | 12 64 | 23 65 | 41 66 | 52 67 | 68 68 | 70 69 | 77 70 | 120 71 | 133 72 | 142 73 | 143 74 | 164 75 | 171 76 | 180 77 | 254 78 | 261 79 | 263 80 | 269 81 | 274 82 | 294 83 | 310 84 | 314 85 | 353 86 | 393 87 | 404 88 | 419 89 | 453 90 | 460 91 | 461 92 | 484 93 | 487 94 | 493 95 | 514 96 | 559 97 | 564 98 | 575 99 | 591 100 | 602 101 | 619 102 | 648 103 | 660 104 | 674 105 | 682 106 | 683 107 | 730 108 | 734 109 | 738 110 | 749 111 | 750 112 | 784 113 | 814 114 | 820 115 | 834 116 | 841 117 | 842 118 | 858 119 | 859 120 | 877 121 | 0 122 | 2 123 | 8 124 | 22 125 | 30 126 | 43 127 | 92 128 | 97 129 | 103 130 | 111 131 | 119 132 | 137 133 | 156 134 | 178 135 | 192 136 | 221 137 | 252 138 | 256 139 | 260 140 | 271 141 | 288 142 | 293 143 | 298 144 | 308 145 | 309 146 | 318 147 | 322 148 | 346 149 | 384 150 | 411 151 | 442 152 | 452 153 | 470 154 | 471 155 | 478 156 | 490 157 | 492 158 | 506 159 | 513 160 | 535 161 | 553 162 | 557 163 | 562 164 | 568 165 | 574 166 | 579 167 | 583 168 | 613 169 | 634 170 | 643 171 | 653 172 | 695 173 | 699 174 | 706 175 | 758 176 | 759 177 | 768 178 | 771 179 | 795 180 | 866 181 | 17 182 | 44 183 | 49 184 | 55 185 | 59 186 | 61 187 | 62 188 | 95 189 | 100 190 | 121 191 | 136 192 | 155 193 | 185 194 | 227 195 | 230 196 | 257 197 | 266 198 | 282 199 | 289 200 | 291 201 | 324 202 | 337 203 | 342 204 | 345 205 | 355 206 | 357 207 | 364 208 | 397 209 | 400 210 | 423 211 | 429 212 | 444 213 | 463 214 | 503 215 | 505 216 | 507 217 | 519 218 | 520 219 | 529 220 | 538 221 | 545 222 | 563 223 | 593 224 | 605 225 | 632 226 | 646 227 | 665 228 | 675 229 | 690 230 | 704 231 | 710 232 | 715 233 | 740 234 | 747 235 | 755 236 | 765 237 | 779 238 | 780 239 | 822 240 | 864 241 | 21 242 | 24 243 | 36 244 | 67 245 | 75 246 | 79 247 | 83 248 | 90 249 | 112 250 | 144 251 | 154 252 | 160 253 | 165 254 | 170 255 | 176 256 | 215 257 | 237 258 | 258 259 | 262 260 | 265 261 | 278 262 | 279 263 | 299 264 | 312 265 | 338 266 | 360 267 | 361 268 | 371 269 | 392 270 | 427 271 | 441 272 | 466 273 | 476 274 | 480 275 | 494 276 | 501 277 | 509 278 | 510 279 | 528 280 | 580 281 | 597 282 | 644 283 | 652 284 | 673 285 | 680 286 | 686 287 | 693 288 | 700 289 | 709 290 | 739 291 | 751 292 | 773 293 | 783 294 | 800 295 | 805 296 | 807 297 | 855 298 | 857 299 | 863 300 | 873 301 | 10 302 | 11 303 | 18 304 | 20 305 | 54 306 | 57 307 | 74 308 | 130 309 | 140 310 | 150 311 | 159 312 | 169 313 | 182 314 | 205 315 | 212 316 | 216 317 | 222 318 | 276 319 | 302 320 | 303 321 | 316 322 | 340 323 | 344 324 | 352 325 | 354 326 | 377 327 | 379 328 | 383 329 | 388 330 | 389 331 | 424 332 | 431 333 | 434 334 | 449 335 | 456 336 | 479 337 | 533 338 | 536 339 | 544 340 | 555 341 | 566 342 | 595 343 | 603 344 | 612 345 | 630 346 | 650 347 | 668 348 | 670 349 | 677 350 | 694 351 | 697 352 | 702 353 | 708 354 | 712 355 | 718 356 | 756 357 | 766 358 | 835 359 | 839 360 | 845 361 | 19 362 | 31 363 | 32 364 | 56 365 | 86 366 | 89 367 | 94 368 | 106 369 | 113 370 | 174 371 | 193 372 | 194 373 | 202 374 | 248 375 | 259 376 | 264 377 | 280 378 | 307 379 | 366 380 | 370 381 | 376 382 | 385 383 | 394 384 | 443 385 | 445 386 | 448 387 | 450 388 | 462 389 | 481 390 | 496 391 | 497 392 | 518 393 | 523 394 | 525 395 | 556 396 | 578 397 | 589 398 | 594 399 | 610 400 | 623 401 | 625 402 | 638 403 | 667 404 | 679 405 | 728 406 | 733 407 | 736 408 | 748 409 | 777 410 | 789 411 | 797 412 | 801 413 | 806 414 | 823 415 | 830 416 | 833 417 | 838 418 | 847 419 | 867 420 | 872 421 | 5 422 | 47 423 | 48 424 | 73 425 | 76 426 | 81 427 | 85 428 | 91 429 | 118 430 | 126 431 | 128 432 | 138 433 | 139 434 | 147 435 | 153 436 | 163 437 | 173 438 | 191 439 | 201 440 | 206 441 | 211 442 | 218 443 | 223 444 | 233 445 | 234 446 | 236 447 | 239 448 | 240 449 | 241 450 | 246 451 | 311 452 | 317 453 | 343 454 | 363 455 | 387 456 | 391 457 | 396 458 | 401 459 | 418 460 | 426 461 | 439 462 | 457 463 | 502 464 | 549 465 | 565 466 | 585 467 | 590 468 | 600 469 | 659 470 | 661 471 | 688 472 | 689 473 | 761 474 | 762 475 | 763 476 | 767 477 | 804 478 | 853 479 | 871 480 | 876 481 | 27 482 | 42 483 | 71 484 | 80 485 | 96 486 | 98 487 | 109 488 | 123 489 | 124 490 | 129 491 | 175 492 | 177 493 | 197 494 | 198 495 | 219 496 | 235 497 | 268 498 | 277 499 | 284 500 | 285 501 | 297 502 | 315 503 | 326 504 | 329 505 | 335 506 | 374 507 | 421 508 | 458 509 | 488 510 | 499 511 | 532 512 | 539 513 | 543 514 | 570 515 | 576 516 | 588 517 | 601 518 | 606 519 | 622 520 | 626 521 | 627 522 | 628 523 | 629 524 | 637 525 | 641 526 | 654 527 | 658 528 | 671 529 | 672 530 | 685 531 | 714 532 | 717 533 | 720 534 | 741 535 | 764 536 | 770 537 | 772 538 | 821 539 | 844 540 | 878 541 | -------------------------------------------------------------------------------- /data/geoquery/split880.train.ids: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 4 5 | 5 6 | 7 7 | 8 8 | 9 9 | 10 10 | 11 11 | 12 12 | 13 13 | 14 14 | 17 15 | 18 16 | 19 17 | 20 18 | 21 19 | 22 20 | 23 21 | 24 22 | 27 23 | 28 24 | 30 25 | 31 26 | 32 27 | 35 28 | 36 29 | 41 30 | 42 31 | 43 32 | 44 33 | 47 34 | 48 35 | 49 36 | 51 37 | 52 38 | 54 39 | 55 40 | 56 41 | 57 42 | 58 43 | 59 44 | 61 45 | 62 46 | 63 47 | 65 48 | 66 49 | 67 50 | 68 51 | 69 52 | 70 53 | 71 54 | 72 55 | 73 56 | 74 57 | 75 58 | 76 59 | 77 60 | 78 61 | 79 62 | 80 63 | 81 64 | 83 65 | 85 66 | 86 67 | 89 68 | 90 69 | 91 70 | 92 71 | 94 72 | 95 73 | 96 74 | 97 75 | 98 76 | 100 77 | 102 78 | 103 79 | 105 80 | 106 81 | 109 82 | 111 83 | 112 84 | 113 85 | 115 86 | 116 87 | 118 88 | 119 89 | 120 90 | 121 91 | 122 92 | 123 93 | 124 94 | 126 95 | 127 96 | 128 97 | 129 98 | 130 99 | 131 100 | 133 101 | 136 102 | 137 103 | 138 104 | 139 105 | 140 106 | 142 107 | 143 108 | 144 109 | 145 110 | 146 111 | 147 112 | 150 113 | 151 114 | 153 115 | 154 116 | 155 117 | 156 118 | 157 119 | 159 120 | 160 121 | 162 122 | 163 123 | 164 124 | 165 125 | 169 126 | 170 127 | 171 128 | 173 129 | 174 130 | 175 131 | 176 132 | 177 133 | 178 134 | 180 135 | 181 136 | 182 137 | 185 138 | 186 139 | 187 140 | 189 141 | 191 142 | 192 143 | 193 144 | 194 145 | 197 146 | 198 147 | 200 148 | 201 149 | 202 150 | 205 151 | 206 152 | 210 153 | 211 154 | 212 155 | 215 156 | 216 157 | 217 158 | 218 159 | 219 160 | 221 161 | 222 162 | 223 163 | 224 164 | 226 165 | 227 166 | 228 167 | 230 168 | 233 169 | 234 170 | 235 171 | 236 172 | 237 173 | 239 174 | 240 175 | 241 176 | 244 177 | 246 178 | 248 179 | 251 180 | 252 181 | 253 182 | 254 183 | 256 184 | 257 185 | 258 186 | 259 187 | 260 188 | 261 189 | 262 190 | 263 191 | 264 192 | 265 193 | 266 194 | 267 195 | 268 196 | 269 197 | 270 198 | 271 199 | 274 200 | 276 201 | 277 202 | 278 203 | 279 204 | 280 205 | 282 206 | 283 207 | 284 208 | 285 209 | 287 210 | 288 211 | 289 212 | 290 213 | 291 214 | 292 215 | 293 216 | 294 217 | 297 218 | 298 219 | 299 220 | 302 221 | 303 222 | 306 223 | 307 224 | 308 225 | 309 226 | 310 227 | 311 228 | 312 229 | 313 230 | 314 231 | 315 232 | 316 233 | 317 234 | 318 235 | 321 236 | 322 237 | 324 238 | 326 239 | 327 240 | 329 241 | 330 242 | 335 243 | 337 244 | 338 245 | 340 246 | 342 247 | 343 248 | 344 249 | 345 250 | 346 251 | 351 252 | 352 253 | 353 254 | 354 255 | 355 256 | 357 257 | 358 258 | 360 259 | 361 260 | 362 261 | 363 262 | 364 263 | 366 264 | 367 265 | 370 266 | 371 267 | 374 268 | 376 269 | 377 270 | 379 271 | 383 272 | 384 273 | 385 274 | 387 275 | 388 276 | 389 277 | 391 278 | 392 279 | 393 280 | 394 281 | 396 282 | 397 283 | 400 284 | 401 285 | 404 286 | 406 287 | 407 288 | 409 289 | 410 290 | 411 291 | 414 292 | 415 293 | 417 294 | 418 295 | 419 296 | 421 297 | 423 298 | 424 299 | 425 300 | 426 301 | 427 302 | 429 303 | 430 304 | 431 305 | 434 306 | 435 307 | 439 308 | 441 309 | 442 310 | 443 311 | 444 312 | 445 313 | 447 314 | 448 315 | 449 316 | 450 317 | 452 318 | 453 319 | 456 320 | 457 321 | 458 322 | 460 323 | 461 324 | 462 325 | 463 326 | 465 327 | 466 328 | 470 329 | 471 330 | 473 331 | 474 332 | 476 333 | 478 334 | 479 335 | 480 336 | 481 337 | 484 338 | 485 339 | 487 340 | 488 341 | 490 342 | 492 343 | 493 344 | 494 345 | 496 346 | 497 347 | 499 348 | 500 349 | 501 350 | 502 351 | 503 352 | 505 353 | 506 354 | 507 355 | 508 356 | 509 357 | 510 358 | 512 359 | 513 360 | 514 361 | 518 362 | 519 363 | 520 364 | 522 365 | 523 366 | 525 367 | 527 368 | 528 369 | 529 370 | 530 371 | 532 372 | 533 373 | 534 374 | 535 375 | 536 376 | 538 377 | 539 378 | 540 379 | 541 380 | 543 381 | 544 382 | 545 383 | 549 384 | 553 385 | 554 386 | 555 387 | 556 388 | 557 389 | 558 390 | 559 391 | 560 392 | 561 393 | 562 394 | 563 395 | 564 396 | 565 397 | 566 398 | 567 399 | 568 400 | 569 401 | 570 402 | 571 403 | 574 404 | 575 405 | 576 406 | 578 407 | 579 408 | 580 409 | 583 410 | 584 411 | 585 412 | 587 413 | 588 414 | 589 415 | 590 416 | 591 417 | 593 418 | 594 419 | 595 420 | 597 421 | 600 422 | 601 423 | 602 424 | 603 425 | 605 426 | 606 427 | 607 428 | 609 429 | 610 430 | 612 431 | 613 432 | 614 433 | 617 434 | 619 435 | 620 436 | 621 437 | 622 438 | 623 439 | 624 440 | 625 441 | 626 442 | 627 443 | 628 444 | 629 445 | 630 446 | 632 447 | 633 448 | 634 449 | 637 450 | 638 451 | 640 452 | 641 453 | 643 454 | 644 455 | 646 456 | 647 457 | 648 458 | 649 459 | 650 460 | 651 461 | 652 462 | 653 463 | 654 464 | 655 465 | 658 466 | 659 467 | 660 468 | 661 469 | 662 470 | 665 471 | 667 472 | 668 473 | 670 474 | 671 475 | 672 476 | 673 477 | 674 478 | 675 479 | 677 480 | 679 481 | 680 482 | 681 483 | 682 484 | 683 485 | 685 486 | 686 487 | 688 488 | 689 489 | 690 490 | 691 491 | 693 492 | 694 493 | 695 494 | 696 495 | 697 496 | 699 497 | 700 498 | 702 499 | 704 500 | 706 501 | 708 502 | 709 503 | 710 504 | 712 505 | 713 506 | 714 507 | 715 508 | 717 509 | 718 510 | 720 511 | 726 512 | 727 513 | 728 514 | 730 515 | 733 516 | 734 517 | 736 518 | 738 519 | 739 520 | 740 521 | 741 522 | 747 523 | 748 524 | 749 525 | 750 526 | 751 527 | 752 528 | 753 529 | 755 530 | 756 531 | 758 532 | 759 533 | 761 534 | 762 535 | 763 536 | 764 537 | 765 538 | 766 539 | 767 540 | 768 541 | 770 542 | 771 543 | 772 544 | 773 545 | 777 546 | 779 547 | 780 548 | 783 549 | 784 550 | 789 551 | 790 552 | 795 553 | 797 554 | 800 555 | 801 556 | 804 557 | 805 558 | 806 559 | 807 560 | 809 561 | 812 562 | 814 563 | 817 564 | 820 565 | 821 566 | 822 567 | 823 568 | 830 569 | 833 570 | 834 571 | 835 572 | 838 573 | 839 574 | 841 575 | 842 576 | 844 577 | 845 578 | 846 579 | 847 580 | 848 581 | 849 582 | 851 583 | 853 584 | 854 585 | 855 586 | 856 587 | 857 588 | 858 589 | 859 590 | 863 591 | 864 592 | 866 593 | 867 594 | 869 595 | 871 596 | 872 597 | 873 598 | 876 599 | 877 600 | 878 601 | -------------------------------------------------------------------------------- /data/geoquery/wasp-1.0/geoquery.pl: -------------------------------------------------------------------------------- 1 | :- ensure_loaded(library('lists')). 2 | :- ensure_loaded(library('ordsets')). 3 | :- ensure_loaded(geobase). 4 | 5 | country(countryid(usa)). 6 | 7 | state(stateid(State)) :- state(State,_,_,_,_,_,_,_,_,_). 8 | 9 | city(cityid(City,St)) :- city(_,St,City,_). 10 | 11 | river(riverid(R)) :- river(R,_,_). 12 | 13 | place(placeid(P)) :- highlow(_,_,P,_,_,_). 14 | place(placeid(P)) :- highlow(_,_,_,_,P,_). 15 | 16 | mountain(A) :- mountain(A,_,_,_). % Rohit 17 | lake(A) :- lake(A,_,_). % Rohit 18 | 19 | abbreviation(stateid(State), Ab) :- 20 | state(State,Ab,_,_,_,_,_,_,_,_). 21 | abbreviation(Ab) :- abbreviation(_,Ab). 22 | 23 | capital(stateid(State), cityid(Cap,St)) :- state(State,St,Cap,_,_,_,_,_,_,_). 24 | capital(Cap) :- capital(_,Cap). 25 | 26 | print_name(stateid(X),X) :- !. 27 | print_name(cityid(X,_), X) :- !. 28 | print_name(riverid(X), X) :- !. 29 | print_name(placeid(X), X) :- !. 30 | print_name(Goal, Y) :- (Goal=_/_;Goal=_*_;Goal=_+_;Goal=_-_),!, Y is Goal. 31 | print_name(X,X). 32 | 33 | loc(X,countryid(usa)) :- 34 | city(X) ; state(X) ; river(X) ; place(X). 35 | loc(cityid(City,St), stateid(State)) :- 36 | city(State, St, City,_). 37 | loc(placeid(P), stateid(S)) :- highlow(S,_,P,_,_,_). % Rohit 38 | loc(placeid(P), stateid(S)) :- highlow(S,_,_,_,P,_). % Rohit 39 | %loc(placeid(P), stateid(S)) :- 40 | % ( highlow(S,_,P,_,_,_) -> 41 | % true 42 | % ; highlow(S,_,_,_,P,_) 43 | % ). 44 | loc(riverid(R), stateid(S)) :- 45 | river(R,_,States), 46 | member(S,States). 47 | 48 | traverse(riverid(R), stateid(S)) :- 49 | river(R,_,States), 50 | member(S,States). 51 | 52 | high_point(countryid(usa), placeid('mount mckinley')). 53 | high_point(stateid(S), placeid(P)) :- 54 | highlow(S,_,P,_,_,_). 55 | 56 | low_point(countryid(usa), placeid('death valley')). 57 | low_point(stateid(S), placeid(P)) :- 58 | highlow(S,_,_,_,P,_). 59 | 60 | area(stateid(X),Areal) :- 61 | state(X,_,_,_,Area,_,_,_,_,_), 62 | Areal is float(Area). 63 | 64 | major(cityid(C,S)) :- 65 | X = cityid(C,S), 66 | city(X), 67 | population(X,P), 68 | P > 150000. 69 | major(riverid(R)) :- 70 | X = riverid(R), 71 | river(X), 72 | len(X,L), 73 | L > 750. 74 | 75 | first(G) :- (G -> true). 76 | 77 | n_solutions(N,Goal) :- 78 | findall(Goal, Goal, GList0), 79 | length(Solutions, N), 80 | append(Solutions,_,GList0), 81 | member(Goal, Solutions). 82 | 83 | nth_solution(N,Goal) :- 84 | findall(Goal, Goal, GList), 85 | nth(N,GList,Goal). 86 | 87 | population(stateid(X),Pop) :- 88 | state(X,_,_,Pop,_,_,_,_,_,_). 89 | population(cityid(X,St), Pop) :- 90 | city(_,St,X,Pop). 91 | 92 | len(riverid(R), L) :- 93 | river(R,L,_). 94 | 95 | elevation(placeid(P),E) :- highlow(_,_,_,_,P,E). % Rohit 96 | elevation(placeid(P),E) :- highlow(_,_,P,E,_,_). % Rohit 97 | %elevation(placeid(P),E) :- 98 | % ( highlow(_,_,P,E,_,_) 99 | % ; highlow(_,_,_,_,P,E) 100 | % ). 101 | 102 | size(stateid(X), S) :- 103 | area(stateid(X), S). 104 | size(cityid(X,St), S) :- 105 | population(cityid(X,St), S). 106 | size(riverid(X), S) :- 107 | len(riverid(X),S). 108 | size(placeid(X), S) :- 109 | elevation(placeid(X),S). 110 | size(X,X) :- 111 | number(X). 112 | 113 | next_to(stateid(X),stateid(Y)) :- 114 | border(X,_,Ys), 115 | member(Y,Ys). 116 | 117 | density(S,D) :- 118 | population(S,P), 119 | area(S,A), 120 | D is P / A. 121 | 122 | largest(Var, Goal) :- 123 | findall(Size-Goal, (Goal,size(Var,Size)), Pairs0), 124 | max_key(Pairs0, Goal). 125 | 126 | max_key([Key-Value|Rest],Result) :- 127 | max_key(Rest, Key, Value, Result). 128 | 129 | max_key([], _, Value, Value). 130 | max_key([K-V|T], Key, Value, Result):- 131 | ( K > Key -> 132 | max_key(T, K, V, Result) 133 | ; max_key(T, Key, Value, Result) 134 | ). 135 | 136 | smallest(Var, Goal) :- 137 | findall(Size-Goal, (Goal,size(Var,Size)), Pairs0), 138 | min_key(Pairs0, Goal). 139 | 140 | min_key([Key-Value|Rest],Result) :- 141 | min_key(Rest, Key, Value, Result). 142 | 143 | min_key([], _, Value, Value). 144 | min_key([K-V|T], Key, Value, Result):- 145 | ( K < Key -> 146 | min_key(T, K, V, Result) 147 | ; min_key(T, Key, Value, Result) 148 | ). 149 | 150 | count(V,Goal,N) :- 151 | findall(V,Goal,Ts), 152 | sort(Ts, Unique), 153 | length(Unique, N). 154 | 155 | at_least(Min,V,Goal) :- 156 | count(V,N,Goal), 157 | Goal, % This is a hack to instantiate N, making this order independent. 158 | N >= Min. 159 | 160 | at_most(Max,V,Goal) :- 161 | count(V,Goal,N), 162 | N =< Max. 163 | 164 | execute_query(Query, Unique):- 165 | tq(Query, answer(Var,Goal)), 166 | findall(Name, (Goal, print_name(Var,Name)), Answers), 167 | sort(Answers, Unique). 168 | %--------------------------------------------------------------------------- 169 | tq(G,G) :- 170 | var(G), !. 171 | tq(largest(V,Goal), largest(Vars, DVars, DV, DGoal)) :- 172 | !, 173 | variables_in(Goal, Vars), 174 | copy_term((Vars,V,Goal),(DVars,DV,Goal1)), 175 | tq(Goal1,DGoal). 176 | tq(smallest(V,Goal), smallest(Vars, DVars, DV, DGoal)) :- 177 | !, 178 | variables_in(Goal, Vars), 179 | copy_term((Vars,V,Goal),(DVars,DV,Goal1)), 180 | tq(Goal1,DGoal). 181 | tq(highest(V,Goal), highest(Vars, DVars, DV, DGoal)) :- 182 | !, 183 | variables_in(Goal, Vars), 184 | copy_term((Vars,V,Goal),(DVars,DV,Goal1)), 185 | tq(Goal1,DGoal). 186 | tq(most(I,V,Goal), most(Vars, DVars, DI, DV, DGoal)) :- 187 | !, 188 | variables_in(Goal, Vars), 189 | copy_term((Vars,I,V,Goal),(DVars,DI,DV,Goal1)), 190 | tq(Goal1,DGoal). 191 | tq(fewest(I,V,Goal), fewest(Vars, DVars, DI, DV, DGoal)) :- 192 | !, 193 | variables_in(Goal, Vars), 194 | copy_term((Vars,I,V,Goal),(DVars,DI,DV,Goal1)), 195 | tq(Goal1,DGoal). 196 | tq(Goal,TGoal) :- 197 | functor(Goal,F,N), 198 | functor(TGoal,F,N), 199 | tq_args(N,Goal,TGoal). 200 | 201 | tq_args(N,Goal,TGoal) :- 202 | ( N =:= 0 -> 203 | true 204 | ; arg(N,Goal,GArg), 205 | arg(N,TGoal,TArg), 206 | tq(GArg,TArg), 207 | N1 is N - 1, 208 | tq_args(N1,Goal,TGoal) 209 | ). 210 | 211 | variables_in(A, Vs) :- variables_in(A, [], Vs). 212 | 213 | variables_in(A, V0, V) :- 214 | var(A), !, add_var(V0, A, V). 215 | variables_in(A, V0, V) :- 216 | ground(A), !, V = V0. 217 | variables_in(Term, V0, V) :- 218 | functor(Term, _, N), 219 | variables_in_args(N, Term, V0, V). 220 | 221 | variables_in_args(N, Term, V0, V) :- 222 | ( N =:= 0 -> 223 | V = V0 224 | ; arg(N, Term, Arg), 225 | variables_in(Arg, V0, V1), 226 | N1 is N-1, 227 | variables_in_args(N1, Term, V1, V) 228 | ). 229 | 230 | add_var(Vs0, V, Vs) :- 231 | ( contains_var(V, Vs0) -> 232 | Vs = Vs0 233 | ; Vs = [V|Vs0] 234 | ). 235 | 236 | 237 | contains_var(Variable, Term) :- 238 | \+ free_of_var(Variable, Term). 239 | 240 | % free_of_var(+Variable, +Term) 241 | % is true when the given Term contains no sub-term identical to the 242 | % given Variable (which may actually be any term, not just a var). 243 | % For variables, this is precisely the "occurs check" which is 244 | % needed for sound unification. 245 | 246 | free_of_var(Variable, Term) :- 247 | Term == Variable, 248 | !, 249 | fail. 250 | free_of_var(Variable, Term) :- 251 | compound(Term), 252 | !, 253 | functor(Term, _, Arity), 254 | free_of_var(Arity, Term, Variable). 255 | free_of_var(_, _). 256 | 257 | free_of_var(1, Term, Variable) :- !, 258 | arg(1, Term, Argument), 259 | free_of_var(Variable, Argument). 260 | free_of_var(N, Term, Variable) :- 261 | arg(N, Term, Argument), 262 | free_of_var(Variable, Argument), 263 | M is N-1, !, 264 | free_of_var(M, Term, Variable). 265 | 266 | %--------------------------------------------------------------------------- 267 | /* 268 | execute_query(answer(Var, Goal), Unique) :- 269 | findall(Name,(Goal,print_name(Var,Name)),Answers), 270 | sort(Answers,Unique). 271 | */ 272 | answer(Var, Goal) :- 273 | nl,nl, 274 | findall(Name,(Goal,print_name(Var,Name)),Answers), 275 | sort(Answers,Unique), 276 | format('Answer = ~w~n',[Unique]). 277 | 278 | sum(V, Goal, X) :- 279 | findall(V, Goal, Vs), 280 | sumlist(Vs, 0, X). 281 | 282 | highest(Vars, DVars, DV, Goal) :- 283 | highest(DV, Goal), !, 284 | Vars = DVars. 285 | 286 | highest(X, Goal) :- 287 | largest(Y, (Goal, elevation(X,Y))). 288 | /*CAT. bug 289 | lowest(X,Goal) :- 290 | largest(Y, (Goal, elevation(X,Y))). 291 | */ 292 | lowest(X,Goal) :- 293 | smallest(Y, (Goal, elevation(X,Y))). 294 | 295 | shortest(X,Goal) :- 296 | smallest(Y, (Goal, len(X,Y))). 297 | 298 | longest(X,Goal) :- 299 | largest(Y, (Goal, len(X,Y))). 300 | 301 | 302 | higher(X,Y) :- 303 | elevation(X,EX), 304 | elevation(Y,EY), 305 | EX > EY. 306 | 307 | %--------------------------------- 308 | %CAT added 309 | lower(X, Y) :- 310 | elevation(X,EX), 311 | elevation(Y,EY), 312 | EX < EY. 313 | 314 | longer(X, Y) :- 315 | len(X,LX), 316 | len(Y, LY), 317 | LX > LY. 318 | 319 | shorter(X, Y) :- 320 | len(X,LX), 321 | len(Y, LY), 322 | LX < LY. 323 | 324 | more(X, Y) :- 325 | X > Y. 326 | %--------------------------------- 327 | 328 | divide(X,Y, X/Y). 329 | multiply(X,Y,X*Y). 330 | add(X,Y,X+Y). 331 | %subtract(X,Y,X-Y). 332 | 333 | sumlist([], Sum, Sum). 334 | sumlist([V|Vs], Sum0, Sum) :- 335 | Sum1 is Sum0 + V, 336 | sumlist(Vs, Sum1, Sum). 337 | 338 | const(V, V). 339 | 340 | largest(Vars, DVars, DV, DGoal) :- 341 | largest(DV, DGoal),!, 342 | Vars = DVars. 343 | 344 | smallest(Vars, DVars, DV, DGoal) :- 345 | smallest(DV, DGoal),!, 346 | Vars = DVars. 347 | 348 | most(Vars, DVars, DI, DV, DGoal) :- 349 | most(DI, DV, DGoal),!, 350 | Vars = DVars. 351 | 352 | fewest(Vars, DVars, DI, DV, DGoal) :- 353 | fewest(DI, DV, DGoal),!, 354 | Vars = DVars. 355 | 356 | most(Index,Var,Goal) :- 357 | setof(Index-Var, Goal, Solutions), 358 | keysort(Solutions, Collect), 359 | maximum_run(Collect, Index). 360 | 361 | maximum_run(Solutions, Index) :- 362 | maximum_run(Solutions, foo, 0, Index). 363 | 364 | maximum_run([], Index, _Count, Index) :- !. 365 | maximum_run([Index1-_|Rest], BestIndex0, Count0, BestIndex) :- 366 | first_run(Rest, Index1, 1, Count1, Rest1), 367 | ( Count1 > Count0 -> 368 | BestIndex2 = Index1, 369 | Count2 = Count1 370 | ; BestIndex2 = BestIndex0, 371 | Count2 = Count0 372 | ), 373 | maximum_run(Rest1, BestIndex2, Count2, BestIndex). 374 | 375 | first_run([], _Index, N, N, []). 376 | first_run([Index-G|Rest0], Target, N0, N, Rest) :- 377 | ( Target = Index -> 378 | N1 is N0 + 1, 379 | first_run(Rest0, Target, N1, N, Rest) 380 | ; N = N0, 381 | Rest = [Index-G|Rest0] 382 | ). 383 | 384 | fewest(Index,Var,Goal) :- 385 | setof(Index-Var, Goal, Solutions), 386 | keysort(Solutions, Collect), 387 | minimum_run(Collect, Index). 388 | 389 | minimum_run(Solutions, Index) :- 390 | minimum_run(Solutions, foo, 1000, Index). 391 | 392 | minimum_run([], Index, _Count, Index) :- !. 393 | minimum_run([Index1-_|Rest], BestIndex0, Count0, BestIndex) :- 394 | first_run(Rest, Index1, 1, Count1, Rest1), 395 | ( Count1 < Count0 -> 396 | BestIndex2 = Index1, 397 | Count2 = Count1 398 | ; BestIndex2 = BestIndex0, 399 | Count2 = Count0 400 | ), 401 | minimum_run(Rest1, BestIndex2, Count2, BestIndex). 402 | 403 | 404 | -------------------------------------------------------------------------------- /data/free917/free917v2.test.tok.en: -------------------------------------------------------------------------------- 1 | how many tv programs did danny devito produce 2 | how many countries are in south america 3 | what product lines does ipod include 4 | when was starry night painted 5 | when was interstate 579 formed 6 | what area did the meiji constitution govern 7 | who is the lyricist for spamalot 8 | what is yahoo ! ' s slogan 9 | what is the population of belgium 10 | who is the founder of savealot 11 | what library system is the sunset branch library in 12 | where was the 3 juno asteroid discovered 13 | what is the population of europe 14 | what weight class was the fight of the century 15 | who designed pac-man 16 | when was the order of saint michael founded 17 | what is the collection of postcards called 18 | what year was ron glass an award nominee 19 | what 's the horsepower of an alluminum-alloy v6 engine 20 | when was the iphone introduced 21 | in what martial art does christopher adams have a black belt 22 | who was the librettist for the magic flute 23 | what episode of snl did ben stiller host 24 | who created the philosopher _ s stone 25 | how many organizations are in the automobile industry 26 | what was procter & gamble 's net profit in 1955 27 | what is currency code for uk currency 28 | how big is the screen on a nikon coolpix s50 29 | how many speeches did winston churchill give 30 | how many religions use the bible 31 | what is the capital of iceland 32 | what public transportation is there in tokyo 33 | what is europe ' s area 34 | how many players are in the current roster of the new york mets 35 | what are the treatments of prostate cancer 36 | where was the peseta used as currency 37 | what is the currency code for the spanish peseta 38 | how many awards did big daddy win 39 | what bridges go over the san francisco bay 40 | how many notable people died by poisoning 41 | what parks are in the canadian national parks system 42 | who instructed steven seagal 43 | when did the last episode of six feet under air 44 | how many major events happened in australia 45 | how many religions believe in reincarnation 46 | what other titles does 13 going on 30 have 47 | how many writing systems are used in japanese 48 | who is the ceo of savealot 49 | what starts are in ursa minor 50 | how many conferences have been held at the los angeles convention center 51 | what are some mountain bike models 52 | how many films has julie andrews been in 53 | who designed the costumes for alice in wonderland 54 | what mountain range is king edward peak in 55 | what are some hotels in vancouver 56 | what year were the ny yankees founded 57 | how many national parks does the national wildlife refuge have 58 | how many actors use their middle name or initial 59 | where is fry _ s turkish delight sold 60 | who invented koolaid 61 | how many countries use the spanish peseta 62 | when was the pencarrow head lighthouse first lit 63 | what titles does the world boxing association have 64 | how many species does the san francisco zoo have 65 | what round did thrilla in manila end 66 | what is pycon about 67 | how many works have been lost due to theft 68 | what armed forces does thailand have 69 | what martial arts does chris maden practice 70 | what year did sgt. pepper 's lonely hearts club band win a grammy 71 | how many islands are there in lake superior 72 | how many countries is spanish spoken in 73 | when was the ss great britain established as a museum 74 | what type of rock is the marcellus formation 75 | when was 300 released 76 | how many wins did the philadelphia eagles have in the 2008 nfl season 77 | when was barbie launched 78 | how many libretti did wagner write 79 | what is bruce almighty rated 80 | where was lady washington built 81 | how many domains are in the science & technology category 82 | what is the building function of the eiffel tower 83 | how many children does danny devito have 84 | how many different industries are there in home depot 85 | at what school was delta delta delta founded 86 | in what season of stargate sg-1 is the episode show and tell 87 | who started starbucks 88 | who is the captain of the edmonton oilers 89 | who are the founders of home depot 90 | what are the celtic languages 91 | what is the state flower of alaska 92 | what are the theme areas at disneyland 93 | what production is the sopranos currently in 94 | where does the chow chow originate 95 | what position did mike schmidt play 96 | what breed group is a shar pei in the american kennel club 97 | where was polonium discovered 98 | how many episodes of taylor made piano were there 99 | what record label was ali farka toure signed to 100 | what team does richard hamilton play for 101 | what is africa ' s population 102 | what are the isotopes of zinc 103 | who published the amazing spider-man 104 | how thick is the aletsch glacier 105 | when was the release date for titanic 106 | what are some research only cancer centers 107 | what is the theme song of full house 108 | how was pluto discovered 109 | what versions of mac os x is mozilla firefox compatible with 110 | how many seasons of seinfeld are there 111 | in 1982 who were the primetieme emmy award for comedy series nominees 112 | what company owns nutter butter 113 | when was facebook launched 114 | what position does cristiano ronaldo play 115 | how many games has hasbro published 116 | what universe is the lord of the rings set in 117 | how many teams participated in the 1979 cricket world cup 118 | what year was the album decade released 119 | how many operating systems is adobe flash compatible with 120 | what is the population estimated in the world 121 | how many tennis events are there at the olympics 122 | how many rna codons does glycine have 123 | who was charlie _ s angels produced by 124 | who completed mozart _ s requiem 125 | how many teams did joe torre manage 126 | how many cricket bowlers use fast bowling 127 | who designed the giant dipper 128 | what characters are in super mario bros 129 | what was john f kennedy ' s cause of death 130 | what is the genre of the skeptics ' guide to the universe 131 | how many employees does nintendo have 132 | how many types of cumulus clouds are there 133 | how many other names is ron glass known by 134 | what number is ryan callahan on the new york rangers 135 | what are the christian holidays 136 | who directed charlie _ s angels 137 | what was jack albertson ' s cause of death 138 | when was the printing press invented 139 | what are the neighborhoods in new york city 140 | how many people practice karate 141 | what is the area of south america 142 | how many sites are on the national register of historic places 143 | what football team does andy reid currently coach 144 | how many protected sites does the u.s. national park service govern 145 | what island group is jekyll island a part of 146 | how many children does jerry seinfeld have 147 | what type of organism was lucy a fossil of 148 | how many people ride the london underground daily 149 | in what disaster was old st paul _ s cathedral destroyed 150 | what instruments did omarion play 151 | what are the books in the chronicles of narnia series 152 | what characters are featured in batman : the dark knight returns 153 | what was henry viii 's royal line 154 | what was the cost of building the magnum xl-200 155 | how many cow 's milk cheeses are there 156 | did the big bang exhibit at the science museum cost money 157 | what movie did danny devito win an award for in 1981 158 | who coaches the australian cricket team 159 | what are the texts of taoism 160 | who was 8 mile directed by 161 | how many tv did jerry seinfeld have a starring role in 162 | when was walmart founded 163 | who used to be quarterback for the green bay packers 164 | how many teams are in the atlantic division of the eastern conference 165 | how many radio programs about science are there 166 | when was the latest release of microsoft word 167 | what architectural style is the brooklyn bridge 168 | how many tv channels does nbc own 169 | how many turbojet engines are there 170 | how many inversions does the mind eraser have 171 | when was 13 going on 30 released 172 | when did john j. raskob own the empire state building 173 | what was the date of the first sesame street episode aired 174 | who created the far side 175 | what conditions have symptoms including headache 176 | what games has macsoft games developed 177 | are lithium batteries rechargable 178 | how many people died of a skiing accident 179 | what decision did manny pacquiao vs. timothy bradley end with 180 | what spirits are produced in kentucky 181 | when was home depot founded 182 | when did japan end as a musical group 183 | what animal does mascarpone cheese come from 184 | who was titanic directed by 185 | what matches have had the wbc world champion title at stake 186 | how many people played in the 2010 fifa world cup final 187 | how many celebrities have abused cocaine 188 | what are the lines of the new york city subway 189 | when was oxygen discovered 190 | when did easy aces stop being produced 191 | what team does mike babcock coach 192 | how many engineers worked on the design and construction of the plymouth breakwater 193 | when was the sony nex-5 released 194 | when was letter from america last broadcast 195 | in what zoo was knut kept 196 | what is the highest drop on stealth 197 | how many films has tim burton produced 198 | did jack dempsey win the long count fight 199 | who were the key designers of the macintosh 200 | how many people have won the nobel peace prize 201 | where was omarion born 202 | what tourist attractions are in rome 203 | what are the major exports of madagascar 204 | when was the construction of new steubenville bridge finished 205 | how many other names are there for jcpenney 206 | what language family is afrikaans part of 207 | what percentage of the grapes in a 1966 chateau latour grand vin are merlot 208 | how many historical events happened in south america 209 | what meteor showers has the comet halley spawned 210 | when was pride and prejudice published 211 | who manufactured millennium force 212 | what characters were on the cover of batman # 1 213 | what sort of weave is used to make tweed 214 | on how many projects was james walker a design engineer 215 | how many awards did the movie 8 mile win 216 | how many people practice buddhism 217 | how much did the construction of the taj mahal cost 218 | what are some object-oriented programming languages 219 | who were the curators for renoir in the 20th century 220 | for what country did bernard lagat play in the 2000 summer olympics 221 | what titles were at stake in the the rumble in the jungle 222 | what games has electronic arts developed 223 | how many stores are in nittany mall 224 | when was nutty professor released 225 | what is the nutty professor rated 226 | how many film performances did jack albertson do 227 | what musicians have died of lung cancer 228 | what type of bridge is the manhattan bridge 229 | what sport did scott anderson play in the 1992 summer olympics 230 | who designed the parthenon 231 | how many monarchs are from the house of tutor 232 | what german athletes have participated in the olympics 233 | what teams did babe ruth play for 234 | in what events did ian thorpe compete in the 2004 summer olympics 235 | what is the wingspan of an eclipse 500 236 | who sponsors the hoby seminars 237 | who founded the order of the dragon 238 | who produced sabotage by the beastie boys 239 | how many runs does the thunder ridge ski area have 240 | how many people died in hurricane wilma 241 | who discovered the rings of saturn 242 | what is the lcd screen resolution of a nikon d80 243 | when was the san diego zoo opened 244 | how heavy is a panasonic lumix dmc-tz3 245 | where was liam gallagher born 246 | how many beers come a can 247 | what is the subject of the atlantic monthly 248 | what was the american past about 249 | who destroyed the one ring 250 | how many students are there at the university of iceland 251 | who founded the red cross 252 | how many radio stations does cbs radio own 253 | what is ashok malhotra 's bowling pace 254 | how long is wired _ s gadget lab podcast 255 | how many politicians have served in the us navy 256 | what causes bipolar disorder 257 | what causes syphilis 258 | who said that _ s one small step for man , one giant leap for mankind 259 | what bicycle models does raleigh manufacture 260 | what play was west side story adapted from 261 | what team does alan butcher coach 262 | how many speeches have been given about world war ii 263 | who is the newscaster on abc 6 news 264 | who is the present newscaster on cbs evening news 265 | -------------------------------------------------------------------------------- /data/free917/free917v2.test.tok.de: -------------------------------------------------------------------------------- 1 | wie viele fernsehprogramme produzierte danny devito 2 | wie viele länder gibt es in südamerika 3 | welche produktlinie beinhaltet der ipod 4 | wann wurde die sternennacht gemalt 5 | wann wurde die bundesstraße 579 gebaut 6 | welches gebiet regierte die meiji verfassung 7 | wer ist der texter von spamalot 8 | was ist das motto von yahoo ! 9 | wie groß ist die bevölkerung von belgien 10 | wer ist der gründer von savealot 11 | in welchem bibliothekssystem ist die sunset branch library 12 | wo wurde der 3 juno asteroid entdeckt 13 | was ist die bevölkerungszahl europas 14 | welche gewichtsklasse galt beim fight of the century 15 | wer entwickelte pac-man 16 | wann wurde der orden von sankt michael gegründet 17 | wie nennt man das sammeln von postkarten 18 | in welchem jahr war ron glass ein kandidat für eine auszeichnung 19 | was ist die pferdestärke eines v6 motors mit aluminiumlegierung 20 | wann wurde das iphone vorgestellt 21 | in welcher kampfsportart hat christopher adams einen schwarzen gürtel 22 | wer war der textdichter der zauberflöte 23 | welche episode von snl moderierte ben stiller 24 | wer erschuf den stein der weisen 25 | wie viele organisationen sind in der automobilindustrie 26 | was war der reingewinn von procter & gambles im jahr 1955 27 | was ist das währungssymbol der britischen währung 28 | wie groß ist der bildschirm einer nikon coolpix s50 29 | wie viele reden hielt winston churchill 30 | wie viele religionen benutzen die bibel 31 | wie heißt die hauptstadt von island 32 | welche öffentliche verkehrsmittel gibt es in tokyo 33 | was ist die gesamtfläche europas 34 | wie viele spieler sind im momentanen kader der new york mets 35 | was sind die behandlungsmöglichkeiten für prostatakrebs 36 | wo wurde die peseta als währung genutzt 37 | was ist das währungssymbol der spanischen peseta 38 | wie viele auszeichnungen gewann big daddy 39 | welche brücken führen über die san francisco bay 40 | wie viele bekannte persönlichkeit starben an vergiftung 41 | welche parks sind im kanadischen nationalparksystem 42 | wer lehrte steven seagal 43 | wann wurde die letzte folge von six feet under ausgestrahlt 44 | wie viele großereignisse geschahen in australien 45 | wie viele religionen glauben an die wiedergeburt 46 | welche anderen namen hat 30 übernacht 47 | wie viele zeichensystem sind in japan in gebrauch 48 | wer ist der vorstandsvorsitzender von savealot 49 | welche sterne sind im kleinen wagen 50 | wie viele konferenzen fanden im los angeles convention center statt 51 | wie heißen einige mountain bike modelle 52 | in wie vielen filmen trat julie andrews auf 53 | wer entwarf die kostüme für alice im wunderland 54 | zu welcher bergkette gehört die king edward spitze 55 | was sind einige hotels in vancouver 56 | in welchem jahr wurden die ny yankees gegründet 57 | wie viele nationalparks gehören zu dem national wildlife refuge 58 | wie viele schauspieler benutzen ihren zweitnamen oder dessen initial 59 | wo wird turkish delight von fry verkauft 60 | wer erfand koolaid 61 | wie viele länder benutzen die spanische peseta 62 | wann wurde der pencarrow head leuchtturm in betrieb genommen 63 | welche titel hat die world boxing association 64 | wie viele tierarten hat der zoo von san francisco 65 | in welcher runde endete der thrilla in manila 66 | um was geht es bei pycon 67 | wie viele werke gingen wegen diebstahls verloren 68 | was für bewaffnete streitkräfte hat thailand 69 | welchen kampfsport übt chris maden aus 70 | in welchem jahr gewann sgt. pepper ' s lonely hearts club einen grammy 71 | wie viele inseln gibt es im oberen see 72 | in wie vielen ländern wird spanisch gesprochen 73 | wann wurde die ss great britain als museum eröffnet 74 | was für eine art von gestein ist die marcellus formation 75 | wann wurde 300 veröffentlicht 76 | wie viele siege hatten die philadelphia eagles in der nfl saison 2008 77 | wann wurde barbie herausgebracht 78 | wie viele libretti schrieb wagner 79 | was ist die altersfreigabe von bruce almighty 80 | wann wurde die lady washington erbaut 81 | wie viele domänen sind in der science & technology kategorie 82 | was ist die gebäudefunktion des eiffelturms 83 | wie viele kinder hat danny devito 84 | wie viele verschiedene industrien gibt es im home depot 85 | an welcher schule wurde delta delta delta gegründet 86 | in welcher staffel von stargate sg-1 ist die folge neue feinde 87 | wer gründete starbucks 88 | wer ist der kapitän der edmonton oilers 89 | wer sind die gründer von home depot 90 | was sind keltische sprachen 91 | was ist die staatsblume von alaska 92 | was sind die themengebiete im disneyland 93 | in welcher produktion ist momentan sopranos 94 | woher stammt der chow chow 95 | auf welcher position spielte mike schmidt 96 | zu welcher rassengruppe gehört ein shar pei im american kennel club 97 | wo wurde polonium entdeckt 98 | wie viele folgen von taylor made piano gab es 99 | bei welcher plattenfirma war ali farka toure unter vertrag 100 | für welche mannschaft spielt richard hamilton 101 | was ist die bevölkerung afrikas 102 | was sind die isotope von zink 103 | wer publizierte the amazing spider-man 104 | wie dick ist der aletschgletscher 105 | wann war das veröffentlichungsdatum für titanik 106 | wie heißen einige rein forschungsorientierte krebszentren 107 | wie heißt die titelmelodie von full house 108 | wie wurde der pluto entdeckt 109 | mit welchen versionen des mac os x ist mozilla firefox kompatibel 110 | wie viele staffeln von seinfeld gibt es 111 | wer war 1982 für den primetime emmy award für komödie nominiert 112 | welche firma besitzt nutter butter 113 | wann wurde facebook ins leben gerufen 114 | auf welcher position spiel cristiano ronaldo 115 | wie viele spiele hat hasbro herausgegeben 116 | in welcher welt spielt herr der ringe 117 | wie viele mannschaften nahmen an der cricket weltmeisterschaft 1979 teil 118 | in welchem jahr wurde das album decade veröffentlicht 119 | mit wie vielen betriebssystemen ist adobe flash kompatibel 120 | was hoch wird die weltbevölkerung geschätzt 121 | wie viele tennis ereignisse gibt es bei den olympischen spielen 122 | wie viele rna kodone hat glycin 123 | von wem wurde drei engel für charlie produziert 124 | wer vervollständigte mozarts requiem 125 | wie viele mannschaften leitete joe torre 126 | wie viele cricket bowler benutzen fast bowling 127 | wer entwarf die giant dipper 128 | welche charaktere gibt es bei super mario bros 129 | was war die todesursache von john f kennedy 130 | welchem genre gehört the skeptics ' guide to the universe an 131 | wie viele mitarbeiter hat nintendo 132 | wie viele arten von cumulus wolken gibt es 133 | unter wie vielen anderen namen kennt man ron glass 134 | welche nummer hat ryan callahan bei den new york rangers 135 | welches sind die christlichen feiertage 136 | wer führte bei drei engel für charlie regie 137 | woran starb jack albertson 138 | wann wurde die buchdruckmaschine erfunden 139 | wie heißen die stadtteile von new york city 140 | wie viele leute betreiben karate 141 | was ist die fläche von südamerika 142 | wie viele orte sind beim national register of historic places verzeichnet 143 | welche fußballmannschaft trainiert andy reid zur zeit 144 | wie viele gebiete werden vom u.s. national park service verwaltet 145 | zu welcher inselgruppe gehört die jekyll insel 146 | wie viele kinder hat jerry seinfeld 147 | welche art von organismus war das fossil von lucy 148 | wie viele leute nutzen die londoner u-bahn täglich 149 | in welcher katastrophe wurde die alte kathedrale st pauls zerstört 150 | welches instrument spielte omarion 151 | wie heißen die bücher in der serie die chroniken von narnia 152 | welche charaktere treten in batman : the dark knight returns auf 153 | was war das fürstenhaus von henry viii 154 | was kostete es eine magnum xl-200 herzustellen 155 | wie viele kuhmilch käsesorten gibt es 156 | kostete die big bang ausstellung im science museum geld 157 | für was gewann danny devito 1981 eine auszeichnung 158 | wer trainiert das australische cricket team 159 | was sind die schriften des daoismus 160 | wer führte bei 8 mile regie 161 | in wie vielen fernsehfilmen hatte jerry seinfeld eine hauptrolle 162 | wann wurde walmart gegründet 163 | wer war der quarterback für die green bay packers 164 | wie viele mannschaften spielen in der atlantic division der eastern conference 165 | wie viele radioprogramme über wissenschaft gibt es 166 | wann kam die letzte version von microsoft word raus 167 | welchem baustil ist die brooklyn bridge zuzuschreiben 168 | wie viele fernsehkanäle besitzt nbc 169 | wie viele turbojet motoren gibt es 170 | wie viele inversionen hat die mind eraser 171 | wann wurde 30 übernacht veröffentlicht 172 | wann war john j. raskob besitzer des empire state buildings 173 | an welchem datum wurde die erste folge der sesamstraße ausgestrahlt 174 | wer entwarf the far side 175 | welche krankheiten haben kopfschmerzen als symptom 176 | welche spiele hat macsoft games entwickelt 177 | kann man lithium batterien aufladen 178 | wie viele personen starben durch einen skiunfall 179 | wer gewann bei manny pacquiao vs. timothy bradley 180 | welche spirituosen werden in kentucky hergestellt 181 | wann wurde home depot gegründet 182 | wann löste sich die band japan auf 183 | auf basis welchen tieres wird mascarpone hergestellt 184 | wer führte bei titanik regie 185 | bei welchen aufeinandertreffen stand der wbc weltmeistertitel auf dem spiel 186 | wie viele personen spielten beim fifa weltmeisterschaftsfinale 2010 187 | wie viele berühmtheiten haben kokain genommen 188 | was sind die linien der u-bahn in new york city 189 | wann wurde sauerstoff entdeckt 190 | wann wurde easy aces eingestellt 191 | welche mannschaft trainiert mike babcock 192 | wie viele ingenieure arbeiteten am entwurf und an der konstruktion der plymouth breakwater 193 | wann wurde die sony nex-5 veröffentlicht 194 | wann wurde letter from america das letzte mal ausgestrahlt 195 | in welchem zoo lebte knut 196 | was ist der höchste fall bei stealth 197 | wie viele filme produzierte tim burton 198 | gewann jack dempsey den long count fight 199 | wer waren die hauptentwickler von macintosh 200 | wie viele menschen haben den friedensnobelpreis gewonnen 201 | wo wurde omarion geboren 202 | was sind touristenattraktionen in rom 203 | was sind die hauptexporte madagaskars 204 | wann war der bau der neuen steubenville brücke zu ende 205 | wie viele andere namen gibt es für jcpenney 206 | zu welcher sprachfamilie gehört afrikaans 207 | wie viel prozent trauben sind in einem 1966er chateau latour grand vin merlot 208 | wie viele historische ereignisse geschahen in südamerika 209 | welchen meteorschauer verursachte der komet halley 210 | wann wurde stolz und vorurteil veröffentlicht 211 | wer stellte die millenium force her 212 | welche charaktere waren auf der titelseite vom ersten batman 213 | welches gewebe wird benutzt um tweed herzustellen 214 | bei wie vielen projekten war james walker ein konstruktionsingenieur 215 | wie viele auszeichnungen gewann der film 8 mile 216 | wie viele menschen gehören dem buddhismus an 217 | wie viel kostete der bau des taj mahal 218 | wie heißen einige objektorientierten programmiersprachen 219 | wer waren die kuratoren für renoir im 20. jahrhundert 220 | für welches land spielte bernard lagat in den olympischen sommerspielen 2008 221 | um welchen titel ging es bei dem the rumble in the jungle 222 | welche spiele hat electronic arts entwickelt 223 | wie viele geschäfte gibt es im nittany einkaufszentrum 224 | wann wurde der verrückte professor herausgebracht 225 | was ist die altersfreigabe von der verrückte professor 226 | wie viele filmauftritte hatte jack albertson 227 | welche musiker starben an lungenkrebs 228 | was für eine art von brücke ist die manhattan brücke 229 | welche sportart spielte scott anderson bei den olympischen sommerspielen 1992 230 | wer entwarf das parthenon 231 | wie viele monarchen gehören zu dem haus tutor 232 | welche deutschen athleten haben bei den olympischen spielen teilgenommen 233 | für welche mannschaften spielte babe ruth 234 | bei welchen wettkämpfen nahm ian thorpe bei den olympischen sommerspielen 2004 teil 235 | was ist die flügelspanne einer eclipse 500 236 | wer sponsort die hoby seminare 237 | wer gründete den drachenorden 238 | wer produzierte sabotage von den beastie boys 239 | wie viele pisten hat das thunder ridge skigebiet 240 | wie viele menschen kamen bei dem hurrikan wilma ums leben 241 | wer entdeckte die ringe des saturns 242 | was ist die lcd bildschirmauflösung einer nikon d80 243 | wann wurde der zoo san diegos geöffnet 244 | wie schwer ist eine panasonic lumix dmc-tz3 245 | wo wurde liam gallagher geboren 246 | wie viele biere werden in einer dose vermarktet 247 | was ist das thema des atlantic monthly 248 | um was ging es bei the american past 249 | wer zerstörte den einen ring 250 | wie viele studenten gibt es an der universität island 251 | wer gründete das rote kreuz 252 | wie viele radiosender besitzt das cbs 253 | welche bowling art benutzt ashok malhotra 254 | wie lange dauert der gadget lab podcast von wired 255 | wie viele politiker haben der kriegsmarine der vereinigten staaten von amerika gedient 256 | was verursacht die bipolare affektive störung 257 | was verursacht syphilis 258 | wer sagte das ist ein kleiner schritt für den menschen , ein riesiger sprung für die menschheit 259 | was für fahrradmodelle stellt raleigh her 260 | auf welchem stück basiert die west side story 261 | welche mannschaft trainiert alan butcher 262 | wie viele reden wurden über den zweiten weltkrieg gehalten 263 | wer ist der nachrichtensprecher bei abc 6 news 264 | wer ist der momentane nachrichtensprecher bei den abendnachrichten auf cbs 265 | -------------------------------------------------------------------------------- /data/geoquery/geoquery.de: -------------------------------------------------------------------------------- 1 | nenne alle flüsse in colorado 2 | zähle die staaten , welche erhebungen haben , die niedriger liegen als jene in alabama 3 | nenne mir die anzahl der flüsse in california 4 | nenne mir die staaten , welche an utah grenzen 5 | wie hoch ist mount mckinley 6 | wie hoch liegt der höchste punkt in amerika 7 | wie hoch liegt der höchste punkt in alabama 8 | wie groß ist alaska 9 | wie groß ist texas 10 | wie lang ist der colorado fluss 11 | wie lang ist der delaware river 12 | wie lang ist der längste fluss kaliforniens 13 | wie lange ist der längste fluss der usa 14 | wie lang ist der north platte fluss 15 | wie lang ist der fluss ohio 16 | wie viele große städte gibt es in rhode island 17 | wie viele städte gibt es in den usa 18 | wie viele einwohner hat die größte stadt in den usa 19 | wie viele flüsse mit dem namen colorado gibt es 20 | wie viele menschen leben in detroit 21 | wie viele menschen leben in houston 22 | wie viele leute leben in minneapolis minnesota 23 | wie viele leute leben in mississippi 24 | wie viele leute leben in rhode island 25 | wie viele menschen leben in der größten stadt von new york state 26 | wie viele leute leben in der hauptstadt von texas 27 | wie viele menschen leben in den usa 28 | wie viele leute leben in austin 29 | wie viele menschen leben in utah 30 | wie viele einwohner leben in texas 31 | wie viele flüsse gibt es in iowa 32 | wie viele flüsse gibt es im staat mit den meisten flüssen 33 | wie viele flüsse gibt es in colorado 34 | wie viele staaten gibt es in den usa 35 | wie viele staaten gibt es 36 | wie viele staaten hat die usa 37 | nenne die anzahl der staaten , welche an iowa grenzen 38 | wie viele staaten grenzen an den staat mit der größten bevölkerung 39 | wie viele staaten haben keine flüsse 40 | an wie viele staaten grenzt tennessee 41 | wie viele staaten sind in den vereinigten staaten 42 | wie viele staaten haben einen höher gelegenen punkt als der höchstgelegene punkt des staates mit der größten hauptstadt in den usa 43 | wie viele leute wohnen in texas 44 | wie hoch ist mount mckinley 45 | wie hoch ist der höchste punkt in montana 46 | an wie viele staaten grenzt iowa 47 | nenne die wichtigsten flüsse in florida 48 | wie viele leute in boulder 49 | wie viele staaten grenzen an iowa 50 | wie viele flüsse verlaufen durch new york 51 | in welchem staat liegt san antonio 52 | nenne mir die städte in texas 53 | durch welche staaten fließt der längste fluss in texas 54 | welche flüsse gibt es in texas 55 | was ist die hauptstadt des staates texas 56 | wie lauten die hauptstädte der staaten , welche an missouri grenzen 57 | wie lauten die städte in den staaten , durch welche der mississippi fluss verläuft 58 | welches sind die städte des staates mit der höchsten erhebung 59 | wie lauten die höchsten punkte aller staaten 60 | welches sind die großen städte in alabama 61 | wie lauten die wichtigsten städte in alaska 62 | welches sind große städte in new york 63 | welches sind große städte in den staaten , durch die der mississippi fließt 64 | wie lauten die wichtigsten städte in california 65 | wie lauten die wichtigen städte der usa 66 | welches sind große städte in vermont 67 | wie lauten die wichtigsten flüsse in ohio 68 | welches sind die bevölkerungsdichten der us staaten 69 | welches ist die einwohnerzahl von mississippi 70 | wie hoch ist die bevölkerung der staaten , durch welche der mississippi fluss verläuft 71 | was sind die bevölkerungen der staaten durch die der mississippi fluss fließt 72 | wie groß sind die bevölkerungen der staaten , welche an texas grenzen 73 | welches sind die einwohnerzahlen der großen städte in texas 74 | welches sind die flüsse in alaska 75 | welche stadt hat die meisten leute 76 | welche us stadt hat die höchste bevölkerungsdichte 77 | welches ist die hauptstadt des staates mit dem tiefstgelegenen punkt 78 | wie groß ist die fläche von florida 79 | was ist die flächenausdehnung von ohio 80 | was ist die fläche des staates texas 81 | was ist die fläche von wisconsin 82 | wie lautet die größte amerikanische stadt in einem staat mit einem fluss 83 | welches ist die größte hauptstadt in den usa 84 | wie lautet die größte stadt von kansas 85 | welches ist die größte stadt in louisiana 86 | wie lautet die hauptstadt von california 87 | welches ist die hauptstadt von colorado 88 | wie lautet die hauptstadt von illinois 89 | welches ist die hauptstadt von iowa 90 | wie lautet die hauptstadt von massachusetts 91 | wie lautet die hauptstadt von new jersey 92 | welches ist die hauptstadt von new york 93 | wie lautet die hauptstadt von north dakota 94 | wie lautet die hauptstadt von ohio 95 | wie lauten die hauptstädte der staaten , welche städte mit dem namen durham haben 96 | wie lautet die hauptstadt von florida state 97 | welches ist die hauptstadt des kleinsten staates 98 | wie lautet die hauptstadt des staat mit den meisten einwohnern 99 | wie lautet die hauptstadt des staat mit der größten bevölkerungsdichte 100 | welches ist die hauptstadt des staates mit dem längsten fluss 101 | wie lautet die hauptstadt des staates mit der größten bevölkerung 102 | wie groß ist die gesamtfläche aller staaten 103 | was ist die dichte von new york 104 | wie lautet der höchste punkt in wyoming 105 | was ist der höchste punkt in texas 106 | wie lautet die höchste erhebung in den vereinigten staaten 107 | welches ist der höchste berg der vereinigten staaten 108 | welches ist der höchste berg in den usa 109 | welches ist der höchste punkt von delaware 110 | wie lautet der höchste punkt in iowa 111 | welches ist der höchstgelegene punkt in maine 112 | wie lautet der höchste punkt in montana 113 | welches ist der höchstgelegene punkt in nevada gemessen in metern 114 | welches ist der höchste punkt der an georgia grenzenden staaten 115 | wie lautet der höchste punkt in dem staat mit der hauptstadt austin 116 | wie lautet der höchste punkt in den staaten , welche an colorado grenzen 117 | wie lautet der höchste punkt in den usa 118 | welches ist der höchstgelegene punkt in virginia 119 | wie lautet der höchste punkt des staates mit der geringsten bevölkerungsdichte 120 | wie lautet die höchste erhebung der usa 121 | wie lautet die größte hauptstadt in den usa 122 | wie lautet die größte stadt in california 123 | welches ist die größte stadt in rhode island 124 | welches ist die größte stadt im kleinsten staat , durch den der mississippi fließt 125 | welches ist die größte stadt des kleinsten staates in den usa 126 | nenne mir die länge des längsten flusses in washington state 127 | welches ist der größte an arkansas grenzende staat 128 | welcher der an texas grenzenden staaten ist der größte 129 | welches ist der staat mit der niedrigsten bevölkerungszahl 130 | wie lang ist der fluss colorado 131 | wie lautet die länge des längsten flusses der durch texas verläuft 132 | wie lang ist der mississippi 133 | wie lang ist der fluss, welcher durch die meisten staaten fließt 134 | was ist die länge des flusses, der durch die größten anzahl staaten fließt 135 | welches ist der längste fluss in florida 136 | welches ist der längste fluss im größten staat 137 | welches ist der längste fluss im staat mit der größten anzahl großer städte 138 | wie lautet der längste fluss in den staaten, welche an nebraska grenzen 139 | wie lautet der längste fluss , welcher durch einen staat verläuft , der an indiana grenzt 140 | welches ist der tiefstgelegene punkt in arkansas 141 | wie lautet der niedrigste punkt in massachusetts 142 | welches ist der tiefste punkt in mississippi 143 | wie hoch ist die niedrigste erhebung von nebraska 144 | wie lautet der niedrigste punkt in dem staat california 145 | wie lautet der niedrigste punkt in den usa 146 | welches ist der tiefste punkt aller staaten , durch die der fluss colorado fließt 147 | welches ist die maximale erhöhung von san francisco 148 | welches ist der dichteste staat in den usa 149 | wie lautet die stadt mit der größten bevölkerung 150 | welcher staat hat die größte bevölkerung 151 | welcher staat , durch den der mississippi fließt , hat die größte bevölkerung 152 | was ist die bevölkerungsdichte von maine 153 | was ist die bevölkerungsdichte des größten staates 154 | wie hoch ist die bevölkerungszahl von alaska 155 | wie hoch ist die bevölkerung von boulder 156 | wie groß ist die bevölkerung von erie in pennsylvania 157 | wie viele menschen leben in hawaii 158 | wie hoch ist die bevölkerung von houston 159 | wie groß ist die bevölkerung von maryland 160 | vie viele leute wohnen in new mexico 161 | wie groß ist die bevölkerung von new york city 162 | wie lautet die bevölkerung von san antonio 163 | welches ist die bevölkerungszahl von tempe arizona 164 | was ist die bevölkerungszahl der größten stadt des staates mit der größten flächenausdehnung 165 | welches ist die einwohnerzahl des kleinsten staates 166 | wie lautet die bevölkerung des staat , welcher an die meisten staaten grenzt 167 | wie viele leute wohnen in dem staat mit der größten bevölkerungsdichte 168 | was ist die einwohnerzahl von tucson 169 | wie viele einwohner hat utah 170 | wie viele leute wohnen in washington 171 | welches ist die kleinste stadt der usa 172 | wie lautet die kleinste stadt in den us 173 | wie lautet der kleinste staat , welcher an wyoming grenzt 174 | welches ist der kleinste staat , der an die meisten staaten grenzt 175 | welches ist der kleinste staat , durch den der mississippi fließt 176 | welcher staat hat die größte flächenausdehnung 177 | welcher ist der kleinste staat nach fläche 178 | welches ist die gesamtlänge aller flüsse in den usa 179 | wie lang ist der mississippi 180 | welche großen städte gibt es in pennsylvania 181 | welcher fluss fließt durch die größte anzahl an staaten 182 | welcher fluss fließt durch den staat mit den meisten städten 183 | welcher fluss verläuft durch den staat , welcher an die meisten staaten grenzt 184 | welche flüsse gibt es in an texas grenzende staaten 185 | welche flüsse verlaufen durch texas 186 | welche flüsse gibt es in texas 187 | welche flüsse fließen durch new york 188 | welcher fluss verläuft durch den staat , welcher an die meisten staaten grenzt 189 | welcher an nevada grenzende staat hat die größte bevölkerungszahl 190 | welche staaten grenzen an new york 191 | welcher staat grenzt an die meisten staaten 192 | welcher der staaten , durch die der colorado fließt , hat die höchste erhebung 193 | welches ist der staat mit der größten fläche 194 | welcher staat hat die größte hauptstadt 195 | welches sind die staaten , welche vom längsten fluss durchflossen werden 196 | welcher staat hat die kleinste durchschnittliche urbane bevölkerungzahl 197 | welcher staat hat die meisten wichtigen städte 198 | welcher staat hat die meisten flüsse 199 | welches ist der bevölkerungsärmste staat 200 | welcher staat liegt in austin 201 | in welchem staat liegt miami 202 | welcher staat hat die größte bevölkerung in den städten 203 | welche staaten sind neben arizona 204 | welche staaten grenzen an florida 205 | welche staaten grenzen an indiana 206 | welche staaten grenzen an michigan 207 | wie viele staaten grenzen an montana 208 | welche staaten grenzen an new jersey 209 | welche staaten grenzen an staaten , welche an mississippi grenzen 210 | welche staaten grenzen an staaten , durch welche der ohio fluss verläuft 211 | welche staaten grenzen an texas und haben einen wichtigen fluss 212 | welche staaten grenzen an den bevölkerungsreichsten staat 213 | welche staaten grenzen an den staat , welcher an die meisten staaten grenzt 214 | welche staaten grenzen an den staat mit den meisten städten 215 | welche staaten grenzen an den staat mit den meisten wichtigsten städten 216 | welcher staat grenzt an den staat mit der kleinsten fläche 217 | durch welche staaten fließt mindestens einer der hauptflüsse 218 | durch welche staaten fließt der delaware 219 | durch welche staaten verläuft der mississippi 220 | durch welche staaten fließt der missouri fluss 221 | durch welche staaten fließt der ohio fluss 222 | welche staaten haben städte mit dem namen dallas 223 | welche staaten haben städte mit dem namen plano 224 | welche staaten haben städte mit dem namen portland 225 | in welchen staaten gibt es städte mit dem namen rochester 226 | welche staaten haben städte mit dem namen salt lake city 227 | welche staaten grenzen an kentucky 228 | wo gibt es berge 229 | wo liegt dallas 230 | wo liegt portland 231 | wo liegt der chattahoochee fluss 232 | wo liegt der höchste berg der usa 233 | wo liegt der höchste punkt in hawaii 234 | wie lautet der niedrigste punkt in maryland 235 | wo liegt die am meisten bevölkerte gegend von neu mexiko 236 | wo liegt die kleinste stadt 237 | welche stadt in kalifornien hat die größte bevölkerung 238 | was ist die dichte des staates durch den der größte fluss der usa fließt 239 | wie lautet der höchste gipfel der nicht in alaska liegt 240 | wie lautet der längste fluss der usa 241 | wie lautet der kleinste staat 242 | welcher der staaten , welche an pennsylvania grenzen , hat die größte bevölkerung 243 | welcher fluss fließt durch die meisten staaten 244 | welcher fluss fließt durch die meisten staaten 245 | welcher fluss durchquert die meisten staaten 246 | welche flüsse fließen nicht durch texas 247 | welche flüsse fließen durch die usa 248 | welcher fluss verläuft durch staaten , welche an den staat mit der hauptstadt austin grenzen 249 | welche flüsse gehen durch staaten mit den wenigsten städten 250 | welcher staat grenzt an hawaii 251 | welcher staat grenzt an die meisten anderen staaten 252 | welche hauptstadt hat die kleinste bevölkerung 253 | welcher staat hat die größte bevölkerung 254 | welcher staat hat die meisten einwohner 255 | welche staat hat die höchste erhöhung 256 | welcher staat beinhaltet den höchsten punkt 257 | welcher staat hat die größte dichte 258 | in welchem staat liegt der tiefste punkt 259 | in welchem stadt liegt der tiefste an idaho grenzende punkt 260 | welcher staat hat die kleinste bevölkerungsdichte 261 | welcher staat hat die meisten wichtigsten städte 262 | durch welchen staat fließen die meisten große flüsse 263 | welcher staat hat die meisten wichtigen flüsse 264 | welcher staat hat die höchste bevölkerung 265 | durch welchen staat fließen die meisten flüsse 266 | welcher staat hat die geringste bevölkerungsdichte 267 | welcher staat hat die geringste bevölkerungsdichte 268 | in welchem staat liegt mount mckinley 269 | welcher staat ist am kleinsten 270 | welche staaten grenzen an illinois 271 | welche staaten grenzen an kentucky 272 | welche staaten grenzen an den fluss missouri 273 | welche staaten grenzen an den staat mit der kleinsten flächenausdehnung 274 | welcher staat hat die größte hauptstadt 275 | durch welchen staat quert der chattahoochee fluss 276 | welcher staat hat den längsten fluss 277 | durch welchen staat fließt der mississippi 278 | durch welche staaten fließen flüsse 279 | in welchen staaten gibt es eine stadt namens austin 280 | welcher staat in den usa hat die höchste bevölkerungsdichte 281 | -------------------------------------------------------------------------------- /rebol.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'zipf' 4 | require 'trollop' 5 | require 'tempfile' 6 | require 'memcached' 7 | require 'digest' 8 | require_relative './hopefear' 9 | require 'pty' 10 | require 'expect' 11 | 12 | def exec natural_language_string, reference_output, corpus, no_output=false 13 | mrl = output = feedback = nil 14 | # this may cause collisions, but there are not so many German words that 15 | # could have different Umlauts at the same position, e.g. Häuser => H?user 16 | key_prefix = Digest::SHA1.hexdigest(natural_language_string.encode('ASCII', :invalid => :replace, :undef => :replace, :replace => '?').gsub(/ /,'_')) 17 | if corpus == 'geoquery' 18 | begin 19 | mrl = $cache.get key_prefix+'__MRL' 20 | output = $cache.get key_prefix+'__OUTPUT' 21 | feedback = $cache.get key_prefix+'__FEEDBACK' 22 | rescue Memcached::NotFound 23 | mrl_cmd = "#{SMT_SEMPARSE} \"#{natural_language_string}\"" 24 | # beware: EVAL_PL sometimes hangs and can't be killed! 25 | mrl = spawn_with_timeout(mrl_cmd, TIMEOUT, ACCEPT_ZOMBIES).strip 26 | output = spawn_with_timeout("echo \"execute_funql_query(#{mrl}, X).\" | swipl -s #{ EVAL_PL} 2>&1 | grep \"X =\"", TIMEOUT).strip.split('X = ')[1] 27 | feedback = output==reference_output 28 | begin 29 | $cache.set key_prefix+'__MRL', mrl 30 | $cache.set key_prefix+'__OUTPUT', output 31 | $cache.set key_prefix+'__FEEDBACK', feedback 32 | rescue SystemExit, Interrupt 33 | $cache.delete key_prefix+'__MRL' 34 | $cache.delete key_prefix+'__OUTPUT' 35 | $cache.delete key_prefix+'__FEEDBACK"' 36 | end 37 | end 38 | elsif corpus == 'free917' 39 | begin 40 | mrl = $cache.get key_prefix+'__MRL' 41 | output = $cache.get key_prefix+'__OUTPUT' 42 | feedback = $cache.get key_prefix+'__FEEDBACK' 43 | rescue Memcached::NotFound 44 | mrl = "not available"#the parser for freebase doesn't give a mrl, just the answer 45 | output = "" 46 | #STDERR.write "#{natural_language_string}\n" 47 | @in.printf("#{natural_language_string}\n") 48 | result = @out.expect(/^> /,TIMEOUT) 49 | if result!=nil 50 | result[0].delete!("\r\n") 51 | result[0].delete!("\n") 52 | result[0].delete!("\r") 53 | matchData = result[0].match(/Top value { (.*) }>/) 54 | if matchData!=nil 55 | save = matchData[1].gsub(/^ */,"") 56 | save = save.gsub(/ *$/,"") 57 | save = save.gsub(/ +/," ") 58 | output = save 59 | #STDERR.write output 60 | end 61 | end 62 | feedback = output==reference_output 63 | begin 64 | $cache.set key_prefix+'__MRL', mrl 65 | $cache.set key_prefix+'__OUTPUT', output 66 | $cache.set key_prefix+'__FEEDBACK', feedback 67 | rescue SystemExit, Interrupt 68 | $cache.delete key_prefix+'__MRL' 69 | $cache.delete key_prefix+'__OUTPUT' 70 | $cache.delete key_prefix+'__FEEDBACK"' 71 | end 72 | end 73 | 74 | 75 | end 76 | STDERR.write " nrl: #{natural_language_string}\n" if !no_output 77 | STDERR.write " mrl: #{mrl}\n" if !no_output 78 | STDERR.write " output: #{output}\n" if !no_output 79 | STDERR.write " correct?: #{feedback}\n" if !no_output 80 | return feedback, mrl, output 81 | end 82 | 83 | class Stats 84 | 85 | def initialize name 86 | @name = name 87 | @with_parse = 0.0 88 | @with_output = 0.0 89 | @with_correct_output = 0.0 90 | end 91 | 92 | def update feedback, mrl, output 93 | @with_parse += 1 if mrl!='' 94 | @with_output += 1 if output!='' 95 | @with_correct_output += 1 if feedback==true 96 | end 97 | 98 | def to_s total 99 | without_parse = total-@with_parse 100 | <<-eos 101 | #{@name} with parse #{((@with_parse/total)*100).round 2}% abs=#{@with_parse} 102 | #{@name} with output #{((@with_output/total)*100).round 2}% abs=#{@with_output} 103 | #{@name} with correct output #{((@with_correct_output/total)*100).round 2}% adj=#{((@with_correct_output/(total-without_parse))*100).round 2} abs=#{@with_correct_output} 104 | eos 105 | end 106 | end 107 | 108 | def adjust_model_scores kbest, factor 109 | min = kbest.map{ |k| k.scores[:decoder] }.min 110 | max = kbest.map{ |k| k.scores[:decoder] }.max 111 | return if min==0&&max==0 112 | kbest.each { |k| k.scores[:decoder_orig] = k.scores[:decoder]; k.scores[:decoder] = factor*((k.scores[:decoder]-min)/(max-min)) } 113 | end 114 | 115 | def main 116 | cfg = Trollop::options do 117 | # [data] 118 | opt :k, "k", :type => :int, :default => 100, :short => '-k' 119 | opt :input, "'foreign' input", :type => :string, :required => true, :short => '-i' 120 | opt :references, "(parseable) references", :type => :string, :required => true, :short => '-r' 121 | opt :gold, "gold output", :type => :string, :required => true, :short => '-g' 122 | # just for debugging: 123 | opt :gold_mrl, "gold parse", :type => :string, :required => true, :short => '-h' 124 | opt :init_weights, "initial weights", :type => :string, :required => true, :short => '-w' 125 | opt :global_vars, "semantic parser, cdec bin, eval.pl", :type => :string, :required => true, :short => '-b' 126 | opt :cdec_ini, "cdec config file", :type => :string, :required => true, :short => '-c' 127 | opt :model, "parser model", :type => :int, :default => 0, :short => '-z' 128 | # just used for 1best/hope variant detection 129 | opt :stopwords_file, "stopwords file", :type => :string, :default => 'd/stopwords.en', :short => '-t' 130 | # [output] 131 | opt :output_weights, "output file for final weights", :type => :string, :required => true, :short => '-o' 132 | opt :debug, "debug output", :type => :bool, :default => false, :short => '-d' 133 | opt :print_kbest, "print full kbest lists", :type => :bool, :default => false, :short => '-l' 134 | # [learning parameters] 135 | opt :eta, "learning rate", :type => :float, :default => 0.01, :short => '-e' 136 | opt :iterate, "iteration X epochs", :type => :int, :default => 1, :short => '-j' 137 | opt :stop_after, "stop after x examples", :type => :int, :default => -1, :short => '-s' 138 | opt :scale_model, "scale model scores by this factor", :type => :float, :default => 1.0, :short => '-m' 139 | opt :normalize, "normalize weights after each update", :type => :bool, :default => false, :short => '-n' 140 | # don't use when 'bad' examples are filtered: 141 | opt :skip_on_no_proper_gold, "skip, if the reference didn't produce a proper gold output", :type => :bool, :default => false, :short => '-x' 142 | opt :no_update, "don't update weights", :type => :bool, :default => false, :short => '-y' 143 | # don't use: 144 | opt :hope_fear_max, "# entries to consider when searching good hope/fear", :type => :int, :default => 10**10, :short => '-q' 145 | # see hopefear.rb: 146 | opt :variant, "rampion, rebol, rebol_light, exec", :type => :string, :default => 'rampion', :short => '-v' 147 | opt :corpus, "corpus: either geoquery or free917", :type => :string, :required => true, :short => '-u' 148 | end 149 | 150 | require_relative cfg[:global_vars] 151 | STDERR.write "CONFIGURATION\n" 152 | cfg.each_pair { |k,v| STDERR.write " #{k}=#{v}\n" } 153 | STDERR.write "CDEC_BIN=#{CDEC_BIN}\n" 154 | 155 | 156 | # read data 157 | input = ReadFile.readlines_strip cfg[:input] 158 | references = ReadFile.readlines_strip cfg[:references] 159 | gold = ReadFile.readlines_strip cfg[:gold] 160 | gold_mrl = ReadFile.readlines_strip cfg[:gold_mrl] 161 | stopwords = ReadFile.readlines_strip cfg[:stopwords_file] 162 | corpus = "" 163 | case cfg[:corpus] 164 | when 'geoquery' 165 | corpus = 'geoquery' 166 | STDERR.write "SMT_SEMPARSE=#{SMT_SEMPARSE}\n" 167 | STDERR.write "EVAL_PL=#{EVAL_PL}\n" 168 | when 'free917' 169 | corpus = 'free917' 170 | STDERR.write "SEMPRE=#{SEMPRE}\n" 171 | if cfg[:model] == 0 172 | STDERR.write "For Free917 please specify a model number.\n" 173 | exit 1 174 | end 175 | original_dir = Dir.pwd 176 | Dir.chdir "#{SEMPRE}" 177 | @out, @in, @pid = PTY.spawn("./sempre @mode=interact @domain=free917 @sparqlserver=localhost:3093 @cacheserver=local @load=#{cfg[:model]} @executeTopOnly=0") 178 | @out.expect(/> /,timeout=300)[0] 179 | @in.printf("at what institutions was marshall hall a professor\n")#to initialize model 180 | result = @out.expect(/> /,timeout=300) 181 | Dir.chdir original_dir 182 | else 183 | STDERR.write "NO SUCH CORPUS, exiting.\n" 184 | exit 1 185 | end 186 | STDERR.write "Corpus: #{corpus}\n" 187 | 188 | own_references = nil 189 | own_references = references.map{ |i| nil } 190 | 191 | # initialize model 192 | w = SparseVector.from_file cfg[:init_weights], ' ' 193 | 194 | # iterations loop 195 | cfg[:iterate].times { |iter| 196 | 197 | # (reset) numerous counters 198 | count = 0 199 | without_translation = 0 200 | no_proper_gold_output = 0 201 | top1_stats = Stats.new 'top1' 202 | hope_stats = Stats.new 'hope' 203 | fear_stats = Stats.new 'fear' 204 | type1_updates = 0 205 | type2_updates = 0 206 | top1_hit = 0 207 | top1_variant = 0 208 | top1_true_variant = 0 209 | hope_hit = 0 210 | hope_variant = 0 211 | hope_true_variant = 0 212 | kbest_sz = 0 213 | 214 | # input loop 215 | input.each_with_index { |i,j| 216 | break if cfg[:stop_after]>0&&count==cfg[:stop_after] 217 | count += 1 218 | 219 | # write weights to file for cdec 220 | tmp_file = Tempfile.new('rampion') 221 | tmp_file_path = tmp_file.path 222 | tmp_file.write w.to_kv ' ', "\n" 223 | tmp_file.close 224 | 225 | # get kbest list 226 | kbest = cdec_kbest CDEC_BIN, i, cfg[:cdec_ini], tmp_file_path, cfg[:k] 227 | kbest_sz += kbest.size 228 | 229 | STDERR.write "\n=================\n" 230 | STDERR.write " EXAMPLE: #{j}\n" 231 | STDERR.write " REFERENCE: #{references[j]}\n" 232 | STDERR.write " GOLD MRL: #{gold_mrl[j]}\n" 233 | STDERR.write "GOLD OUTPUT: #{gold[j]}\n" 234 | 235 | # translation failed 236 | if kbest.size == 0 237 | without_translation += 1 238 | STDERR.write "NO MT OUTPUT, skipping example\n" 239 | #STDERR.write "#{CDEC_BIN} #{i} #{cfg[:cdec_ini]} #{tmp_file_path} #{cfg[:k]}" 240 | next 241 | end 242 | 243 | # don't use when data is filtered 244 | if gold[j] == '[]' || gold[j] == '[...]' || gold[j] == '[].' || gold[j] == '[...].' 245 | no_proper_gold_output += 1 246 | if cfg[:skip_on_no_proper_gold] 247 | STDERR.write "NO PROPER GOLD OUTPUT, skipping example\n" 248 | next 249 | end 250 | end 251 | 252 | # get per-sentence BLEU scores 253 | kbest.each { |k| k.scores[:per_sentence_bleu] = BLEU::per_sentence_bleu k.s, references[j] } 254 | 255 | # map decoder scores to [0,1] 256 | adjust_model_scores kbest, cfg[:scale_model] 257 | 258 | if cfg[:print_kbest] 259 | STDERR.write "\n<<< KBEST\n" 260 | kbest.each_with_index { |k,l| STDERR.write k.to_s2+"\n" } 261 | STDERR.write ">>>\n" 262 | end 263 | 264 | # informative output 265 | STDERR.write "\n [TOP1]\n" 266 | # print 1best on last iteration 267 | puts "#{kbest[0].s}" if iter+1==cfg[:iterate] 268 | 269 | # execute 1best 270 | feedback, mrl, output = exec kbest[0].s, gold[j], corpus 271 | STDERR.write " SCORES: #{kbest[0].scores.to_s}\n" 272 | top1_stats.update feedback, mrl, output 273 | 274 | # hope/fear variants 275 | hope = fear = new_reference = nil 276 | type1 = type2 = skip = false 277 | case cfg[:variant] 278 | when 'rampion' 279 | hope, fear, skip, type1, type2 = gethopefear_rampion kbest, references[j] 280 | when 'rebol' 281 | hope, fear, skip, type1, type2, new_reference = gethopefear_rebol kbest, feedback, gold[j], cfg[:hope_fear_max], corpus, own_references[j] 282 | when 'rebol_light' 283 | hope, fear, skip, type1, type2 = gethopefear_rebol_light kbest, feedback, gold[j], corpus 284 | when 'only_exec' 285 | hope, fear, skip, type1, type2, new_reference = gethopefear_exec kbest, feedback, gold[j], cfg[:hope_fear_max], corpus, own_references[j] 286 | else 287 | STDERR.write "NO SUCH VARIANT, exiting.\n" 288 | exit 1 289 | end 290 | 291 | if new_reference 292 | own_references[j] = new_reference if new_reference!=references[j] 293 | end 294 | 295 | type1_updates+=1 if type1 296 | type2_updates+=1 if type2 297 | 298 | # for string variant detection 299 | ref_words = bag_of_words references[j], stopwords 300 | 301 | if kbest[0].s == references[j] 302 | top1_hit += 1 303 | elsif feedback 304 | top1_variant += 1 305 | top1_true_variant += 1 if !bag_of_words(kbest[0].s, stopwords).is_subset_of?(ref_words) 306 | end 307 | 308 | # hope output & statistics 309 | STDERR.write "\n [HOPE]\n" 310 | if hope 311 | feedback, mrl, output = exec hope.s, gold[j], corpus 312 | STDERR.write " SCORES: #{hope.scores.to_s}, ##{hope.rank}\n" 313 | hope_stats.update feedback, mrl, output 314 | if hope.s==references[j] 315 | hope_hit += 1 316 | elsif feedback 317 | hope_variant += 1 318 | hope_true_variant += 1 if !bag_of_words(hope.s, stopwords).is_subset_of?(ref_words) 319 | end 320 | end 321 | 322 | # fear output & statistics 323 | STDERR.write "\n [FEAR]\n" 324 | if fear 325 | feedback, mrl, output = exec fear.s, gold[j], corpus 326 | STDERR.write " SCORES: #{fear.scores.to_s}, ##{fear.rank}\n" 327 | fear_stats.update feedback, mrl, output 328 | end 329 | 330 | # skip if needed 331 | if skip || !hope || !fear 332 | STDERR.write "NO GOOD HOPE/FEAR, skipping example\n\n" 333 | next 334 | end 335 | 336 | # update 337 | w += (hope.f - fear.f) * cfg[:eta] if !cfg[:no_update] 338 | 339 | # normalize model 340 | w.normalize! if cfg[:normalize] 341 | } 342 | 343 | # save all weights 344 | if cfg[:iterate] > 1 345 | WriteFile.write(w.to_kv(' ', "\n"), "#{cfg[:output_weights]}.#{iter}.gz") 346 | else 347 | WriteFile.write(w.to_kv(' ', "\n"), "#{cfg[:output_weights]}") 348 | end 349 | 350 | STDERR.write <<-eos 351 | 352 | --- 353 | iteration ##{iter+1}/#{cfg[:iterate]}: #{count} examples 354 | type1 updates: #{type1_updates} 355 | type2 updates: #{type2_updates} 356 | top1 hits: #{top1_hit} 357 | top1 variant: #{top1_variant} 358 | top1 true variant: #{top1_true_variant} 359 | hope hits: #{hope_hit} 360 | hope variant: #{hope_variant} 361 | hope true variant: #{hope_true_variant} 362 | kbest size: #{(kbest_sz/count).round 2} 363 | #{((without_translation.to_f/count)*100).round 2}% without translations (abs: #{without_translation}) 364 | #{((no_proper_gold_output.to_f/count)*100).round 2}% no good gold output (abs: #{no_proper_gold_output}) 365 | 366 | #{top1_stats.to_s count} 367 | #{hope_stats.to_s count} 368 | #{fear_stats.to_s count} 369 | 370 | eos 371 | 372 | STDERR.write "<<< #{own_references.reject{|i|!i}.size} OWN REFERENCES\n" 373 | own_references.each_with_index { |i,j| 374 | STDERR.write "#{j} '#{i}'\n" if i 375 | } 376 | STDERR.write ">>>\n" 377 | 378 | } 379 | end 380 | 381 | 382 | main 383 | 384 | -------------------------------------------------------------------------------- /data/geoquery/wasp-1.0/eval.pl: -------------------------------------------------------------------------------- 1 | :- ensure_loaded(geoquery). 2 | :- ensure_loaded(geobase). 3 | 4 | :- style_check(-singleton). 5 | :- style_check(-discontiguous). 6 | 7 | :- set_prolog_flag(toplevel_print_options, [quoted(true), portray(true)]). 8 | 9 | eval([]). 10 | eval([I,J,F1,F2|L]) :- 11 | execute_funql_query(F1, A1), 12 | execute_funql_query(F2, A2), 13 | print(I), print(' '), print(J), (A1 == A2 -> print(' y') ; print(' n')), nl, 14 | eval(L). 15 | 16 | execute_funql_query(null, null). 17 | execute_funql_query(Q, U) :- process(Q,P), sort(P, U). 18 | execute_funql_query(Q, []). % empty result 19 | 20 | process(answer(Q), P) :- process(Q, P). 21 | 22 | process(stateid(A), [stateid(A)]). 23 | process(cityid(A,B), [cityid(A,B)]). 24 | process(riverid(A), [riverid(A)]). 25 | process(countryid(A), [countryid(A)]). 26 | process(placeid(A), [placeid(A)]). 27 | 28 | process(city(all), A) :- findall(B, city(B), A). 29 | process(mountain(all), A) :- findall(B, place(B), A). 30 | process(place(all), A) :- findall(B, place(B), A). 31 | process(river(all), A) :- findall(B, river(B), A). 32 | process(lake(all), A) :- findall(B, lake(B), A). 33 | process(state(all), A) :- findall(B, state(B), A). 34 | process(capital(all), A) :- findall(B, capital(B), A). 35 | 36 | % filter the list by the predicate 37 | process(capital(A), P) :- process(A,L), process(capital(L), P). 38 | process(capital([]), []). 39 | process(capital([A|AA]), [A|PP]) :- capital(A), !, process(capital(AA), PP). 40 | process(capital([A|AA]), PP) :- process(capital(AA), PP). 41 | process2(capital(A), P) :- process2(A,L), process2(capital(L), P). 42 | process2(capital([]), []). 43 | process2(capital([A-S|AA]), [PA-S|PP]) :- process(capital(A),PA), process2(capital(AA), PP). 44 | 45 | process(city(A), P) :- process(A,L), process(city(L), P). 46 | process(city([]), []). 47 | process(city([A|AA]), [A|PP]) :- city(A), !, process(city(AA), PP). 48 | process(city([A|AA]), PP) :- process(city(AA), PP). 49 | process2(city(A), P) :- process2(A,L), process2(city(L), P). 50 | process2(city([]), []). 51 | process2(city([A-S|AA]), [PA-S|PP]) :- process(city(A),PA), process2(city(AA), PP). 52 | 53 | process(major(A), P) :- process(A,L), process(major(L), P). 54 | process(major([]), []). 55 | process(major([A|AA]), [A|PP]) :- major(A), !, process(major(AA), PP). 56 | process(major([A|AA]), PP) :- process(major(AA), PP). 57 | process2(major(A), P) :- process2(A,L), process2(major(L), P). 58 | process2(major([]), []). 59 | process2(major([A-S|AA]), [PA-S|PP]) :- process(major(A),PA), process2(major(AA), PP). 60 | 61 | process(place(A), P) :- process(A,L), process(place(L), P). 62 | process(place([]), []). 63 | process(place([A|AA]), [A|PP]) :- place(A), !, process(place(AA), PP). 64 | process(place([A|AA]), PP) :- process(place(AA), PP). 65 | process2(place(A), P) :- process2(A,L), process2(place(L), P). 66 | process2(place([]), []). 67 | process2(place([A-S|AA]), [PA-S|PP]) :- process(place(A),PA), process2(place(AA), PP). 68 | 69 | process(river(A), P) :- process(A,L), process(river(L), P). 70 | process(river([]), []). 71 | process(river([A|AA]), [A|PP]) :- river(A), !, process(river(AA), PP). 72 | process(river([A|AA]), PP) :- process(river(AA), PP). 73 | process2(river(A), P) :- process2(A,L), process2(river(L), P). 74 | process2(river([]), []). 75 | process2(river([A-S|AA]), [PA-S|PP]) :- process(river(A),PA), process2(river(AA), PP). 76 | 77 | process(lake(A), P) :- process(A,L), process(lake(L), P). 78 | process(lake([]), []). 79 | process(lake([A|AA]), [A|PP]) :- lake(A), !, process(lake(AA), PP). 80 | process(lake([A|AA]), PP) :- process(lake(AA), PP). 81 | process2(lake(A), P) :- process2(A,L), process2(lake(L), P). 82 | process2(lake([]), []). 83 | process2(lake([A-S|AA]), [PA-S|PP]) :- process(lake(A),PA), process2(lake(AA), PP). 84 | 85 | process(state(A), P) :- process(A,L), process(state(L), P). 86 | process(state([]), []). 87 | process(state([A|AA]), [A|PP]) :- state(A), !, process(state(AA), PP). 88 | process(state([A|AA]), PP) :- process(state(AA), PP). 89 | process2(state(A), P) :- process2(A,L), process2(state(L), P). 90 | process2(state([]), []). 91 | process2(state([A-S|AA]), [PA-S|PP]) :- process(state(A),PA), process2(state(AA), PP). 92 | 93 | process(mountain(A), P) :- process(A,L), process(mountain(L), P). 94 | process(mountain([]), []). 95 | process(mountain([A|AA]), [A|PP]) :- place(A), !, process(mountain(AA), PP). 96 | process(mountain([A|AA]), PP) :- process(mountain(AA), PP). 97 | process2(mountain(A), P) :- process2(A,L), process2(mountain(L), P). 98 | process2(mountain([]), []). 99 | process2(mountain([A-S|AA]), [PA-S|PP]) :- process(mountain(A),PA), process2(mountain(AA), PP). 100 | 101 | % find the required (one-to-one); process2 generates pairwise list 102 | process(len(A), P) :- process(A,L), process(len(L), P). 103 | process(len([]), []). 104 | process(len([A|AA]), [P|PP]) :- len(A, P), process(len(AA), PP). 105 | process(len([A|AA]), PP) :- process(len(AA), PP). 106 | process2(len(A), P) :- process(A,L), process2(len(L), P). 107 | process2(len([]), []). 108 | process2(len([A|AA]), [P-A|PP]) :- len(A, P), process2(len(AA), PP). 109 | process2(len([A|AA]), PP) :- process2(len(AA), PP). 110 | 111 | process(size(A), P) :- process(A,L), process(size(L), P). 112 | process(size([]), []). 113 | process(size([A|AA]), [P|PP]) :- size(A, P), process(size(AA), PP). 114 | process(size([A|AA]), PP) :- process(size(AA), PP). 115 | process2(size(A), P) :- process(A,L), process2(size(L), P). 116 | process2(size([]), []). 117 | process2(size([A|AA]), [P-A|PP]) :- size(A, P), process2(size(AA), PP). 118 | process2(size([A|AA]), PP) :- process2(size(AA), PP). 119 | 120 | process(area_1(A), P) :- process(A,L), process(area_1(L), P). 121 | process(area_1([]), []). 122 | process(area_1([A|AA]), [P|PP]) :- area(A, P), process(area_1(AA), PP). 123 | process(area_1([A|AA]), PP) :- process(area_1(AA), PP). 124 | process2(area_1(A), P) :- process(A,L), process2(area_1(L), P). 125 | process2(area_1([]), []). 126 | process2(area_1([A|AA]), [P-A|PP]) :- area(A, P), process2(area_1(AA), PP). 127 | process2(area_1([A|AA]), PP) :- process2(area_1(AA), PP). 128 | 129 | process(population_1(A), P) :- process(A,L), process(population_1(L), P). 130 | process(population_1([]), []). 131 | process(population_1([A|AA]), [P|PP]) :- population(A, P), process(population_1(AA), PP). 132 | process(population_1([A|AA]), PP) :- process(population_1(AA), PP). % if not found 133 | process2(population_1(A), P) :- process(A,L), process2(population_1(L), P). 134 | process2(population_1([]), []). 135 | process2(population_1([A|AA]), [P-A|PP]) :- population(A, P), process2(population_1(AA), PP). 136 | process2(population_1([A|AA]), PP) :- process2(population_1(AA), PP). % if not found 137 | 138 | process(density_1(A), P) :- process(A,L), process(density_1(L), P). 139 | process(density_1([]), []). 140 | process(density_1([A|AA]), [P|PP]) :- density(A, P), process(density_1(AA), PP). 141 | process(density_1([A|AA]), PP) :- process(density_1(AA), PP). 142 | process2(density_1(A), P) :- process(A,L), process2(density_1(L), P). 143 | process2(density_1([]), []). 144 | process2(density_1([A|AA]), [P-A|PP]) :- density(A, P), process2(density_1(AA), PP). 145 | process2(density_1([A|AA]), PP) :- process2(density_1(AA), PP). 146 | 147 | process(elevation_1(A), P) :- process(A,L), process(elevation_1(L), P). 148 | process(elevation_1([]), []). 149 | process(elevation_1([A|AA]), [P|PP]) :- elevation(A, P), process(elevation_1(AA), PP). 150 | process(elevation_1([A|AA]), PP) :- process(elevation_1(AA), PP). 151 | process2(elevation_1(A), P) :- process(A,L), process2(elevation_1(L), P). 152 | process2(elevation_1([]), []). 153 | process2(elevation_1([A|AA]), [P-A|PP]) :- elevation(A, P), process2(elevation_1(AA), PP). 154 | process2(elevation_1([A|AA]), PP) :- process2(elevation_1(AA), PP). 155 | 156 | %%%% no need for process2 157 | 158 | process(capital_1(A), P) :- process(A,L), process(capital_1(L), P). 159 | process(capital_1([]), []). 160 | process(capital_1([A|AA]), [P|PP]) :- capital(A, P), process(capital_1(AA), PP). 161 | process(capital_1([A|AA]), PP) :- process(capital_1(AA), PP). 162 | 163 | % find all the required (one-to-many) 164 | process(capital_2(A), P) :- process(A,L), process(capital_2(L), P). 165 | process(capital_2([]), []). 166 | process(capital_2([A|L]), P) :- findall(B, capital(B, A), AA), 167 | process(capital_2(L),LL), append(AA,LL,P). 168 | 169 | process(elevation_2(A), P) :- process(A,L), process(elevation_2(L), P). 170 | process(elevation_2([]), []). 171 | process(elevation_2([A|L]), P) :- findall(B, elevation(B, A), AA), 172 | process(elevation_2(L),LL), append(AA,LL,P). 173 | 174 | process(high_point_1(A), P) :- process(A,L), process(high_point_1(L), P). 175 | process(high_point_1([]), []). 176 | process(high_point_1([A|L]), P) :- findall(B, high_point(A, B), AA), 177 | process(high_point_1(L),LL), append(AA,LL,P). 178 | process2(high_point_1(A), P) :- process(A,L), process2(high_point_1(L), P). 179 | process2(high_point_1([]), []). 180 | process2(high_point_1([A|L]), [AA-A|P]) :- findall(B, high_point(A, B), AA), 181 | process2(high_point_1(L),P). 182 | 183 | process(higher_1(A), P) :- process(A,L), process(higher_1(L), P). 184 | process(higher_1([]), []). 185 | process(higher_1([A|L]), P) :- findall(B, higher(A, B), AA), 186 | process(higher_1(L),LL), append(AA,LL,P). 187 | process2(higher_1(A), P) :- process(A,L), process2(higher_1(L), P). 188 | process2(higher_1([]), []). 189 | process2(higher_1([A|L]), [AA-A|P]) :- findall(B, higher(A, B), AA), 190 | process2(higher_1(L),P). 191 | 192 | process(lower_1(A), P) :- process(A,L), process(lower_1(L), P). 193 | process(lower_1([]), []). 194 | process(lower_1([A|L]), P) :- findall(B, lower(A, B), AA), 195 | process(lower_1(L),LL), append(AA,LL,P). 196 | process2(lower_1(A), P) :- process(A,L), process2(lower_1(L), P). 197 | process2(lower_1([]), []). 198 | process2(lower_1([A|L]), [AA-A|P]) :- findall(B, lower(A, B), AA), 199 | process2(lower_1(L),P). 200 | 201 | process(loc_1(A), P) :- process(A,L), process(loc_1(L), P). 202 | process(loc_1([]), []). 203 | process(loc_1([A|L]), P) :- findall(B, loc(A, B), AA), 204 | process(loc_1(L),LL), append(AA,LL,P). 205 | process2(loc_1(A), P) :- process(A,L), process2(loc_1(L), P). 206 | process2(loc_1([]), []). 207 | process2(loc_1([A|L]), [AA-A|P]) :- findall(B, loc(A, B), AA), 208 | process2(loc_1(L),P). 209 | 210 | process(low_point_1(A), P) :- process(A,L), process(low_point_1(L), P). 211 | process(low_point_1([]), []). 212 | process(low_point_1([A|L]), P) :- findall(B, low_point(A, B), AA), 213 | process(low_point_1(L),LL), append(AA,LL,P). 214 | process2(low_point_1(A), P) :- process(A,L), process2(low_point_1(L), P). 215 | process2(low_point_1([]), []). 216 | process2(low_point_1([A|L]), [AA-A|P]) :- findall(B, low_point(A, B), AA), 217 | process2(low_point_1(L),P). 218 | 219 | process(next_to_1(A), P) :- process(A,L), process(next_to_1(L), P). 220 | process(next_to_1([]), []). 221 | process(next_to_1([A|L]), P) :- findall(B, next_to(A, B), AA), 222 | process(next_to_1(L),LL), append(AA,LL,P). 223 | process2(next_to_1(A), P) :- process(A,L), process2(next_to_1(L), P). 224 | process2(next_to_1([]), []). 225 | process2(next_to_1([A|L]), [AA-A|P]) :- findall(B, next_to(A, B), AA), 226 | process2(next_to_1(L),P). 227 | 228 | process(traverse_1(A), P) :- process(A,L), process(traverse_1(L), P). 229 | process(traverse_1([]), []). 230 | process(traverse_1([A|L]), P) :- findall(B, traverse(A, B), AA), 231 | process(traverse_1(L),LL), append(AA,LL,P). 232 | process2(traverse_1(A), P) :- process(A,L), process2(traverse_1(L), P). 233 | process2(traverse_1([]), []). 234 | process2(traverse_1([A|L]), [AA-A|P]) :- findall(B, traverse(A, B), AA), 235 | process2(traverse_1(L),P). 236 | 237 | process(high_point_2(A), P) :- process(A,L), process(high_point_2(L), P). 238 | process(high_point_2([]), []). 239 | process(high_point_2([A|L]), P) :- findall(B, high_point(B, A), AA), 240 | process(high_point_2(L),LL), append(AA,LL,P). 241 | process2(high_point_2(A), P) :- process(A,L), process2(high_point_2(L), P). 242 | process2(high_point_2([]), []). 243 | process2(high_point_2([A|L]), [AA-A|P]) :- findall(B, high_point(B, A), AA), 244 | process2(high_point_2(L),P). 245 | 246 | process(higher_2(A), P) :- process(A,L), process(higher_2(L), P). 247 | process(higher_2([]), []). 248 | process(higher_2([A|L]), P) :- findall(B, higher(B, A), AA), 249 | process(higher_2(L),LL), append(AA,LL,P). 250 | process2(higher_2(A), P) :- process(A,L), process2(higher_2(L), P). 251 | process2(higher_2([]), []). 252 | process2(higher_2([A|L]), [AA-A|P]) :- findall(B, higher(B, A), AA), 253 | process2(higher_2(L),P). 254 | 255 | process(lower_2(A), P) :- process(A,L), process(lower_2(L), P). 256 | process(lower_2([]), []). 257 | process(lower_2([A|L]), P) :- findall(B, lower(B, A), AA), 258 | process(lower_2(L),LL), append(AA,LL,P). 259 | process2(lower_2(A), P) :- process(A,L), process2(lower_2(L), P). 260 | process2(lower_2([]), []). 261 | process2(lower_2([A|L]), [AA-A|P]) :- findall(B, lower(B, A), AA), 262 | process2(lower_2(L),P). 263 | 264 | process(loc_2(A), P) :- process(A,L), process(loc_2(L), P). 265 | process(loc_2([]), []). 266 | process(loc_2([A|L]), P) :- findall(B, loc(B, A), AA), 267 | process(loc_2(L),LL), append(AA,LL,P). 268 | process2(loc_2(A), P) :- process(A,L), process2(loc_2(L), P). 269 | process2(loc_2([]), []). 270 | process2(loc_2([A|L]), [AA-A|P]) :- findall(B, loc(B, A), AA), 271 | process2(loc_2(L),P). 272 | 273 | process(low_point_2(A), P) :- process(A,L), process(low_point_2(L), P). 274 | process(low_point_2([]), []). 275 | process(low_point_2([A|L]), P) :- findall(B, low_point(B, A), AA), 276 | process(low_point_2(L),LL), append(AA,LL,P). 277 | process2(low_point_2(A), P) :- process(A,L), process2(low_point_2(L), P). 278 | process2(low_point_2([]), []). 279 | process2(low_point_2([A|L]), [AA-A|P]) :- findall(B, low_point(B, A), AA), 280 | process2(low_point_2(L),P). 281 | 282 | process(traverse_2(A), P) :- process(A,L), process(traverse_2(L), P). 283 | process(traverse_2([]), []). 284 | process(traverse_2([A|L]), P) :- findall(B, traverse(B, A), AA), 285 | process(traverse_2(L),LL), append(AA,LL,P). 286 | process2(traverse_2(A), P) :- process(A,L), process2(traverse_2(L), P). 287 | process2(traverse_2([]), []). 288 | process2(traverse_2([A|L]), [AA-A|P]) :- findall(B, traverse(B, A), AA), 289 | process2(traverse_2(L),P). 290 | 291 | process(next_to_2(A), P) :- process(A,L), process(next_to_2(L), P). 292 | process(next_to_2([]), []). 293 | process(next_to_2([A|L]), P) :- findall(B, next_to(B, A), AA), 294 | process(next_to_2(L),LL), append(AA,LL,P). 295 | process2(next_to_2(A), P) :- process(A,L), process2(next_to_2(L), P). 296 | process2(next_to_2([]), []). 297 | process2(next_to_2([A|L]), [AA-A|P]) :- findall(B, next_to(B, A), AA), 298 | process2(next_to_2(L),P). 299 | 300 | process(longer(A), P) :- process(A,L), process(longer(L), P). 301 | process(longer([]), []). 302 | process(longer([A|L]), P) :- findall(B, longer(B, A), AA), 303 | process(longer(L),LL), append(AA,LL,P). 304 | process2(longer(A), P) :- process(A,L), process2(longer(L), P). 305 | process2(longer([]), []). 306 | process2(longer([A|L]), [AA-A|P]) :- findall(B, longer(B, A), AA), 307 | process2(longer(L),P). 308 | % metas 309 | % helpful for meta 310 | pair_size([A|AA], [(Size-A)|LL]) :- size(A,Size), pair_size(AA, LL). 311 | pair_size([A|AA], LL) :- pair_size(AA, LL). 312 | pair_size([], []). 313 | pair_elevation([A|AA], [(Elevation-A)|LL]) :- elevation(A,Elevation), pair_elevation(AA,LL). 314 | pair_elevation([A|AA], LL) :- pair_elevation(AA,LL). 315 | pair_elevation([], []). 316 | pair_len([A|AA], [(Len-A)|LL]) :- len(A,Len), pair_len(AA, LL). 317 | pair_len([A|AA], LL) :- pair_len(AA, LL). 318 | pair_len([], []). 319 | 320 | process(largest(A), PP) :- process(A,P), pair_size(P, PS), 321 | (PS=[] -> PP=[]; (max_key(PS, M),PP=[M])). 322 | process(smallest(A), PP) :- process(A,P), pair_size(P, PS), 323 | (PS=[] -> PP=[]; (min_key(PS, M),PP=[M])). 324 | 325 | process(highest(A), PP) :- process(A,P), pair_elevation(P, PS), 326 | (PS=[] -> PP=[]; (max_key(PS, M),PP=[M])). 327 | process(lowest(A), PP) :- process(A,P), pair_elevation(P, PS), 328 | (PS=[] -> PP=[]; (min_key(PS, M),PP=[M])). 329 | 330 | process(longest(A), PP) :- process(A,P), pair_len(P, PS), 331 | (PS=[] -> PP=[]; (max_key(PS, M),PP=[M])). 332 | process(shortest(A), PP) :- process(A,P), pair_len(P, PS), 333 | (PS=[] -> PP=[]; (min_key(PS, M),PP=[M])). 334 | 335 | % ones 336 | numerify([],[]). 337 | numerify([L-S|R], [N-S|NR]) :- sort(L,LL), length(LL,N), numerify(R,NR). 338 | 339 | process(largest_one(A), P) :- process2(A, S), 340 | (S=[]-> P=[]; (max_key(S,M), P=[M])). 341 | process(highest_one(A), P) :- process2(A, S), 342 | (S=[]-> P=[]; (max_key(S,M), P=[M])). 343 | process(longest_one(A), P) :- process2(A, S), 344 | (S=[]-> P=[]; (max_key(S,M), P=[M])). 345 | process(most(A), P) :- process2(A, S),numerify(S,NS), 346 | (S=[]-> P=[]; (max_key(NS,M), P=[M])). 347 | 348 | process(smallest_one(A), P) :- process2(A, S), 349 | (S=[]-> P=[]; (min_key(S,M), P=[M])). 350 | process(lowest_one(A), P) :- process2(A, S), 351 | (S=[]-> P=[]; (min_key(S,M), P=[M])). 352 | process(shortest_one(A), P) :- process2(A, S), 353 | (S=[]-> P=[]; (min_key(S,M), P=[M])). 354 | process(fewest(A), P) :- process2(A, S),numerify(S,NS), 355 | (S=[]-> P=[]; (min_key(NS,M), P=[M])). 356 | 357 | 358 | process(count(A), [P]) :- process(A, B), sort(B, BB), length(BB, P). 359 | process(sum(A), [P]) :- process(A, B), sumlist(B, 0, P). 360 | 361 | % what's the meaning of each really? -ywwong 362 | process(each(Q), P) :- process(Q, P). 363 | 364 | % exclude and intersection 365 | % helpful: remove all occurrences of elements of the second list from the first list 366 | minus(L,[],L). 367 | minus(L, [A|AA], P) :- delete(L,A,L2), minus(L2, AA, P). 368 | % helpful: intersection of two lists 369 | intersect([],L,[]). 370 | intersect([A|L1], L2, [A|L]) :- member(A,L2), intersect(L1, L2, L). 371 | intersect([B|L1], L2, L) :- intersect(L1, L2, L). 372 | 373 | process(exclude(A, B), P) :- process(A,P1), process(B,P2), minus(P1, P2, P). 374 | process(intersection(A, B), P) :- process(A,P1), process(B,P2), intersect(P1, P2, P). 375 | -------------------------------------------------------------------------------- /data/free917/free917v2.test.gold: -------------------------------------------------------------------------------- 1 | (number 5) 2 | (number 224) 3 | (name fb:en.ipod_classic "iPod classic") (name fb:en.ipod_touch "iPod touch") (name fb:en.ipod_shuffle "iPod shuffle") (name fb:en.ipod_nano "iPod nano") (name fb:en.ipod_mini "iPod mini") 4 | (date 1889 6 -1) 5 | (date 1962 -1 -1) 6 | (name fb:en.japan Japan) 7 | (name fb:en.eric_idle "Eric Idle") 8 | (string "Do You Yahoo!?") 9 | (number 9856303) (number 9153489) (number 10895785) (number 11041266) (number 10625700) (number 9861823) (number 9870234) (number 10796493) (number 10203008) (number 10376133) 10 | (name fb:en.chase_gabbard "Chase Gabbard") (name fb:en.herb_baumeister "Herb Baumeister") (name fb:m.05snxnn "Bill Moran") 11 | (name fb:en.san_francisco_public_library "San Francisco Public Library") 12 | (name fb:m.0j1cpfg "Lilienthal Observatory") 13 | (number 738199000) (number 485000000) (number 641000000) (number 423000000) (number 594000000) (number 320000000) (number 731000000) (number 579000000) (number 739165030) (number 530000000) 14 | (name fb:en.heavyweight Heavyweight) 15 | (name fb:en.iwatani_toru "Tōru Iwatani") 16 | (date 1469 -1 -1) 17 | (name fb:en.deltiology Deltiology) 18 | (date 1982 -1 -1) 19 | (number 240 fb:en.horsepower) 20 | (date 2007 6 29) 21 | (name fb:en.judo Judo) 22 | (name fb:en.emanuel_schikaneder "Emanuel Schikaneder") 23 | (name fb:m.04p4xr0 "SNL - 24.4") 24 | (name fb:m.075rnyj "Nicholas Flamel") 25 | (number 363) 26 | (number 52300000) (number 187400000) (number 1206000000) (number 12075000000.000) (number 8684000000.000) (number 81700000) (number 13436000000.000) (number 577300000) (number 3763000000.000) 27 | (string GBP) 28 | (number 3 fb:en.inch) 29 | (number 4) 30 | (number 10) 31 | (name fb:en.reykjavik_iceland Reykjavik) 32 | (name fb:en.tokyo_metro "Tokyo Metro") (name fb:en.rinkai_line "Tokyo Waterfront Area Rapid Transit Rinkai Line") (name fb:en.east_japan_railway_company "East Japan Railway Company") (name fb:en.tokyo_metropolitan_bureau_of_transportation "Tokyo Metropolitan Bureau of Transportation") 33 | (number 10180000 fb:en.square_kilometer) 34 | (number 35) 35 | (name fb:en.bicalutamide Bicalutamide) (name fb:en.goserelin Goserelin) (name fb:en.high_intensity_focused_ultrasound "High-intensity focused ultrasound") (name fb:en.palliative_care "Palliative care") (name fb:en.hormone_therapy "Hormone therapy") (name fb:en.radiation_therapy "Radiation therapy") (name fb:en.cryotherapy Cryotherapy) (name fb:en.chemotherapy Chemotherapy) (name fb:en.cryosurgery Cryosurgery) (name fb:en.gene_therapy "Gene therapy") 36 | (name fb:en.spain Spain) (name fb:en.andorra Andorra) (name fb:en.western_sahara "Western Sahara") 37 | (string ESP) 38 | (number 8) 39 | (name fb:en.san_francisco-oakland_bay_bridge "San Francisco-Oakland Bay Bridge") (name fb:en.richmond-san_rafael_bridge "Richmond–San Rafael Bridge") (name fb:en.dumbarton_bridge "Dumbarton Bridge") (name fb:en.san_mateo-hayward_bridge "San Mateo–Hayward Bridge") (name fb:en.eastern_span_replacement_of_the_san_francisco-oakland_bay_bridge "Eastern span replacement of the San Francisco–Oakland Bay Bridge") 40 | (number 68) 41 | (name fb:en.pacific_rim_national_park_reserve "Pacific Rim National Park Reserve") (name fb:en.gulf_islands_national_park_reserve "Gulf Islands National Park Reserve") 42 | (name fb:en.fumio_demura "Fumio Demura") (name fb:en.rod_kobayashi "Rod Kobayashi") 43 | (date 2005 8 21) 44 | (number 38) 45 | (number 6) 46 | (string "Sugar and Spice") (string "13 Going On 30") (string "Suddenly 30") (string "13 Love 30") 47 | (number 7) 48 | (name fb:m.0ncnxfr "Santiago Roces") 49 | (name fb:en.11_ursae_minoris "11 Ursae Minoris") (name fb:en.lambda_ursae_minoris "Lambda Ursae Minoris") (name fb:en.eta_ursae_minoris "Eta Ursae Minoris") (name fb:en.gamma_ursae_minoris "Gamma Ursae Minoris") (name fb:en.beta_ursae_minoris "Beta Ursae Minoris") (name fb:en.hd_150706 "HD 150706") (name fb:en.epsilon_ursae_minoris "Epsilon Ursae Minoris") (name fb:en.theta_ursae_minoris "Theta Ursae Minoris") (name fb:m.02x8m_y Calvera) (name fb:en.delta_ursae_minoris "Delta Ursae Minoris") 50 | (number 4) 51 | (name fb:en.stumpjumper "Specialized Stumpjumper") (name fb:en.2003_rocky_mountain_elevation "2003 Rocky Mountain Elevation") (name fb:m.0cvm6d9 "Kona Cinder Cone") (name fb:m.0rzd57c "S-Works Epic Carbon 29 XTR (2013)") 52 | (number 41) 53 | (name fb:en.colleen_atwood "Colleen Atwood") 54 | (name fb:en.canadian_rockies "Canadian Rockies") 55 | (name fb:en.empire_landmark_hotel "Empire Landmark Hotel") (name fb:en.the_dominion_hotel "The Dominion Hotel") (name fb:en.the_fairmont_hotel_vancouver "Hotel Vancouver") (name fb:en.st_regis_hotel_vancouver "St. Regis Hotel Vancouver") (name fb:en.the_fairmont_waterfront "The Fairmont Waterfront") (name fb:en.metropolitan_hotel_vancouver "Metropolitan Hotel Vancouver") (name fb:en.opus_hotel "Opus Hotel") (name fb:en.marriott_vancouver_pinnacle_downtown "Marriott Vancouver Pinnacle Downtown") (name fb:en.budget_inn_patricia_hotel "Budget Inn Patricia Hotel") (name fb:en.comfort_inn_downtown_vancouver "Comfort Inn Downtown Vancouver") 56 | (date 1901 -1 -1) 57 | (number 31) 58 | (number 8) 59 | (name fb:en.united_kingdom_of_great_britain_and_ireland "United Kingdom") (name fb:en.ireland Ireland) (name fb:en.australia Australia) (name fb:en.new_zealand "New Zealand") 60 | (name fb:en.kraft_foods "Kraft Foods") 61 | (number 0) 62 | (date 1859 -1 -1) 63 | (name fb:m.0chgh2j "WBA World Champion") 64 | (number 250) 65 | (number 14) 66 | (name fb:m.05z1_ Python) (name fb:en.web_development "Web development") (name fb:en.computer_programming "Computer programming") (name fb:en.computer_networking "Computer networking") 67 | (number 15) 68 | (name fb:en.royal_thai_army "Royal Thai Army") (name fb:en.royal_thai_air_force "Royal Thai Air Force") (name fb:en.royal_thai_navy "Royal Thai Navy") 69 | (name fb:en.taekwondo Taekwondo) (name fb:en.tai_chi_chuan "T'ai chi ch'uan") (name fb:en.american_kenpo "American Kenpo") (name fb:en.hapkido Hapkido) 70 | (date 1967 -1 -1) 71 | (number 3) 72 | (number 33) 73 | (date 2005 -1 -1) 74 | (name fb:en.shale Shale) 75 | (date 2006 12 9) 76 | (number 1) 77 | (date 1959 -1 -1) 78 | (number 15) 79 | (name fb:en.pg_13_usa "PG-13 (USA)") 80 | (name fb:en.aberdeen_washington Aberdeen) 81 | (number 11) 82 | (name fb:en.transmitter_station "Transmitter station") (name fb:en.observation_tower "Observation tower") 83 | (number 3) 84 | (number 3) 85 | (name fb:en.boston_university "Boston University") 86 | (name fb:en.stargate_sg_1_season_2 "Stargate SG-1 - Season 2") 87 | (name fb:en.gordon_bowker "Gordon Bowker") (name fb:en.jerry_baldwin "Jerry Baldwin") (name fb:en.zev_siegel "Zev Siegl") 88 | (name fb:en.shawn_horcoff "Shawn Horcoff") 89 | (name fb:en.bernard_marcus "Bernard Marcus") (name fb:en.arthur_blank "Arthur Blank") 90 | (name fb:en.gaelic_irish Irish) (name fb:en.breton_language Breton) (name fb:en.welsh_language "Welsh Language") 91 | (name fb:en.forget-me-not Forget-me-not) 92 | (name fb:en.adventureland Adventureland) (name fb:en.tomorrowland Tomorrowland) (name fb:en.new_orleans_square "New Orleans Square") (name fb:en.mickeys_toontown "Mickey's Toontown") (name fb:en.main_street_u_s_a "Main Street, U.S.A.") (name fb:en.critter_country "Critter Country") (name fb:en.frontierland Frontierland) (name fb:en.fantasyland Fantasyland) 93 | (boolean false) 94 | (name fb:en.china China) 95 | (name fb:en.third_baseman "Third baseman") 96 | (name fb:en.nonsporting_group "Non-Sporting Group") 97 | (name fb:en.france France) 98 | (number 13) 99 | (name fb:en.world_circuit "World Circuit") 100 | (name fb:en.chicago_bulls "Chicago Bulls") 101 | (number 200000000) (number 1032532974) (number 286729000) (number 229895000) (number 1000010000) (number 368148000) (number 811101000) (number 482803000) (number 635287000) (number 1022234000) 102 | (name fb:en.zinc_58 Zinc-58) (name fb:en.zinc_80 Zinc-80) (name fb:en.zinc_76 Zinc-76) (name fb:en.zinc_75 Zinc-75) (name fb:en.zinc_81 Zinc-81) (name fb:m.05_db8x Zinc-68) (name fb:en.zinc_54 Zinc-54) (name fb:en.zinc_59 Zinc-59) (name fb:en.zinc_77 Zinc-77) (name fb:m.05_dbjd Zinc-67) 103 | (name fb:en.marvel_comics "Marvel Comics") 104 | (number 1000 fb:en.meter) 105 | (date 1997 11 1) 106 | (name fb:m.04_7dzf "David H. Koch Institute for Integrative Cancer Research at MIT") (name fb:en.purdue_university_cancer_center "Purdue University Cancer Center") (name fb:en.salk_institute_cancer_center "Salk Institute Cancer Center") (name fb:en.cancer_research_center_of_hawaii "Cancer Research Center of Hawaii") (name fb:en.cancer_center_at_the_burnham_institute "Cancer Center at the Burnham Institute") (name fb:en.cancer_center_at_cold_spring_harbor_laboratory "Cancer Center at Cold Spring Harbor Laboratory") (name fb:en.wistar_institute_cancer_center "Wistar Institute Cancer Center") (name fb:en.the_jackson_laboratory_cancer_center "The Jackson Laboratory Cancer Center") 107 | (name fb:m.0c0l1tk "Everywhere You Look") 108 | (name fb:en.image_differencing "Image differencing") (name fb:en.mathematical_prediction "Mathematical prediction") 109 | (name fb:en.gphone Android) (name fb:en.openbsd OpenBSD) (name fb:en.cross-platform Cross-platform) (name fb:en.microsoft_windows "Microsoft Windows") (name fb:en.linux GNU/Linux) (name fb:en.mac_os_x "OS X") (name fb:en.linux_kernel "Linux kernel") 110 | (number 10) 111 | (name fb:en.april_kelly "April Kelly") (name fb:en.mel_tolkin "Mel Tolkin") (name fb:en.george_eckstein "George Eckstein") (name fb:m.0h5spq3 "Ernest Chambers") (name fb:en.ken_hecht "Ken Hecht") (name fb:en.bob_brunner "Bob Brunner") (name fb:m.09j_g4x "Jim Parker") (name fb:en.burt_metcalfe "Burt Metcalfe") (name fb:en.john_rappaport "John Rappaport") (name fb:en.dennis_koenig "Dennis Koenig") 112 | (name fb:en.kraft_foods "Kraft Foods") 113 | (date 2004 2 4) 114 | (name fb:en.midfielder Midfielder) (name fb:en.attacker Forward) 115 | (number 8) 116 | (name fb:en.middle-earth Middle-earth) (name fb:en.arda Arda) (name fb:en.rivendell Rivendell) (name fb:en.bag_end "Bag End") (name fb:en.lorien Lothlórien) 117 | (number 8) 118 | (date 1977 10 28) 119 | (number 11) 120 | (number 5296210000.000) (number 3331760000.000) (number 6894380000.000) (number 5383010000.000) (number 5548910000.000) (number 5631060000.000) (number 6973740000.000) (number 6737190000.000) (number 4144150000.000) (number 5028660000.000) 121 | (number 7) 122 | (number 0) 123 | (name fb:en.drew_barrymore "Drew Barrymore") (name fb:en.leonard_goldberg "Leonard Goldberg") (name fb:en.nancy_juvonen "Nancy Juvonen") 124 | (name fb:en.franz_xaver_sussmayr "Franz Xaver Süssmayr") 125 | (number 5) 126 | (number 358) 127 | (name fb:en.fredrick_church "Fredrick Church") (name fb:en.frank_prior "Frank Prior") 128 | (name fb:en.king_bowser "King Koopa") (name fb:en.luigi Luigi) (name fb:en.mario Mario) (name fb:en.princess_peach "Princess Peach") 129 | (name fb:en.assassination Assassination) (name fb:en.assassination_by_firearm "Assassination by firearm") 130 | (name fb:m.06mq7 Science) (name fb:m.04sh3 Medicine) 131 | (number 11) 132 | (number 4) 133 | (number 4) 134 | (number 24) 135 | (name fb:en.easter Easter) (name fb:en.christmas Christmas) (name fb:en.easter_monday "Easter Monday") (name fb:en.shrove_tuesday "Shrove Tuesday") (name fb:en.palm_sunday "Palm Sunday") (name fb:en.mothering_sunday "Mothering Sunday") (name fb:en.maundy_thursday "Maundy Thursday") (name fb:en.good_friday "Good Friday") 136 | (name fb:en.mcg "Joseph McGinty Nichol") 137 | (name fb:en.colorectal_cancer "Colorectal cancer") 138 | (date 1440 -1 -1) 139 | (name fb:en.brownsville_brooklyn Brownsville) (name fb:en.brooklyn_navy_yard "Brooklyn Navy Yard") (name fb:en.jamaica_new_york Jamaica) (name fb:en.meatpacking_district_manhattan "Meatpacking District") (name fb:en.long_island_city_queens "Long Island City") (name fb:en.bedford_stuyvesant_brooklyn Bedford-Stuyvesant) (name fb:en.fresh_meadows_queens "Fresh Meadows") (name fb:en.huguenot_staten_island Huguenot) (name fb:en.harlem Harlem) (name fb:en.marble_hill_manhattan "Marble Hill") 140 | (number 20) 141 | (number 17840000 fb:en.square_kilometer) 142 | (number 36994) 143 | (name fb:en.kansas_city_chiefs "Kansas City Chiefs") 144 | (number 564) 145 | (name fb:en.the_golden_isles "Golden Isles of Georgia") 146 | (number 3) 147 | (name fb:en.australopithecus_afarensis "Australopithecus afarensis") 148 | (number 1) 149 | (name fb:en.great_fire_of_london "Great Fire of London") 150 | (name fb:en.piano Piano) (name fb:en.guitar Guitar) 151 | (name fb:en.the_last_battle "The Last Battle") (name fb:en.the_horse_and_his_boy "The Horse and His Boy") (name fb:en.the_magicians_nephew "The Magician's Nephew") (name fb:en.the_lion_the_witch_and_the_wardrobe "The Lion, the Witch and the Wardrobe") (name fb:en.prince_caspian "Prince Caspian") (name fb:en.the_silver_chair "The Silver Chair") (name fb:en.the_voyage_of_the_dawn_treader "The Voyage of the Dawn Treader") 152 | (name fb:en.superman Superman) (name fb:en.james_gordon "James Gordon") (name fb:m.0p6vc Joker) (name fb:en.batman Batman) (name fb:en.robin Robin) 153 | (name fb:en.tudor_dynasty "Tudor dynasty") 154 | (number 8000000) 155 | (number 225) 156 | (boolean false) 157 | (name fb:en.taxi Taxi) 158 | (name fb:en.mickey_arthur "Mickey Arthur") 159 | (name fb:en.tao_te_ching "Tao Te Ching") (name fb:en.zhuangzi Zhuangzi) (name fb:en.i_ching "I Ching") (name fb:en.daozang Daozang) 160 | (name fb:en.curtis_hanson "Curtis Hanson") 161 | (number 4) 162 | (date 1962 -1 -1) 163 | (name fb:en.nick_hill "Nick Hill") (name fb:en.alan_autry "Alan Autry") (name fb:en.brian_brohm "Brian Brohm") (name fb:en.brett_favre "Brett Favre") (name fb:en.bart_starr "Bart Starr") (name fb:en.mark_brunell "Mark Brunell") (name fb:en.matt_flynn_1985 "Matt Flynn") (name fb:en.ty_detmer "Ty Detmer") 164 | (number 5) 165 | (number 10) 166 | (date 2010 7 15) 167 | (name fb:en.victorian_gothic "Gothic Revival architecture") 168 | (number 0) 169 | (number 94) 170 | (number 1) 171 | (date 2004 4 14) 172 | (date 1950 -1 -1) 173 | (date 1969 11 10) 174 | (name fb:en.gary_larson "Gary Larson") 175 | (name fb:en.cardiovascular_disease "Cardiovascular disease") (name fb:en.stroke Stroke) (name fb:en.meningitis Meningitis) (name fb:en.inflammatory_heart_disease "Inflammatory heart disease") (name fb:en.myocarditis Myocarditis) (name fb:en.leukemia Leukemia) (name fb:en.aids AIDS) (name fb:en.anxiety_disorder "Anxiety disorder") (name fb:en.brain_tumors "Brain tumor") (name fb:en.hypertension Hypertension) 176 | (name fb:en.civilization_iii "Civilization III") (name fb:en.max_payne "Max Payne") (name fb:en.age_of_empires_iii "Age of Empires III") (name fb:en.age_of_empires_iii_the_asian_dynasties "Age of Empires III: The Asian Dynasties") (name fb:en.age_of_empires_iii_the_war_chiefs "Age of Empires III: The WarChiefs") (name fb:en.halo_combat_evolved "Halo: Combat Evolved") (name fb:en.clive_barkers_undying "Clive Barker's Undying") (name fb:en.zoo_tycoon_2 "Zoo Tycoon 2") (name fb:en.rise_of_nations_thrones_and_patriots "Rise of Nations: Thrones and Patriots") 177 | (boolean false) 178 | (number 21) 179 | (name fb:en.split_decision "Split decision") 180 | (name fb:m.0nk3wm7 "Angel's Envy") (name fb:en.woodford_reserve "Woodford Reserve") 181 | (date 1978 -1 -1) 182 | (date 1991 -1 -1) 183 | (name fb:en.cattle Cattle) 184 | (name fb:en.james_cameron "James Cameron") 185 | (name fb:en.the_rumble_in_the_jungle "The Rumble in the Jungle") 186 | (number 46) 187 | (number 17) 188 | (name fb:en.line_m_nyc_subway "Line M, NYC Subway") (name fb:en.line_d_nyc_subway "Line D, NYC Subway") (name fb:en.line_r_nyc_subway "Line R, NYC Subway") (name fb:en.line_n_nyc_subway "Line N, NYC Subway") (name fb:en.line_s_42nd_street_nyc_subway "Line S - 42nd Street, NYC Subway") (name fb:en.line_q_nyc_subway "Line Q, NYC Subway") (name fb:en.line_l_nyc_subway "Line L, NYC Subway") (name fb:en.line_4_nyc_subway "Line 4, NYC Subway") (name fb:en.line_f_nyc_subway "Line F, NYC Subway") (name fb:en.line_5_nyc_subway "Line 5, NYC Subway") 189 | (date 1774 -1 -1) 190 | (date 1945 -1 -1) 191 | (name fb:en.detroit_red_wings "Detroit Red Wings") 192 | (number 3) 193 | (date 2010 5 11) 194 | (date 2004 2 20) 195 | (name fb:en.zoologischer_garten_berlin "Berlin Zoological Garden") 196 | (number 61 fb:en.meter) 197 | (number 15) 198 | (boolean false) (boolean false) 199 | (name fb:en.steve_jobs "Steve Jobs") (name fb:en.jef_raskin "Jef Raskin") (name fb:en.bill_atkinson "Bill Atkinson") (name fb:en.burrell_smith "Burrell Smith") (name fb:en.bud_tribble "Bud Tribble") 200 | (number 119) 201 | (name fb:en.inglewood Inglewood) 202 | (name fb:en.capitoline_hill "Capitoline Hill") (name fb:en.st_peters_basilica "St. Peter's Basilica") (name fb:en.palazzo_chigi "Palazzo Chigi") (name fb:en.spanish_steps "Spanish Steps") (name fb:en.palazzo_spada "Palazzo Spada") (name fb:en.galleria_borghese "Galleria Borghese") (name fb:en.baths_of_caracalla "Baths of Caracalla") (name fb:en.san_nicola_in_carcere "San Nicola in Carcere") (name fb:en.villa_deste "Villa d'Este") (name fb:en.quirinal_palace "Quirinal Palace") 203 | (name fb:en.coffee Coffee) 204 | (date 1990 -1 -1) 205 | (number 4) 206 | (name fb:en.germanic_languages "Germanic languages") (name fb:en.indo-european_languages "Indo-European languages") 207 | (number 20) 208 | (number 14) 209 | (name fb:en.eta_aquarids "Eta Aquariids") (name fb:en.orionids Orionids) 210 | (date 1813 1 28) 211 | (name fb:en.intamin_ag Intamin) 212 | (name fb:en.batman Batman) (name fb:en.dick_grayson "Dick Grayson") 213 | (name fb:en.herringbone Herringbone) 214 | (number 6) 215 | (number 6) 216 | (number 376000000) 217 | (number 32000000) 218 | (name fb:m.0jp72 J) (name fb:en.cplusplus C++) (name fb:en.supercollider_programming_language SuperCollider) (name fb:m.07sbkfb Java) (name fb:en.groovy Groovy) (name fb:m.07657k "C#") (name fb:en.php PHP) (name fb:en.clu CLU) (name fb:m.02q47bp GOO) (name fb:en.dylan Dylan) 219 | (name fb:en.joseph_j_rishel "Joseph J. Rishel") (name fb:en.sylvie_patry "Sylvie Patry") (name fb:en.j_patrice_marandel "J.Patrice Marandel") (name fb:en.claudia_einecke "Claudia Einecke") 220 | (name fb:en.kenya Kenya) 221 | (name fb:m.0chgh2j "WBA World Champion") (name fb:m.0cj52b7 "WBC World Champion") 222 | (name fb:en.simcity_ds "SimCity DS") (name fb:m.08p1hc Haunting) (name fb:en.strike_series "Strike series") (name fb:m.0gngh0 Wolf) (name fb:m.026lkl_ "Harry Potter and the Order of the Phoenix") (name fb:en.madden_season_2 "Madden Season 2") (name fb:m.024bd5 "Medal of Honor: Frontline") (name fb:en.need_for_speed_most_wanted "Need for Speed: Most Wanted") (name fb:en.ultima_online_kingdom_reborn "Ultima Online: Kingdom Reborn") (name fb:en.skate_or_die "Skate or Die!") 223 | (number 26) 224 | (date 1996 6 27) 225 | (name fb:en.pg_13_usa "PG-13 (USA)") 226 | (number 24) 227 | (name fb:en.floyd_cramer "Floyd Cramer") (name fb:en.jacques_brel "Jacques Brel") (name fb:en.nat_king_cole "Nat King Cole") (name fb:en.alan_jay_lerner "Alan Jay Lerner") (name fb:en.davy_graham "Davy Graham") (name fb:en.eric_gale "Eric Gale") (name fb:en.duke_ellington "Duke Ellington") (name fb:en.ike_quebec "Ike Quebec") (name fb:en.jimmy_carl_black "Jimmy Carl Black") (name fb:en.sarah_vaughan "Sarah Vaughan") 228 | (name fb:en.suspension_bridge "Suspension bridge") 229 | (name fb:en.field_hockey "Field hockey") 230 | (name fb:m.0h13_vx Pheidias) (name fb:en.phidias Phidias) (name fb:en.kallikrates Callicrates) (name fb:en.iktinos Ictinus) 231 | (number 6) 232 | (name fb:en.kurt_behrens "Kurt Behrens") (name fb:en.ronny_ackermann "Ronny Ackermann") (name fb:m.0gg6b25 "John Degenkolb") (name fb:en.philipp_zeller "Philipp Zeller") (name fb:en.kevin_kuske "Kevin Kuske") (name fb:en.georg_hettich "Georg Hettich") (name fb:en.jochen_hecht "Jochen Hecht") (name fb:m.0k8m4xt "Katharina Otte") (name fb:en.marcus_popp "Marcus Popp") (name fb:en.christian_reif "Christian Reif") 233 | (name fb:en.atlanta_braves "Atlanta Braves") (name fb:en.new_york_yankees "New York Yankees") (name fb:en.boston_red_sox "Boston Red Sox") 234 | (name fb:m.03ntpk "Swimming at the 2004 Summer Olympics – Men's 4 × 200 metre freestyle relay") (name fb:m.03npn4 "Swimming at the 2004 Summer Olympics – Men's 400 metre freestyle") (name fb:m.03nqy2 "Swimming at the 2004 Summer Olympics – Men's 100 metre freestyle") (name fb:m.03nn1d "Swimming at the 2004 Summer Olympics – Men's 200 metre freestyle") 235 | (number 11.400 fb:en.meter) 236 | (name fb:en.hugh_obrian_youth_leadership_foundation "Hugh O'Brian Youth Leadership Foundation") 237 | (name fb:en.sigismund_holy_roman_emperor "Sigismund, Holy Roman Emperor") 238 | (name fb:en.mario_caldato_jr "Mario Caldato Jr.") 239 | (number 1) 240 | (number 23) 241 | (name fb:en.christiaan_huygens "Christiaan Huygens") 242 | (number 230000 fb:en.pixel) 243 | (date 1915 -1 -1) 244 | (number 280 fb:en.gram) 245 | (name fb:en.burnage Burnage) 246 | (number 92) 247 | (name fb:en.politics_of_the_united_states "Politics of the United States") 248 | (name fb:en.history History) 249 | (string "Consumed by the fires of Orodruin (Mount Doom) when Gollum fell in after taking the ring from Frodo.") 250 | (number 13981) 251 | (name fb:en.clara_barton "Clara Barton") 252 | (number 154) 253 | (name fb:m.02k87p1 Medium) 254 | (number 14 fb:en.minute) 255 | (number 2003) 256 | (name fb:en.neurotransmitter_imbalance "Neurotransmitter imbalance") (name fb:en.genetic_factors "Genetic factors") 257 | (name fb:en.treponema_pallidum "Treponema pallidum") 258 | (name fb:en.neil_armstrong "Neil Armstrong") 259 | (name fb:en.raleigh_chopper "Raleigh Chopper") (name fb:en.raleigh_record "Raleigh Record") (name fb:en.raleigh_burner "Raleigh Burner") (name fb:en.raleigh_grifter "Raleigh Grifter") (name fb:en.raleigh_competition "Raleigh Competition") (name fb:en.raleigh_team_professional "Raleigh Team Professional") (name fb:en.raleigh_professional "Raleigh Professional") (name fb:m.0b9t3l2 "Raleigh International") (name fb:en.raleigh_super_course "Raleigh Super Course") (name fb:en.raleigh_grand_prix "Raleigh Grand Prix") 260 | (name fb:en.romeo_and_juliet "Romeo and Juliet") 261 | (name fb:en.zimbabwean_cricket_team "Zimbabwe national cricket team") 262 | (number 7) 263 | (name fb:en.steve_bell "Steve Bell") (name fb:en.paula_zahn "Paula Zahn") 264 | (name fb:en.bob_schieffer "Bob Schieffer") (name fb:en.scott_pelley "Scott Pelley") (name fb:en.russ_mitchell "Russ Mitchell") (name fb:en.dan_rather "Dan Rather") (name fb:en.walter_cronkite "Walter Cronkite") (name fb:en.katie_couric "Katie Couric") (name fb:en.douglas_edwards "Douglas Edwards") 265 | --------------------------------------------------------------------------------