Simple Question (Direct)
Simple Question
Q5666190
P102
Q7210356
USER
Which party does Alexander López belong to ?
(Q5666190,P102,c(Q7210356))
action filter_type
action find
entity Q5666190
relation P102
type Q7210356
['Q5666190', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q5666190 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Alexander López
action filter_type
action find
entity Alexander López
relation member of political party
type political organization
['Alexander López', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Alexander_López property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
political organization
Q2251452
SYSTEM
Alternative Democratic Pole
Q2251452
(Q5666190,P102,c(Q7210356))
action filter_type
action find
entity Q5666190
relation P102
type Q7210356
[ANSWER]
['Q5666190', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q5666190 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Alternative Democratic Pole
Alternative Democratic Pole
action filter_type
action find
entity Alexander López
relation member of political party
type political organization
['Alexander López', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Alexander_López property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5666190
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q2251452,P19,c(Q56061))
action filter_type
action find
entity Q5666190
relation P19
type Q56061
['Q2251452', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q5666190 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Alexander López
action filter_type
action find
entity Alexander López
relation place of birth
type administrative territorial entity
['Alternative Democratic Pole', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Alexander_López property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q51103
SYSTEM
Cali
Q51103
(Q2251452,P19,c(Q56061))
action filter_type
action find
entity Q5666190
relation P19
type Q56061
[ANSWER]
['Q2251452', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q5666190 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Cali
Cali
action filter_type
action find
entity Alexander López
relation place of birth
type administrative territorial entity
['Alternative Democratic Pole', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Alexander_López property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5666190
P21
Q290
USER
Which sex does that person have ?
(Q51103,P21,c(Q290))
action filter_type
action find
entity Q5666190
relation P21
type Q290
['Q51103', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q290 . resource:Q5666190 property:P21 ?a }
Alexander López
action filter_type
action find
entity Alexander López
relation gender
type sex
['Cali', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sex . resource:Alexander_López property:gender ?a }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q51103,P21,c(Q290))
action filter_type
action find
entity Q5666190
relation P21
type Q290
[ANSWER]
['Q51103', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q290 . resource:Q5666190 property:P21 ?a }
male
male
action filter_type
action find
entity Alexander López
relation gender
type sex
['Cali', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sex . resource:Alexander_López property:gender ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P69
Q502895
USER
Who was a student at that sex ?
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?u WHERE { ?u property:P69 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?u WHERE { ?u property:educated_at resource:male . ?u rdf:type ontology:common_name }
[]
common name
Q4662307
SYSTEM
Aaron Parchem
Q4662307
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?u WHERE { ?u property:P69 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
Aaron Parchem
Aaron Parchem
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?u WHERE { ?u property:educated_at resource:male . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q4662307 Q26692000 Q13219587
P106
Q12737077
USER
Does that person have career as mayor of Santiurde de Toranzo and figure skater ?
(Q4662307,P106,Q26692000) (Q4662307,P106,Q13219587)
action is_in
entity Q4662307
action intersection
action find_reverse
entity Q26692000
relation P106
action find_reverse
entity Q13219587
relation P106
['Q4662307', 'P106', 'Q26692000'] ['Q4662307', 'P106', 'Q13219587']
ASK WHERE { resource:Q4662307 property:P106 resource:Q26692000 . resource:Q4662307 property:P106 resource:Q13219587 }
Aaron Parchem mayor of Santiurde de Toranzo figure skater
action is_in
entity Aaron Parchem
action intersection
action find_reverse
entity mayor of Santiurde de Toranzo
relation occupation
action find_reverse
entity figure skater
relation occupation
['Aaron Parchem', 'occupation', 'mayor of Santiurde de Toranzo'] ['Aaron Parchem', 'occupation', 'figure skater']
ASK WHERE { resource:Aaron_Parchem property:occupation resource:mayor_of_Santiurde_de_Toranzo . resource:Aaron_Parchem property:occupation resource:figure_skater }
[]
occupation
SYSTEM
NO and YES respectively
(Q4662307,P106,Q26692000) (Q4662307,P106,Q13219587)
action is_in
entity Q4662307
action intersection
action find_reverse
entity Q26692000
relation P106
action find_reverse
entity Q13219587
relation P106
[ANSWER]
['Q4662307', 'P106', 'Q26692000'] ['Q4662307', 'P106', 'Q13219587']
ASK WHERE { resource:Q4662307 property:P106 resource:Q26692000 . resource:Q4662307 property:P106 resource:Q13219587 }
NO and YES respectively
action is_in
entity Aaron Parchem
action intersection
action find_reverse
entity mayor of Santiurde de Toranzo
relation occupation
action find_reverse
entity figure skater
relation occupation
['Aaron Parchem', 'occupation', 'mayor of Santiurde de Toranzo'] ['Aaron Parchem', 'occupation', 'figure skater']
ASK WHERE { resource:Aaron_Parchem property:occupation resource:mayor_of_Santiurde_de_Toranzo . resource:Aaron_Parchem property:occupation resource:figure_skater }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7260481 Q26692000
P1313
Q1048835
USER
Which political territories have mayor of Santiurde de Toranzo or Punong Barangay as position of head of government ?
OR((c(Q1048835),P1313,Q26692000), (c(Q1048835),P1313,Q7260481))
action filter_type
action union
action find_reverse
entity Q26692000
relation P1313
action find_reverse
entity Q7260481
relation P1313
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P1313', 'Q26692000'], [{'concept': 'Q1048835'}, 'P1313', 'Q7260481']]}
SELECT DISTINCT ?n WHERE { { ?n property:P1313 ?h . VALUES ( ?h ) { ( resource:Q26692000 ) ( resource:Q7260481 ) } } . ?n rdf:type ontology:Q1048835 }
Punong Barangay mayor of Santiurde de Toranzo
action filter_type
action union
action find_reverse
entity mayor of Santiurde de Toranzo
relation office held by head of government
action find_reverse
entity Punong Barangay
relation office held by head of government
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Santiurde de Toranzo'], [{'concept': 'political territorial entity'}, 'office held by head of government', 'Punong Barangay']]}
SELECT DISTINCT ?n WHERE { { ?n property:office_held_by_head_of_government ?h . VALUES ( ?h ) { ( resource:mayor_of_Santiurde_de_Toranzo ) ( resource:Punong_Barangay ) } } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5015225 Q5032508 Q26772669 Q5226803 Q26789245 Q5428133 Q4842171 Q6764407 Q7808849 Q7675347
SYSTEM
Some of them are Cabancalan, Canlambong, Camputhaw, Dasmariñas Village, Canjulao, Fabrica, Bagumbayan South, Marinig, Tipolo, Taguilon, Dapitan
Q27038826 Q251207 Q27038821 Q7414428 Q26722355 Q26722357 Q26790214 Q251199 Q7413901 Q26772609 Q7080277 Q7930933 Q7206215 Q7206214 Q26791243 Q7206216 Q7885304 Q7206210 Q26791247 Q7206212 Q16879834 Q15206815 Q6792462 Q7199122 Q26883699 Q15729055 Q7415069 Q5017377 Q15206811 Q7451347 Q6741251 Q6772385 Q16875628 Q7124124 Q26794274 Q17088893 Q26794271 Q5020182 Q4997923 Q7906961 Q26821228 Q26788715 Q7523674 Q5252972 Q5015225 Q26821205 Q5015388 Q26763388 Q1607337 Q26883888 Q5048060 Q4873888 Q5048064 Q26883993 Q26839023 Q6750571 Q17087430 Q18359182 Q4857242 Q251253 Q7415260 Q7918697 Q26821335 Q6674900 Q17134341 Q26884105 Q17078091 Q7521776 Q16252794 Q17059168 Q6747791 Q4941843 Q26821298 Q16256601 Q7142288 Q4753476 Q26818011 Q16968823 Q6472743 Q3473116 Q26884079 Q26884074 Q26771352 Q16851746 Q6674975 Q251244 Q26770865 Q26803753 Q4985408 Q15215342 Q7227812 Q26790436 Q4858374 Q4985490 Q4792036 Q5515387 Q7228491 Q7673498 Q17083653 Q26804579 Q7335345 Q26791580 Q4907000 Q7006211 Q7419971 Q26789245 Q7196382 Q26883254 Q5939706 Q16259373 Q6729545 Q7413504 Q26791738 Q5518554 Q6373610 Q7850905 Q5616614 Q26772556 Q26840407 Q18352333 Q17077723 Q7415340 Q7403624 Q7414689 Q16894478 Q13454609 Q17087490 Q7675135 Q5024911 Q26792869 Q7684726 Q26792860 Q13568300 Q7808513 Q16948770 Q6746839 Q16253568 Q26884098 Q5243060 Q7680997 Q5565889 Q2246048 Q5437840 Q5437841 Q26763596 Q6785975 Q7083569 Q251235 Q13448620 Q7415107 Q26722340 Q6547828 Q16250729 Q26805182 Q7413556 Q4855235 Q16885743 Q7930512 Q26791555 Q15196436 Q7137012 Q7414317 Q26791399 Q7260616 Q17081330 Q26736176 Q17075941 Q18350152 Q26788637 Q7206558 Q3551500 Q26786528 Q7414484 Q16900799 Q7414894 Q6503551 Q26771138 Q17087638 Q7630505 Q26792671 Q7413900 Q7260501 Q7260500 Q4975124 Q26785978 Q5207378 Q5024915 Q17087595 Q26791602 Q7135479 Q7403318 Q26883984 Q26883987 Q7906996 Q7906995 Q7906994 Q5032508 Q7595670 Q7807986 Q17128297 Q6887381 Q26821328 Q26884117 Q7131203 Q5158354 Q5023041 Q5644179 Q7130474 Q7801330 Q3791229 Q26792855 Q5437809 Q17073535 Q7041692 Q5015604 Q26772619 Q17083638 Q16837938 Q26821178 Q7563751 Q15195861 Q7684100 Q4858365 Q4971739 Q4858360 Q17059680 Q4941222 Q26771461 Q4841388 Q4866172 Q26789604 Q26837556 Q4881694 Q26794384 Q13448615 Q2567758 Q7292717 Q7262180 Q16919440 Q18357018 Q7682512 Q6764407 Q26790550 Q26794457 Q7179691 Q7414325 Q4830864 Q26790855 Q26883126 Q18351821 Q6704971 Q26791721 Q15228491 Q15228490 Q26883281 Q7131658 Q7850910 Q15228282 Q26722330 Q4842066 Q6503565 Q17087563 Q6005613 Q16256090 Q15241721 Q5210202 Q5197069 Q26884010 Q4839895 Q16253286 Q6681924 Q17077918 Q26763510 Q7419881 Q251617 Q17083859 Q17027029 Q6154118 Q5043737 Q26772540 Q7132058 Q26791716 Q17059316 Q26787936 Q26787837 Q5428133 Q26884089 Q26882023 Q7057697 Q26763601 Q6850435 Q7525554 Q26787741 Q27038794 Q26790096 Q5124160 Q6410356 Q5589527 Q4858364 Q7417761 Q251227 Q15265299 Q6721589 Q18351169 Q15242574 Q6013514 Q17086646 Q26882110 Q26791545 Q7130989 Q7414717 Q7414716 Q26791262 Q26817972 Q5400596 Q7413491 Q1192700 Q7683128 Q13448485 Q18387606 Q26794358 Q16889991 Q5289495 Q12971186 Q4866174 Q26722329 Q6729316 Q7851608 Q5520420 Q26883879 Q26821340 Q2278939 Q4842171 Q4842172 Q4842074 Q7808239 Q6750590 Q26772535 Q5025021 Q26793930 Q26793933 Q26793937 Q7420465 Q7126745 Q7419265 Q6550217 Q16902320 Q4944119 Q26883703 Q26882412 Q26818015 Q7853049 Q16256141 Q7675283 Q26840255 Q6745462 Q4913839 Q26763524 Q5005706 Q4673688 Q26821264 Q7259562 Q17072262 Q4902397 Q26722348 Q26794815 Q26772669 Q6472726 Q7228537 Q26882015 Q4858359 Q5617844 Q18698427 Q4996406 Q27038835 Q251218 Q26883895 Q18379779 Q6982550 Q15245384 Q5024112 Q251261 Q26791530 Q26722333 Q7206209 Q26722337 Q26722335 Q26722334 Q7415094 Q7415090 Q26839043 Q4942788 Q17149831 Q26794365 Q3322211 Q5002737 Q7675347 Q7414323 Q26794534 Q6466814 Q6418849 Q5275239 Q18356359 Q26839033 Q7406294 Q6958739 Q16255476 Q5048790 Q7225884 Q5032522 Q7415252 Q4943329 Q5467263 Q26821281 Q26818002 Q4779926 Q7926513 Q5048791 Q26883286 Q26884003 Q5060477 Q26722360 Q26722361 Q26722363 Q26722368 Q26791726 Q26771262 Q6728869 Q15274816 Q26882288 Q26772658 Q6118145 Q13568074 Q5313614 Q6669136 Q26789404 Q7808848 Q7808849 Q7262284 Q26791590 Q26804566 Q7636841 Q4708210 Q18378616 Q7851610 Q7851619 Q4518656 Q26794368 Q7415226 Q15195859 Q4987190 Q4853987 Q4849436 Q16256022 Q13448588 Q17078522 Q7122055 Q26793923 Q26793920 Q26772426 Q7684414 Q17088368 Q7415356 Q26772457 Q7413810 Q27038295 Q5221557 Q5211746 Q4856826 Q26884124 Q4889572 Q5061130 Q5141276 Q26789319 Q16893935 Q26840243 Q6298722 Q7259557 Q4942643 Q17083541 Q18354279 Q1026024 Q4918177 Q17090175 Q4906774 Q5760712 Q4849806 Q4849807 Q26794264 Q5226803 Q7272069 Q6967765 Q5033494 Q6375183 Q5018637 Q4982103 Q7413586 Q4865837 Q26884132
OR((c(Q1048835),P1313,Q26692000), (c(Q1048835),P1313,Q7260481))
action filter_type
action union
action find_reverse
entity Q26692000
relation P1313
action find_reverse
entity Q7260481
relation P1313
type Q1048835
[ANSWERS]
{'OR': [[{'concept': 'Q1048835'}, 'P1313', 'Q26692000'], [{'concept': 'Q1048835'}, 'P1313', 'Q7260481']]}
SELECT DISTINCT ?n WHERE { { ?n property:P1313 ?h . VALUES ( ?h ) { ( resource:Q26692000 ) ( resource:Q7260481 ) } } . ?n rdf:type ontology:Q1048835 }
Calma Guyong Cagwang San Jose Lotloton Manan‑ao Ibo Barangay Santa Clara, Santa Maria San Francisco Budla‑an Oguisan Villarica, Midsayap, Cotabato Poblacion I Poblacion II Marigondon Poblacion III Union Poblacion, Kalibo Pajac Poblacion Minda, Samar Calanggaman Maulong, Catbalogan Pittland Pahina San Nicolas Coronon, Davao del Sur San Pascual Cagting Calampong, Samar Sentinela Malanday Maroroy San Juan, Surigao Pag-asa Lahug Sta. Clara, Santo Tomas, Batangas Kasambagan California Buntay, Dagami, Leyte VI-D Sirao Calawisan Singkamas Del Remedio Cabancalan Santa Cruz Cabilang Baybay, Carmona, Cavite Balidbid Santiurde de Toranzo Pasil Casate Bay-ang Casay, Anini-y, Antique San Nicolas Central Basak Pardo Manlayo, Guinayangan, Quezon San Agustin, Santo Tomas, Batangas Botlog Island Bantog, Anao, Tarlac Bagbaguin, Santa Maria San Roque West, Agoo, La Union Veinte Reales Tinago Looc, Mandaue Tulo Tabunan Mantalongon, Cebu Sinandigan Bagolatao, Camarines Sur Burol, Dasmariñas Mandaloque, Dingras, Ilocos Norte Bongbong Taptap DPS Compound Pasonanca, Zamboanga City Andagao San Antonio Mabilao Laguilayan, Isulan Sapangbato, Angeles Suba (Suba San Nicolas) Sinsin Pooc Caparangasan Look 1st Pulong Buhangin, Santa Maria Maricaban Pari‑an Buena Suerte, El Nido, Palawan Dumara, Zamboanga del Sur Pongon Looc Barangka Buenavista Arkong Bato Gabi Pooc, Talisay, Cebu Tabon Island Palo Alto, Calamba Pit‑os Rio Tuba, Bataraza, Palawan Sabang Bignay New Buswang, Kalibo Santa Veronica Canjulao Pinocawan, Javier, Leyte Kinasang‑an Pardo Humayhumay Naliwatan, Leyte Mag-abo, Amlan San Carlos Tungasan Galicia Karuhatan Tubog Guintabo-an Binaliw Buot-Taup Pardo Manlot Maglahus, Davao Oriental San Teodoro, Bunawan, Agusan del Sur Salangbato, Famy, Laguna San Lorenzo Mahayag, Bohol Santa Isabel San Fernando, Santo Tomas, Batangas Tagalag Camali-an Cogon Ramos Tapon Central Irisan Tintinan Fatima Manalipa Island Batino, Calamba Sudlon II Dayangdang, Naga City Tambacan, Iligan Giwan, Surigao del Norte Pugalo, Alcoy Fatima III, San Jose del Monte Fatima II, San Jose del Monte Kinatarkan Matagbak, Alfonso, Cavite Old Buswang, Kalibo Mag-asawang Sapa, Santa Maria Tangos South San Pedro Cutud Libo Lilingayon Aliguay Pulangbato San Crispin Bangkulasi San Antonio, Batangas Villa Teresita Pusok Bancal, Cavite Pariancillo Villa San Isidro Pangan‑an Punturin Nalook Abijilan Libertad, Romblon Loguingot Buaya Poctol Maitim 2nd East Babag San Jose Sico Dulong-Bayan San Mateo Lawaan II Okoy San Miguel, Tarlac Suarez, Iligan Capitol Site San Francisco Punta, Calamba Punta, Looc, Romblon Brookspoint, Baguio Agus Daanghari Camambugan San Luis, Santo Tomas, Batangas, Santa Rosa Parang, Jose Panganiban, Camarines Norte Sala Punta Princesa Quiot Pardo VII-D VII-B VII-C Canlambong Sta. Cruz, Jose Panganiban, Camarines Norte Tinajeros Turbina Mobo, Kalibo Tejero (Villa Gonzalo) Tagbao Panitian, Quezon, Palawan Concepcion Calmay, Laoac, Pangasinan Hambabauran Pandan Tigayon, Kalibo Lantic, Carmona Carreta Fatima Ilog, Quezon Niugan Cabiton-an, Daram, Samar Busay Paliparan, Dasmariñas Barangay O'Donnell San Roque Sorsogon, Malabuyoc, Cebu Bachaw Sur, Kalibo Tanza Barangay Talon-Talon Briz District Barangay Cabatuan, Palapag, Northern Samar Salawag, Dasmariñas Bonawon, Siaton, Negros Oriental Talisay Bagacay, Hinabangan, Samar Basak Cawhagan Babag Bel-Air Village Mabini Tangos North Kay-Anlog Rangeban, Midsayap, Cotabato Barangay Putat Napti Bayas Island Tandubato Marinig Mactan Mabolo Peñafrancia, Naga, Camarines Sur San Isidro Alabang Maribago Kalunasan Malangabang Lurogan Talima Imelda Imelda, Biliran Labangon Pantao Tuboran Ilihan Bino‑ongan Bagong Bayan Lawang Bato San Joaquin, Santo Tomas, Batangas, Imnajbu Calansayan Larrazabal, Biliran Dalandanan Cuya Sawang Calero Baclaran Barandal, Calamba Los Angeles Makiling, Calamba Hagdan Santa Rosa Del Sur, Pasacao, Camarines Sur Mabuhay, Carmona Panducot, Bulacan Bual Norte, Cotabato Jangtud, Palapag Northern Samar Carmona Banilad Pao, Manaoag, Pangasinan Subabasbas Langkaan, Dasmariñas Basak Baring Fabrica Sudlon I Cogon Pardo Northbay Boulevard, North Langub Milagrosa, Carmona, Cavite Sipac Almacen Bankal Basiao Gun‑ob Ciudad Real Kinakin, Banaue, Ifugao Governor Boyles Barangay San Benito, Dagami Sanga-Sanga Catmon Pangdan Mabilo, Kalibo Alibhon Lo-oc, Cebu Inampulugan Real, Calamba Duljo Punta Engaño Pangpang San Lucas 2 San Lucas 1 Pajo Sambag I Estancia, Kalibo San Buenaventura Balangkas Tangos Isla Taguiporo Lorega (Lorega San Miguel) Santa Cruz, Camarines Sur Dolores Solo Basak, Bais, Negros Oriental Balolong Maestrang Kikay, Talavera, Nueva Ecija Tugatog Gamut, Tago, Surigao del Sur Pardo Zapatera Banilad Bagumbayan South Bagumbayan North Bagontaas Tinigao, Kalibo Manlilisid, Javier, Leyte Bacayan Cambaro, Mandaue Guba Hippodromo Kalubihan Santo Angel Palasan Santa Catalina Linabuan Norte, Kalibo Union, Surigao del Norte Booy Pamutan Inayawan San Jose Tungkong Mangga Calubcub Tagkip, Dagami, Leyte Bulacao Mamatid Binahian, Sipocot, Camarines Sur Hilantagaan Matabungkay Achila T. Padilla Pulong Balibaguhan, Mabini, Batangas Halang, Calamba Biabas Lomangcapan Pahina Central Camputhaw Lagtang, Talisay, Cebu Pook, Kalibo Calamba Barangay Barra Gulod Bantulán Bulilis Cambuyo Lalakhan Pung‑ol-Sibugay Calaocan Navotas East Mansasa, Tagbilaran Calumpang Caypombo, Santa Maria Poblacion Bitaug Poblacion, Kadingilan, Bukidnon Cangmangki Camogao Bolot San Pedro San Pedro, Bagabag, Nueva Vizcaya Bonbon Bood Tobog Lusaran Bilogo Butong Taguilon, Dapitan San Isidro Malubog Labayug, Sison, Pangasinan Kiwanan, Midsayap, Cotabato Diezmo Manipulon Basak San Nicolas Salunayan, Midsayap, Cotabato Nagbobtac, Palapag, Northern Samar Briones, Kalibo Casile Polo Canlubang San Roque Bool Forbes Park Talamban Sambag II Apitong Victoria, Roxas, Oriental Mindoro Casili, Gubat, Sorsogon Mambaling Sapangdaku Central Bulanan, Midsayap, Cotabato Olave Parian Poblacion Tulapos Tingo Poblacion Maduya, Carmona, Cavite San Isidro Guadalupe Cambinocot Jaclupan, Talisay, Cebu Mount Nebo Dumalo-ong, Gandara, Samar Lomangog Caw‑oy Tipolo, Mandaue, Cebu Tipolo Putik, Zamboanga City San Vicente Paril Suluan Island Alang-alang, Mandaue City Binuluangan Tugaya Tugbong Wawa, Pilar Luz San Rafael Village Bachaw Norte, Kalibo Bulacnin Banay-Banay Bakilid Caano Navotas West Mayapa, Calamba Pachoca, Calapan Ermita Day‑as Agsungot Tapal Sirang Lupa, Calamba San Vicente Apas San Esteban, Nabua, Camarines Sur Antipolo Dapa township, Surigao del Norte Dalupaon, Pasacao, Camarines Sur Banlic Tisa Benliw Central Glad, Midsayap, Cotabato Cogon Caubian Lamao, Zamboanga del Norte Buhisan Juagdan Pulo Bonuan Gueset, Dagupan Paciano Rizal, Calamba San Antonio, San Pedro, Laguna Lamao, Limay Bisig Tamak, Batangas Bigaa Hilabago, Dagami, Leyte Balagasan Balagatasa Kamagayan Dasmariñas Village Quinaoayanan Bani, Pangasinan Nasugban, Santa Barbara, Iloilo Cansolabao, Hinabangan, Samar Katarungan Calayo Bual, Midsayap, Cotabato San Diego Barucboc, Quezon, Isabela To‑ong Pardo
Cabancalan Canlambong Camputhaw Dasmariñas Village Canjulao Fabrica Bagumbayan South Marinig Tipolo Taguilon, Dapitan
action filter_type
action union
action find_reverse
entity mayor of Santiurde de Toranzo
relation office held by head of government
action find_reverse
entity Punong Barangay
relation office held by head of government
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Santiurde de Toranzo'], [{'concept': 'political territorial entity'}, 'office held by head of government', 'Punong Barangay']]}
SELECT DISTINCT ?n WHERE { { ?n property:office_held_by_head_of_government ?h . VALUES ( ?h ) { ( resource:mayor_of_Santiurde_de_Toranzo ) ( resource:Punong_Barangay ) } } . ?n rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q26789245
P17
Q15617994
USER
Which administrative territory does that political territory belong to ?
(Q26789245,P17,c(Q15617994))
action filter_type
action find
entity Q26789245
relation P17
type Q15617994
['Q26789245', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q26789245 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Canjulao
action filter_type
action find
entity Canjulao
relation country
type designation for an administrative territorial entity
['Canjulao', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Canjulao property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q4842171
SYSTEM
Did you mean Bagumbayan South ?
Q5015225 Q5032508 Q26772669 Q5226803 Q26789245 Q5428133 Q4842171 Q6764407 Q7808849 Q7675347
(Q5015225,P17,c(Q15617994)) (Q5032508,P17,c(Q15617994)) (Q26772669,P17,c(Q15617994)) (Q5226803,P17,c(Q15617994)) (Q26789245,P17,c(Q15617994)) (Q5428133,P17,c(Q15617994)) (Q4842171,P17,c(Q15617994)) (Q6764407,P17,c(Q15617994)) (Q7808849,P17,c(Q15617994)) (Q7675347,P17,c(Q15617994))
[ANSWER]
['Q5015225', 'P17', {'concept': 'Q15617994'}] ['Q5032508', 'P17', {'concept': 'Q15617994'}] ['Q26772669', 'P17', {'concept': 'Q15617994'}] ['Q5226803', 'P17', {'concept': 'Q15617994'}] ['Q26789245', 'P17', {'concept': 'Q15617994'}] ['Q5428133', 'P17', {'concept': 'Q15617994'}] ['Q4842171', 'P17', {'concept': 'Q15617994'}] ['Q6764407', 'P17', {'concept': 'Q15617994'}] ['Q7808849', 'P17', {'concept': 'Q15617994'}] ['Q7675347', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q26789245 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Cabancalan Canlambong Camputhaw Dasmariñas Village Canjulao Fabrica Bagumbayan South Marinig Tipolo Taguilon, Dapitan
Did you mean Bagumbayan South ?
Bagumbayan South
['Cabancalan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Canlambong', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Camputhaw', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Dasmariñas Village', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Canjulao', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Fabrica', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bagumbayan South', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Marinig', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tipolo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Taguilon, Dapitan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Canjulao property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Canjulao. Could you tell me the answer for that?
(Q26789245,P17,c(Q15617994))
Q26789245
['Q26789245', 'P17', {'concept': 'Q15617994'}]
['Canjulao', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q928
SYSTEM
Philippines
Q928
(Q26789245,P17,c(Q15617994))
action filter_type
action find
entity Q26789245
relation P17
type Q15617994
[ANSWER]
['Q26789245', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q26789245 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Philippines
Philippines
action filter_type
action find
entity Canjulao
relation country
type designation for an administrative territorial entity
['Canjulao', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Canjulao property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?h ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?k } } . { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?g ) WHERE { ?y property:P530 ?q . ?y rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?g = ?s ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?h ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } } . { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?g ) WHERE { ?y property:diplomatic_relation ?q . ?y rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?g = ?s ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?h ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?k } } . { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?g ) WHERE { ?y property:P530 ?q . ?y rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?g = ?s ) }
Germany
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?h ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } } . { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?g ) WHERE { ?y property:diplomatic_relation ?q . ?y rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?g = ?s ) }
[]