Simple Question (Direct)
Simple Question
Q713687
P1196
Q1931388
USER
What manner did Danilo Lazović die ?
(Q713687,P1196,c(Q1931388))
action filter_type
action find
entity Q713687
relation P1196
type Q1931388
['Q713687', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q713687 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
Danilo Lazović
action filter_type
action find
entity Danilo Lazović
relation manner of death
type cause of death
['Danilo Lazović', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:Danilo_Lazović property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q713687,P1196,c(Q1931388))
action filter_type
action find
entity Q713687
relation P1196
type Q1931388
Danilo Lazović died in [ANSWER]
['Q713687', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q713687 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
natural causes
Danilo Lazović died in natural causes
natural causes
action filter_type
action find
entity Danilo Lazović
relation manner of death
type cause of death
['Danilo Lazović', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:Danilo_Lazović property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q713687
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q3739104,P27,c(Q15617994))
action filter_type
action find
entity Q713687
relation P27
type Q15617994
['Q3739104', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q713687 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Danilo Lazović
action filter_type
action find
entity Danilo Lazović
relation country of citizenship
type designation for an administrative territorial entity
['natural causes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Danilo_Lazović property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403
SYSTEM
Serbia
Q403
(Q3739104,P27,c(Q15617994))
action filter_type
action find
entity Q713687
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q3739104', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q713687 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Serbia
Serbia is the country of citizenship of that person
Serbia
action filter_type
action find
entity Danilo Lazović
relation country of citizenship
type designation for an administrative territorial entity
['natural causes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Danilo_Lazović property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q403 Q3700728
P530
Q15617994
USER
Does Dibba Al-Baya have a diplomatic relationship with that one ?
(Q403,P530,Q3700728)
action is_in
entity Q3700728
action find
entity Q403
relation P530
['Q403', 'P530', 'Q3700728']
ASK WHERE { resource:Q403 property:P530 resource:Q3700728 }
Serbia Dibba Al-Baya
action is_in
entity Dibba Al-Baya
action find
entity Serbia
relation diplomatic relation
['Serbia', 'diplomatic relation', 'Dibba Al-Baya']
ASK WHERE { resource:Serbia property:diplomatic_relation resource:Dibba_Al-Baya }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q403,P530,Q3700728)
action is_in
entity Q3700728
action find
entity Q403
relation P530
[ANSWER]
['Q403', 'P530', 'Q3700728']
ASK WHERE { resource:Q403 property:P530 resource:Q3700728 }
No
action is_in
entity Dibba Al-Baya
action find
entity Serbia
relation diplomatic relation
['Serbia', 'diplomatic relation', 'Dibba Al-Baya']
ASK WHERE { resource:Serbia property:diplomatic_relation resource:Dibba_Al-Baya }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q713687
P106
Q28640 Q12737077
USER
How many professions or occupations are the job of Danilo Lazović ?
(Q713687,P106,c(Q28640)) (Q713687,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q713687
relation P106
type Q28640
action filter_type
action find
entity Q713687
relation P106
type Q12737077
['Q713687', 'P106', {'concept': 'Q28640'}] ['Q713687', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v rdf:type ?a . VALUES ( ?a ) { ( ontology:Q28640 ) ( ontology:Q12737077 ) } }
Danilo Lazović
action count
action union
action filter_type
action find
entity Danilo Lazović
relation occupation
type profession
action filter_type
action find
entity Danilo Lazović
relation occupation
type occupation
['Danilo Lazović', 'occupation', {'concept': 'profession'}] ['Danilo Lazović', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v rdf:type ?a . VALUES ( ?a ) { ( ontology:profession ) ( ontology:occupation ) } }
[]
profession occupation
SYSTEM
3
Q10800557 Q33999 Q2259451
(Q713687,P106,c(Q28640)) (Q713687,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q713687
relation P106
type Q28640
action filter_type
action find
entity Q713687
relation P106
type Q12737077
[ANSWER]
['Q713687', 'P106', {'concept': 'Q28640'}] ['Q713687', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v rdf:type ?a . VALUES ( ?a ) { ( ontology:Q28640 ) ( ontology:Q12737077 ) } }
film actor actor stage actor
3
action count
action union
action filter_type
action find
entity Danilo Lazović
relation occupation
type profession
action filter_type
action find
entity Danilo Lazović
relation occupation
type occupation
['Danilo Lazović', 'occupation', {'concept': 'profession'}] ['Danilo Lazović', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v rdf:type ?a . VALUES ( ?a ) { ( ontology:profession ) ( ontology:occupation ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7078449 Q403
P530 P17
Q15617994
USER
Which administrative territories have a diplomatic relationship with Serbia and are Odziena Manor located in ?
AND((Q403,P530,c(Q15617994)), (Q7078449,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q403
relation P530
action find
entity Q7078449
relation P17
type Q15617994
{'AND': [['Q403', 'P530', {'concept': 'Q15617994'}], ['Q7078449', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q403 property:P530 ?p . resource:Q7078449 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Odziena Manor Serbia
action filter_type
action intersection
action find
entity Serbia
relation diplomatic relation
action find
entity Odziena Manor
relation country
type designation for an administrative territorial entity
{'AND': [['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Odziena Manor', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Serbia property:diplomatic_relation ?p . resource:Odziena_Manor property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q403,P530,c(Q15617994)), (Q7078449,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q403
relation P530
action find
entity Q7078449
relation P17
type Q15617994
[ANSWER] have a diplomatic relationship with Serbia and are Odziena Manor located in
{'AND': [['Q403', 'P530', {'concept': 'Q15617994'}], ['Q7078449', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q403 property:P530 ?p . resource:Q7078449 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
United States of America have a diplomatic relationship with Serbia and are Odziena Manor located in
United States of America
action filter_type
action intersection
action find
entity Serbia
relation diplomatic relation
action find
entity Odziena Manor
relation country
type designation for an administrative territorial entity
{'AND': [['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Odziena Manor', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Serbia property:diplomatic_relation ?p . resource:Odziena_Manor property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q424
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with approximately the same number of administrative territories as Cambodia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q424
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?s = ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q424 property:P530 ?m } } }
Cambodia
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cambodia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?s = ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cambodia property:diplomatic_relation ?m } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
152
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q424
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?s = ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q424 property:P530 ?m } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau 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 Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
152
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cambodia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?s = ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cambodia property:diplomatic_relation ?m } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P137
Q3084961 Q2221906
USER
How many product linings or geographic locations were managed by United States of America ?
(c(Q3084961),P137,Q30) (c(Q2221906),P137,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P137
type Q3084961
action filter_type
action find_reverse
entity Q30
relation P137
type Q2221906
[{'concept': 'Q3084961'}, 'P137', 'Q30'] [{'concept': 'Q2221906'}, 'P137', 'Q30']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { ?x rdf:type ontology:Q3084961 . ?x property:P137 resource:Q30 } UNION { ?x property:P137 resource:Q30 . ?x rdf:type ontology:Q2221906 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation operator
type product lining
action filter_type
action find_reverse
entity United States of America
relation operator
type geographic location
[{'concept': 'product lining'}, 'operator', 'United States of America'] [{'concept': 'geographic location'}, 'operator', 'United States of America']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { ?x rdf:type ontology:product_lining . ?x property:operator resource:United_States_of_America } UNION { ?x property:operator resource:United_States_of_America . ?x rdf:type ontology:geographic_location } }
[]
product lining geographic location
SYSTEM
4
Q29261 Q976898 Q933767 Q19360183
(c(Q3084961),P137,Q30) (c(Q2221906),P137,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P137
type Q3084961
action filter_type
action find_reverse
entity Q30
relation P137
type Q2221906
[ANSWER]
[{'concept': 'Q3084961'}, 'P137', 'Q30'] [{'concept': 'Q2221906'}, 'P137', 'Q30']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { ?x rdf:type ontology:Q3084961 . ?x property:P137 resource:Q30 } UNION { ?x property:P137 resource:Q30 . ?x rdf:type ontology:Q2221906 } }
F-35 Lightning II Vega Hawk 75 Embassy of the United States, Mogadishu
4
action count
action union
action filter_type
action find_reverse
entity United States of America
relation operator
type product lining
action filter_type
action find_reverse
entity United States of America
relation operator
type geographic location
[{'concept': 'product lining'}, 'operator', 'United States of America'] [{'concept': 'geographic location'}, 'operator', 'United States of America']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { ?x rdf:type ontology:product_lining . ?x property:operator resource:United_States_of_America } UNION { ?x property:operator resource:United_States_of_America . ?x rdf:type ontology:geographic_location } }
[]