Simple Question (Direct)
Simple Question
Q708897
P410
Q4189293
USER
What is the title conferred upon Munetaka-shinnō ?
(Q708897,P410,c(Q4189293))
action filter_type
action find
entity Q708897
relation P410
type Q4189293
['Q708897', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q4189293 . resource:Q708897 property:P410 ?r }
Munetaka-shinnō
action filter_type
action find
entity Munetaka-shinnō
relation military rank
type title
['Munetaka-shinnō', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:title . resource:Munetaka-shinnō property:military_rank ?r }
[]
title
Q131767
SYSTEM
shogun
Q131767
(Q708897,P410,c(Q4189293))
action filter_type
action find
entity Q708897
relation P410
type Q4189293
The title conferred upon Munetaka-shinnō is a [ANSWER]
['Q708897', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q4189293 . resource:Q708897 property:P410 ?r }
shogun
The title conferred upon Munetaka-shinnō is a shogun
shogun
action filter_type
action find
entity Munetaka-shinnō
relation military rank
type title
['Munetaka-shinnō', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:title . resource:Munetaka-shinnō property:military_rank ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q708897
P7
Q502895
USER
Who have that one as their brother ?
(Q131767,P7,c(Q502895))
action filter_type
action find
entity Q708897
relation P7
type Q502895
['Q131767', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q708897 property:P7 ?f . ?f rdf:type ontology:Q502895 }
Munetaka-shinnō
action filter_type
action find
entity Munetaka-shinnō
relation brother
type common name
['shogun', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Munetaka-shinnō property:brother ?f . ?f rdf:type ontology:common_name }
[]
common name
Q360972 Q349246 Q11669588
SYSTEM
Kameyama, Emperor Go-Fukakusa, Takamine Arawabi
Q349246 Q11669588 Q11491596 Q360972 Q11630313
(Q131767,P7,c(Q502895))
action filter_type
action find
entity Q708897
relation P7
type Q502895
[ANSWERS] have that one as their brother
['Q131767', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q708897 property:P7 ?f . ?f rdf:type ontology:Q502895 }
Emperor Go-Fukakusa Takamine Arawabi Shōjo-hosshinnō Kameyama Kakujo-hosshinnō
Kameyama, Emperor Go-Fukakusa and Takamine Arawabi have that one as their brother
Kameyama Emperor Go-Fukakusa Takamine Arawabi
action filter_type
action find
entity Munetaka-shinnō
relation brother
type common name
['shogun', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Munetaka-shinnō property:brother ?f . ?f rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q41370
P1441
Q15416 Q2342494 Q502895
USER
How many people are from the works of lesser number of television programs and collectables than David ?
(c(Q502895),P1441,c(Q15416)|c(Q2342494))
action count
action less
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q41370
relation P1441
type Q15416
type Q2342494
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q41370 property:P1441 ?t . { VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } . ?t rdf:type ?c } } } . FILTER ( ?u < ?j ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?p WHERE { ?v rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?p } }
David
action count
action less
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type collectable
action count
action filter_multi_types
action find
entity David
relation present in work
type television program
type collectable
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'collectable'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:David property:present_in_work ?t . { VALUES ( ?c ) { ( ontology:television_program ) ( ontology:collectable ) } . ?t rdf:type ?c } } } . FILTER ( ?u < ?j ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?p WHERE { ?v rdf:type ?b . VALUES ( ?b ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?p } }
[]
television program collectable common name
SYSTEM
243
Q41863 Q603233 Q2447493 Q80048 Q529984 Q23885172 Q1143157 Q4430779 Q1341397 Q249381 Q194064 Q240258 Q24579400 Q466687 Q7307192 Q321469 Q18699270 Q319116 Q18699272 Q12591 Q213633 Q131195 Q221514 Q30914 Q2426699 Q937827 Q24624067 Q4057937 Q214648 Q2574151 Q2052042 Q318912 Q18699312 Q4006447 Q363623 Q3343834 Q211663 Q176125 Q2451581 Q2046277 Q8423 Q715713 Q24577230 Q1938388 Q2040793 Q494455 Q673959 Q125102 Q2033697 Q954820 Q244912 Q313216 Q313214 Q24622402 Q645796 Q361636 Q20656752 Q205523 Q1281177 Q311556 Q1353836 Q19975705 Q560559 Q807236 Q25885222 Q1867479 Q2256348 Q879668 Q1686571 Q1675214 Q2170784 Q188794 Q844433 Q181538 Q24623408 Q28730 Q200902 Q3798672 Q8413 Q2600794 Q126689 Q2282686 Q459606 Q145746 Q437417 Q463934 Q721295 Q3774081 Q1403627 Q1133523 Q24624893 Q1396131 Q3591188 Q2264125 Q608841 Q1133337 Q200637 Q24625686 Q81422 Q3187975 Q2116944 Q3783913 Q2137929 Q946939 Q888890 Q24577318 Q515828 Q24625326 Q1771358 Q25858050 Q26858752 Q923021 Q272277 Q460763 Q24633210 Q205372 Q715547 Q717814 Q830183 Q1446 Q1641601 Q6577515 Q63070 Q7493584 Q1300996 Q2073479 Q851686 Q1333225 Q40662 Q206238 Q400294 Q2723049 Q922184 Q156328 Q1346246 Q3785031 Q1768161 Q2578955 Q6323112 Q171724 Q889694 Q1851709 Q8027483 Q816397 Q24625073 Q1380878 Q16879711 Q24623579 Q2038223 Q1377025 Q2276030 Q313415 Q360378 Q2711883 Q363660 Q665541 Q1516550 Q886399 Q840401 Q326585 Q109920 Q536019 Q213850 Q74891 Q45090 Q336832 Q1941782 Q2304442 Q2651263 Q1542853 Q24577238 Q209793 Q24632700 Q1808889 Q587893 Q24626363 Q2685920 Q256076 Q184273 Q107626 Q205365 Q24633126 Q477527 Q1091513 Q3658171 Q2601106 Q18699310 Q62788 Q4804479 Q26721185 Q2292243 Q2448083 Q313421 Q313423 Q633681 Q362021 Q24623790 Q200947 Q24083251 Q262766 Q1947936 Q225198 Q211396 Q25923184 Q313228 Q2075711 Q2361344 Q3275910 Q536485 Q273517 Q3752551 Q671872 Q2477603 Q110436 Q16845969 Q23906252 Q2519772 Q879088 Q192785 Q308320 Q183089 Q7734 Q2168182 Q878882 Q1030008 Q26858995 Q2487300 Q319049 Q18699300 Q18699268 Q372783 Q16006746 Q17457 Q786748 Q24626010 Q229702 Q574641 Q26858919 Q2590260 Q2047062 Q599907 Q282220 Q313237
(c(Q502895),P1441,c(Q15416)|c(Q2342494))
action count
action less
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q41370
relation P1441
type Q15416
type Q2342494
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q41370 property:P1441 ?t . { VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } . ?t rdf:type ?c } } } . FILTER ( ?u < ?j ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?p WHERE { ?v rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?p } }
Halga Julius Asclepiodotus Ferrex Al Capone Eric Anundsson Victor Petit Jair Immanuel Michal Markandeya Ezekiel Olof Björnsson Jebidiah Farnsworth Damaris Refil Abishag Achim Nathan Eliud Nebuchadnezzar II Deborah Constantius Chlorus Manoah Ahaz Dyfnwal Moelmud Delilah Bea Hansen Adoniram Samson Sisillius III Mempricius Eric the Victorious Jacob Urianus Cassivellaunus Norman Winther Rehoboam Gideon Cordelia of Britain Parikshit Cyrus the Great Salvatore Maranzano Harriet Mutesi Miriam Reu Orville Wright Leil Necho II Sisillius I Yael Hezekiah Uzziah Ahaziah of Judah Frank Fauteux Ibzan Amnon Bernard C. Webber Zipporah Beowulf Allectus Hrothgar Daniel Webster Cluff Constans II Barak James Harcourt Jago of Britain Shealtiel Björn Ironside Jehu Ithamar Anund Uppsale Isaiah Kenan Rudolf Abel Eldon Hanan Saul Shem Ingeld Constantine the Great Erik Björnsson Jehoshaphat Locrinus Ambrosius Aurelianus Joseph Cunobeline Athaliah Jezebel Gracianus Municeps Hrethel Jephthah Raymond Sybert Wilbur Wright Erik Refilsson Bladud Arvirargus Abner Japheth Andy Fitzgerald Noah Judith Wealhþeow Heardred Gurgustius Phut Nahor Sara Katende Tasciovanus Miriam Webber Salomon Helen Kingsleigh Sarah Katende Gorboduc Bathsheba Benjamin George "Tiny" Myers Absalom Mandubracius Hadadezer Eve Caracalla Tattenai Samuel Mary Magdalene Sheleph Ehud Shaunaka Mephibosheth Elon John the Baptist Elisha Ahitophel Mayasura Caleb Manasseh of Judah Johnny Ringo Heoroweard Islamic views on Abraham Porrex I Nahor Daniel Hygelac Rud Hud Hudibras Wise woman of Abel Ben-Hadad I Richard Livesey Vortimer Sage Animandaya Wallace Quirey Amminadab Bharata Archmail Asa of Judah Adonijah Gurguit Barbtruc Elimelek Hosea Shamgar Maelgwn Gwynedd Laban Vortigern Jotham of Judah Ecgþeow Amos Jonathan Jesse Jehoahaz of Judah Nadabe Coel Hen Trahern Alphaeus Robert Katende Constantine III John Stello Kimarcus Sisillius II Mel Gouthro Bledudo Cunedagius Zedekiah Seth Cain Donald Bangs Amram Son of Gorbonianus Phiona Mutesi Rukmi Matthan Jethro Ash Vasudevan Lena Gogan Rivallo Brutus Greenshield Abel Amon of Judah Björn Eriksson Eli D.A. Brown Ahmad ibn Fadlan Stan the Man Junia Beldgabred Belshazzar Magnus Maximus Elizabeth Ham Josiah Andragius Durvasa Anne Françoise Elisabeth Lange Othniel Abijah of Judah Freawaru Isaac Vaisampayana Cory Doctorow Hygd Caf' Francisco Sawyl Penuchel Björn at Haugi Goliath Abdon Publius Septimius Geta Joshua Ebraucus Togodumnus Tamar Aloysius Kyazze Cunedda Jeconiah Eleazar Zadok Adrian Cronauer James B. Donovan Donald Knuth Pedro González de Mendoza Ervin Maske Ham Balaam Hope Katende Ahijah the Shilonite Marius of Britain Baruch ben Neriah Judah Amaziah of Judah
243
action count
action less
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type collectable
action count
action filter_multi_types
action find
entity David
relation present in work
type television program
type collectable
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'collectable'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:David property:present_in_work ?t . { VALUES ( ?c ) { ( ontology:television_program ) ( ontology:collectable ) } . ?t rdf:type ?c } } } . FILTER ( ?u < ?j ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?p WHERE { ?v rdf:type ?b . VALUES ( ?b ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?p } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q360972
P26
Q502895
USER
How many people are the life partner of Kameyama ?
(c(Q502895),P26,Q360972)
action count
action filter_type
action find_reverse
entity Q360972
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q360972']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:Q502895 . ?n property:P26 resource:Q360972 }
Kameyama
action count
action filter_type
action find_reverse
entity Kameyama
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Kameyama']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:common_name . ?n property:spouse resource:Kameyama }
[]
common name
SYSTEM
3
Q5507527 Q13304279 Q10380962
(c(Q502895),P26,Q360972)
action count
action filter_type
action find_reverse
entity Q360972
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q360972']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:Q502895 . ?n property:P26 resource:Q360972 }
Fujiwara no Kishi Fujiwara no Ishi Fujiwara no Saneko
3
action count
action filter_type
action find_reverse
entity Kameyama
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Kameyama']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:common_name . ?n property:spouse resource:Kameyama }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q360972
P40
Q502895
USER
Whose child are that one ?
action filter_type
action find_reverse
entity Q360972
relation P40
type Q502895
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q360972 . ?a rdf:type ontology:Q502895 }
Kameyama
action filter_type
action find_reverse
entity Kameyama
relation child
type common name
SELECT DISTINCT ?a WHERE { ?a property:child resource:Kameyama . ?a rdf:type ontology:common_name }
[]
common name
Q349259 Q5507526
SYSTEM
Go-Saga, Fujiwara no Kitsushi
Q349259 Q5507526
action filter_type
action find_reverse
entity Q360972
relation P40
type Q502895
[ANSWERS] are that one
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q360972 . ?a rdf:type ontology:Q502895 }
Go-Saga Fujiwara no Kitsushi
Go-Saga and Fujiwara no Kitsushi are that one
Go-Saga Fujiwara no Kitsushi
action filter_type
action find_reverse
entity Kameyama
relation child
type common name
SELECT DISTINCT ?a WHERE { ?a property:child resource:Kameyama . ?a rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18944462 Q5507526
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Fujiwara no Kitsushi or are Beethovenstraat situated in ?
OR((Q5507526,P27,c(Q15617994)), (Q18944462,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5507526
relation P27
action find
entity Q18944462
relation P17
type Q15617994
{'OR': [['Q5507526', 'P27', {'concept': 'Q15617994'}], ['Q18944462', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . { { resource:Q5507526 property:P27 ?a } UNION { resource:Q18944462 property:P17 ?a } } }
Beethovenstraat Fujiwara no Kitsushi
action filter_type
action union
action find
entity Fujiwara no Kitsushi
relation country of citizenship
action find
entity Beethovenstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Fujiwara no Kitsushi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Beethovenstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Fujiwara_no_Kitsushi property:country_of_citizenship ?a } UNION { resource:Beethovenstraat property:country ?a } } }
[]
designation for an administrative territorial entity
Q17 Q55
SYSTEM
Japan, Netherlands
Q17 Q55
OR((Q5507526,P27,c(Q15617994)), (Q18944462,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5507526
relation P27
action find
entity Q18944462
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Fujiwara no Kitsushi or are Beethovenstraat situated in
{'OR': [['Q5507526', 'P27', {'concept': 'Q15617994'}], ['Q18944462', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . { { resource:Q5507526 property:P27 ?a } UNION { resource:Q18944462 property:P17 ?a } } }
Japan Netherlands
Japan and Netherlands are the countries of citizenship of Fujiwara no Kitsushi or are Beethovenstraat situated in
Japan Netherlands
action filter_type
action union
action find
entity Fujiwara no Kitsushi
relation country of citizenship
action find
entity Beethovenstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Fujiwara no Kitsushi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Beethovenstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Fujiwara_no_Kitsushi property:country_of_citizenship ?a } UNION { resource:Beethovenstraat property:country ?a } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories have diplomatic relationships with that administrative territory ?
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q17,P530,c(Q15617994)) (Q17,P530,c(Q1048835)) (Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835))
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q17', 'P530', {'concept': 'Q15617994'}] ['Q17', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q1407064 property:P530 ?z } UNION { resource:Q1407064 property:P530 ?y } UNION { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Japan property:diplomatic_relation ?z } UNION { resource:Japan property:diplomatic_relation ?y } UNION { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q55
SYSTEM
Did you mean Netherlands ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q1407064 property:P530 ?z } UNION { resource:Q1407064 property:P530 ?y } UNION { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Netherlands ?
Netherlands
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Japan property:diplomatic_relation ?z } UNION { resource:Japan property:diplomatic_relation ?y } UNION { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q17,P530,c(Q15617994)) (Q17,P530,c(Q1048835)) (Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835))
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q17', 'P530', {'concept': 'Q15617994'}] ['Q17', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
3
Q408 Q38 Q183
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q17,P530,c(Q15617994)) (Q17,P530,c(Q1048835)) (Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835))
[ANSWER]
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q17', 'P530', {'concept': 'Q15617994'}] ['Q17', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } UNION { resource:Q1407064 property:P530 ?z } UNION { resource:Q1407064 property:P530 ?y } UNION { resource:Q22442862 property:P530 ?z } UNION { resource:Q22442862 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Australia Italy Germany
3
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } UNION { resource:Japan property:diplomatic_relation ?z } UNION { resource:Japan property:diplomatic_relation ?y } UNION { resource:Netherlands property:diplomatic_relation ?z } UNION { resource:Netherlands property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q131767
P410 P21
Q502895
USER
Which people holds shogun and are a male ?
AND((c(Q502895),P410,Q131767), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q131767
relation P410
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P410', 'Q131767'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i property:P410 resource:Q131767 . ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q502895 }
male shogun
action filter_type
action intersection
action find_reverse
entity shogun
relation military rank
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'military rank', 'shogun'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i property:military_rank resource:shogun . ?i property:gender resource:male . ?i rdf:type ontology:common_name }
[]
common name
Q242800 Q552852 Q586532 Q708897 Q314464 Q715826
SYSTEM
Minamoto no Yoritomo, Prince Morikuni, Koreyasu-shinnō, Munetaka-shinnō, Tokugawa Hidetada, Hisaaki-shinnō
Q242800 Q552852 Q586532 Q708897 Q314464 Q715826
AND((c(Q502895),P410,Q131767), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q131767
relation P410
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] hold shogun and are a male
{'AND': [[{'concept': 'Q502895'}, 'P410', 'Q131767'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i property:P410 resource:Q131767 . ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q502895 }
Minamoto no Yoritomo Prince Morikuni Koreyasu-shinnō Munetaka-shinnō Tokugawa Hidetada Hisaaki-shinnō
Minamoto no Yoritomo, Prince Morikuni, Koreyasu-shinnō, Munetaka-shinnō, Tokugawa Hidetada and Hisaaki-shinnō hold shogun and are a male
Minamoto no Yoritomo Prince Morikuni Koreyasu-shinnō Munetaka-shinnō Tokugawa Hidetada Hisaaki-shinnō
action filter_type
action intersection
action find_reverse
entity shogun
relation military rank
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'military rank', 'shogun'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i property:military_rank resource:shogun . ?i property:gender resource:male . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q314464
P35
Q451967
USER
Which human action elected Tokugawa Hidetada as its head of state ?
(c(Q451967),P35,Q314464)
action filter_type
action find_reverse
entity Q314464
relation P35
type Q451967
[{'concept': 'Q451967'}, 'P35', 'Q314464']
SELECT DISTINCT ?s WHERE { ?s property:P35 resource:Q314464 . ?s rdf:type ontology:Q451967 }
Tokugawa Hidetada
action filter_type
action find_reverse
entity Tokugawa Hidetada
relation head of state
type human action
[{'concept': 'human action'}, 'head of state', 'Tokugawa Hidetada']
SELECT DISTINCT ?s WHERE { ?s property:head_of_state resource:Tokugawa_Hidetada . ?s rdf:type ontology:human_action }
[]
human action
Q205662
SYSTEM
Tokugawa shogunate
Q205662
(c(Q451967),P35,Q314464)
action filter_type
action find_reverse
entity Q314464
relation P35
type Q451967
[ANSWER] elected Tokugawa Hidetada as its head of state
[{'concept': 'Q451967'}, 'P35', 'Q314464']
SELECT DISTINCT ?s WHERE { ?s property:P35 resource:Q314464 . ?s rdf:type ontology:Q451967 }
Tokugawa shogunate
Tokugawa shogunate elected Tokugawa Hidetada as its head of state
Tokugawa shogunate
action filter_type
action find_reverse
entity Tokugawa Hidetada
relation head of state
type human action
[{'concept': 'human action'}, 'head of state', 'Tokugawa Hidetada']
SELECT DISTINCT ?s WHERE { ?s property:head_of_state resource:Tokugawa_Hidetada . ?s rdf:type ontology:human_action }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q205662
P1376
Q56061
USER
What is the capital of that human action ?
(c(Q56061),P1376,Q205662)
action filter_type
action find_reverse
entity Q205662
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q205662']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q205662 . ?u rdf:type ontology:Q56061 }
Tokugawa shogunate
action filter_type
action find_reverse
entity Tokugawa shogunate
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Tokugawa shogunate']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Tokugawa_shogunate . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q215646
SYSTEM
Edo
Q215646
(c(Q56061),P1376,Q205662)
action filter_type
action find_reverse
entity Q205662
relation P1376
type Q56061
The capital of that human action is an [ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q205662']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q205662 . ?u rdf:type ontology:Q56061 }
Edo
The capital of that human action is an Edo
Edo
action filter_type
action find_reverse
entity Tokugawa shogunate
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Tokugawa shogunate']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Tokugawa_shogunate . ?u rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q215646 Q5492070 Q17
P17
Q15617994
USER
Is that administrative territory present in Franklin Township School District and Japan ?
(Q215646,P17,Q5492070) (Q215646,P17,Q17)
action is_in
entity Q215646
action intersection
action find_reverse
entity Q5492070
relation P17
action find_reverse
entity Q17
relation P17
['Q215646', 'P17', 'Q5492070'] ['Q215646', 'P17', 'Q17']
ASK WHERE { resource:Q215646 property:P17 resource:Q5492070 . resource:Q215646 property:P17 resource:Q17 }
Edo Franklin Township School District Japan
action is_in
entity Edo
action intersection
action find_reverse
entity Franklin Township School District
relation country
action find_reverse
entity Japan
relation country
['Edo', 'country', 'Franklin Township School District'] ['Edo', 'country', 'Japan']
ASK WHERE { resource:Edo property:country resource:Franklin_Township_School_District . resource:Edo property:country resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q215646,P17,Q5492070) (Q215646,P17,Q17)
action is_in
entity Q215646
action intersection
action find_reverse
entity Q5492070
relation P17
action find_reverse
entity Q17
relation P17
[ANSWER]
['Q215646', 'P17', 'Q5492070'] ['Q215646', 'P17', 'Q17']
ASK WHERE { resource:Q215646 property:P17 resource:Q5492070 . resource:Q215646 property:P17 resource:Q17 }
NO and YES respectively
action is_in
entity Edo
action intersection
action find_reverse
entity Franklin Township School District
relation country
action find_reverse
entity Japan
relation country
['Edo', 'country', 'Franklin Township School District'] ['Edo', 'country', 'Japan']
ASK WHERE { resource:Edo property:country resource:Franklin_Township_School_District . resource:Edo property:country resource:Japan }
[]