Simple Question (Direct)
Simple Question
Q1365625
P166
Q1788716
USER
Which military decoration was received by Sheldon H. Kinney ?
(Q1365625,P166,c(Q1788716))
action filter_type
action find
entity Q1365625
relation P166
type Q1788716
['Q1365625', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1788716 . resource:Q1365625 property:P166 ?z }
Sheldon H. Kinney
action filter_type
action find
entity Sheldon H. Kinney
relation award received
type military decoration
['Sheldon H. Kinney', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:military_decoration . resource:Sheldon_H._Kinney property:award_received ?z }
[]
military decoration
Q17231624
SYSTEM
legionnaire of Legion of Merit
Q17231624
(Q1365625,P166,c(Q1788716))
action filter_type
action find
entity Q1365625
relation P166
type Q1788716
The [ANSWER] was received by Sheldon H. Kinney
['Q1365625', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1788716 . resource:Q1365625 property:P166 ?z }
legionnaire of Legion of Merit
The legionnaire of Legion of Merit was received by Sheldon H. Kinney
legionnaire of Legion of Merit
action filter_type
action find
entity Sheldon H. Kinney
relation award received
type military decoration
['Sheldon H. Kinney', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:military_decoration . resource:Sheldon_H._Kinney property:award_received ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1365625
P607
Q198
USER
What was was that person a part of ?
(Q17231624,P607,c(Q198))
action filter_type
action find
entity Q1365625
relation P607
type Q198
['Q17231624', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { resource:Q1365625 property:P607 ?a . ?a rdf:type ontology:Q198 }
Sheldon H. Kinney
action filter_type
action find
entity Sheldon H. Kinney
relation conflict
type war
['legionnaire of Legion of Merit', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { resource:Sheldon_H._Kinney property:conflict ?a . ?a rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q17231624,P607,c(Q198))
action filter_type
action find
entity Q1365625
relation P607
type Q198
That person was a part of [ANSWER]
['Q17231624', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { resource:Q1365625 property:P607 ?a . ?a rdf:type ontology:Q198 }
World War II
That person was a part of World War II
World War II
action filter_type
action find
entity Sheldon H. Kinney
relation conflict
type war
['legionnaire of Legion of Merit', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { resource:Sheldon_H._Kinney property:conflict ?a . ?a rdf:type ontology:war }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q8010839 Q1365625
P607
Q198
USER
And also William Harbison
AND((Q1365625,P607,c(Q198)), (Q8010839,P607,c(Q198)))
action filter_type
action intersection
action find
entity Q1365625
relation P607
action find
entity Q8010839
relation P607
type Q198
{'AND': [['Q1365625', 'P607', {'concept': 'Q198'}], ['Q8010839', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q198 . resource:Q1365625 property:P607 ?x . resource:Q8010839 property:P607 ?x }
William Harbison Sheldon H. Kinney
action filter_type
action intersection
action find
entity Sheldon H. Kinney
relation conflict
action find
entity William Harbison
relation conflict
type war
{'AND': [['Sheldon H. Kinney', 'conflict', {'concept': 'war'}], ['William Harbison', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:war . resource:Sheldon_H._Kinney property:conflict ?x . resource:William_Harbison property:conflict ?x }
[]
war
Q362
SYSTEM
World War II
Q362
AND((Q1365625,P607,c(Q198)), (Q8010839,P607,c(Q198)))
action filter_type
action intersection
action find
entity Q1365625
relation P607
action find
entity Q8010839
relation P607
type Q198
[ANSWER]
{'AND': [['Q1365625', 'P607', {'concept': 'Q198'}], ['Q8010839', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q198 . resource:Q1365625 property:P607 ?x . resource:Q8010839 property:P607 ?x }
World War II
World War II
action filter_type
action intersection
action find
entity Sheldon H. Kinney
relation conflict
action find
entity William Harbison
relation conflict
type war
{'AND': [['Sheldon H. Kinney', 'conflict', {'concept': 'war'}], ['William Harbison', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:war . resource:Sheldon_H._Kinney property:conflict ?x . resource:William_Harbison property:conflict ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8010839
P21
Q290
USER
Which sex does William Harbison belong to ?
(Q8010839,P21,c(Q290))
action filter_type
action find
entity Q8010839
relation P21
type Q290
['Q8010839', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q8010839 property:P21 ?m . ?m rdf:type ontology:Q290 }
William Harbison
action filter_type
action find
entity William Harbison
relation gender
type sex
['William Harbison', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:William_Harbison property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q8010839,P21,c(Q290))
action filter_type
action find
entity Q8010839
relation P21
type Q290
William Harbison belongs to [ANSWER]
['Q8010839', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q8010839 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
William Harbison belongs to male
male
action filter_type
action find
entity William Harbison
relation gender
type sex
['William Harbison', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:William_Harbison property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8010839
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q8010839
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q8010839 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
William Harbison
action filter_type
action find
entity William Harbison
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:William_Harbison property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q8010839
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q8010839 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is that person a civilian of
United Kingdom
action filter_type
action find
entity William Harbison
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:William_Harbison property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q838948
USER
How many administrative territories did lesser number of literary works and works of art originate than that administrative territory ?
(c(Q7725634)|c(Q838948),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q7725634
type Q838948
[[{'concept': 'Q7725634'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) ?p WHERE { { ?r property:P495 ?p . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q7725634 } UNION { ?r property:P495 ?p . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q838948 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P495 resource:Q145 . { { ?m rdf:type ontology:Q838948 } UNION { ?m rdf:type ontology:Q7725634 } } } } . FILTER ( ?k < ?e ) }
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type literary work
type work of art
[[{'concept': 'literary work'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) ?p WHERE { { ?r property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:literary_work } UNION { ?r property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:work_of_art } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:country_of_origin resource:United_Kingdom . { { ?m rdf:type ontology:work_of_art } UNION { ?m rdf:type ontology:literary_work } } } } . FILTER ( ?k < ?e ) }
[]
designation for an administrative territorial entity literary work work of art
SYSTEM
166
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q7725634)|c(Q838948),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q7725634
type Q838948
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) ?p WHERE { { ?r property:P495 ?p . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q7725634 } UNION { ?r property:P495 ?p . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q838948 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P495 resource:Q145 . { { ?m rdf:type ontology:Q838948 } UNION { ?m rdf:type ontology:Q7725634 } } } } . FILTER ( ?k < ?e ) }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
166
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type literary work
type work of art
[[{'concept': 'literary work'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) ?p WHERE { { ?r property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:literary_work } UNION { ?r property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:work_of_art } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:country_of_origin resource:United_Kingdom . { { ?m rdf:type ontology:work_of_art } UNION { ?m rdf:type ontology:literary_work } } } } . FILTER ( ?k < ?e ) }
[]