Simple Question (Direct)
Simple Question
Q2456231
P509
Q2057971
USER
What was the cause of death of Zillah Emanuels ?
(Q2456231,P509,c(Q2057971))
action filter_type
action find
entity Q2456231
relation P509
type Q2057971
['Q2456231', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?x WHERE { resource:Q2456231 property:P509 ?x . ?x rdf:type ontology:Q2057971 }
Zillah Emanuels
action filter_type
action find
entity Zillah Emanuels
relation cause of death
type health problem
['Zillah Emanuels', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?x WHERE { resource:Zillah_Emanuels property:cause_of_death ?x . ?x rdf:type ontology:health_problem }
[]
health problem
Q47912
SYSTEM
lung cancer
Q47912
(Q2456231,P509,c(Q2057971))
action filter_type
action find
entity Q2456231
relation P509
type Q2057971
The cause of death of Zillah Emanuels was from [ANSWER]
['Q2456231', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?x WHERE { resource:Q2456231 property:P509 ?x . ?x rdf:type ontology:Q2057971 }
lung cancer
The cause of death of Zillah Emanuels was from lung cancer
lung cancer
action filter_type
action find
entity Zillah Emanuels
relation cause of death
type health problem
['Zillah Emanuels', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?x WHERE { resource:Zillah_Emanuels property:cause_of_death ?x . ?x rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q47912
P1196
Q502895
USER
Which people died as that health problem ?
(c(Q502895),P1196,Q47912)
action filter_type
action find_reverse
entity Q47912
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q47912']
SELECT DISTINCT ?a WHERE { ?a property:P1196 resource:Q47912 . ?a rdf:type ontology:Q502895 }
lung cancer
action filter_type
action find_reverse
entity lung cancer
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'lung cancer']
SELECT DISTINCT ?a WHERE { ?a property:manner_of_death resource:lung_cancer . ?a rdf:type ontology:common_name }
[]
common name
Q549431 Q54547 Q307168
SYSTEM
Jorge Ubico, Sarah Palfrey Cooke, Abdul Aziz al-Hakim
Q6188392 Q549431 Q6109626 Q307168 Q54547 Q999968 Q441003
(c(Q502895),P1196,Q47912)
action filter_type
action find_reverse
entity Q47912
relation P1196
type Q502895
[ANSWERS] died as that health problem
[{'concept': 'Q502895'}, 'P1196', 'Q47912']
SELECT DISTINCT ?a WHERE { ?a property:P1196 resource:Q47912 . ?a rdf:type ontology:Q502895 }
Jesús Barrero Jorge Ubico Roberto Cairo Abdul Aziz al-Hakim Sarah Palfrey Cooke Buckwheat Zydeco Celia Sánchez
Jorge Ubico, Sarah Palfrey Cooke and Abdul Aziz al-Hakim died as that health problem
Jorge Ubico Sarah Palfrey Cooke Abdul Aziz al-Hakim
action filter_type
action find_reverse
entity lung cancer
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'lung cancer']
SELECT DISTINCT ?a WHERE { ?a property:manner_of_death resource:lung_cancer . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q549431
P1142
Q7257
USER
Which ideology does Jorge Ubico believe in ?
(Q549431,P1142,c(Q7257))
action filter_type
action find
entity Q549431
relation P1142
type Q7257
['Q549431', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?k WHERE { resource:Q549431 property:P1142 ?k . ?k rdf:type ontology:Q7257 }
Jorge Ubico
action filter_type
action find
entity Jorge Ubico
relation political ideology
type ideology
['Jorge Ubico', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?k WHERE { resource:Jorge_Ubico property:political_ideology ?k . ?k rdf:type ontology:ideology }
[]
ideology
Q6223
SYSTEM
fascism
Q6223
(Q549431,P1142,c(Q7257))
action filter_type
action find
entity Q549431
relation P1142
type Q7257
Jorge Ubico believes in [ANSWER]
['Q549431', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?k WHERE { resource:Q549431 property:P1142 ?k . ?k rdf:type ontology:Q7257 }
fascism
Jorge Ubico believes in fascism
fascism
action filter_type
action find
entity Jorge Ubico
relation political ideology
type ideology
['Jorge Ubico', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?k WHERE { resource:Jorge_Ubico property:political_ideology ?k . ?k rdf:type ontology:ideology }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q549431
Q1047113
USER
And which special field?
(Q549431,P1142,c(Q1047113))
action filter_type
action find
entity Q549431
relation P1142
type Q1047113
['Q549431', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?e WHERE { resource:Q549431 property:P1142 ?e . ?e rdf:type ontology:Q1047113 }
Jorge Ubico
action filter_type
action find
entity Jorge Ubico
relation political ideology
type special field
['Jorge Ubico', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?e WHERE { resource:Jorge_Ubico property:political_ideology ?e . ?e rdf:type ontology:special_field }
[]
special field
Q6216
SYSTEM
liberalism
Q6216
(Q549431,P1142,c(Q1047113))
action filter_type
action find
entity Q549431
relation P1142
type Q1047113
[ANSWER]
['Q549431', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?e WHERE { resource:Q549431 property:P1142 ?e . ?e rdf:type ontology:Q1047113 }
liberalism
liberalism
action filter_type
action find
entity Jorge Ubico
relation political ideology
type special field
['Jorge Ubico', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?e WHERE { resource:Jorge_Ubico property:political_ideology ?e . ?e rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1142
Q7257 Q7210356 Q7278
USER
Which ideologies are the political ideology of approximately 172 political organizations and political parties ?
(c(Q7210356)|c(Q7278),P1142,c(Q7257))
action approx
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
value 172
[[{'concept': 'Q7210356'}, {'concept': 'Q7278'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) ?m WHERE { { ?y property:P1142 ?m . ?y rdf:type ontology:Q7210356 . ?m rdf:type ontology:Q7257 } UNION { ?y property:P1142 ?m . ?m rdf:type ontology:Q7257 . ?y rdf:type ontology:Q7278 } } GROUP BY ?m } . FILTER ( ?o = 172 ) }
action approx
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
value 172
[[{'concept': 'political organization'}, {'concept': 'political party'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) ?m WHERE { { ?y property:political_ideology ?m . ?y rdf:type ontology:political_organization . ?m rdf:type ontology:ideology } UNION { ?y property:political_ideology ?m . ?m rdf:type ontology:ideology . ?y rdf:type ontology:political_party } } GROUP BY ?m } . FILTER ( ?o = 172 ) }
[]
ideology political organization political party
Q211930 Q209158 Q189280
SYSTEM
Marxism–Leninism, Christian democracy, democratic socialism
Q211930 Q209158 Q189280
(c(Q7210356)|c(Q7278),P1142,c(Q7257))
action approx
action union
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7210356
action find_reverse_tuple_counts
relation P1142
type Q7257
type Q7278
value 172
[ANSWERS] are the political ideology of approximately 172 political organizations and political parties
[[{'concept': 'Q7210356'}, {'concept': 'Q7278'}], 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) ?m WHERE { { ?y property:P1142 ?m . ?y rdf:type ontology:Q7210356 . ?m rdf:type ontology:Q7257 } UNION { ?y property:P1142 ?m . ?m rdf:type ontology:Q7257 . ?y rdf:type ontology:Q7278 } } GROUP BY ?m } . FILTER ( ?o = 172 ) }
Marxism–Leninism Christian democracy democratic socialism
Marxism–Leninism, Christian democracy and democratic socialism are the political ideology of approximately 172 political organizations and political parties
Marxism–Leninism Christian democracy democratic socialism
action approx
action union
action find_reverse_tuple_counts
relation political ideology
type ideology
type political organization
action find_reverse_tuple_counts
relation political ideology
type ideology
type political party
value 172
[[{'concept': 'political organization'}, {'concept': 'political party'}], 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) ?m WHERE { { ?y property:political_ideology ?m . ?y rdf:type ontology:political_organization . ?m rdf:type ontology:ideology } UNION { ?y property:political_ideology ?m . ?m rdf:type ontology:ideology . ?y rdf:type ontology:political_party } } GROUP BY ?m } . FILTER ( ?o = 172 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q549431
P991
Q40231
USER
Where was Jorge Ubico elected successfully from ?
(c(Q40231),P991,Q549431)
action filter_type
action find_reverse
entity Q549431
relation P991
type Q40231
[{'concept': 'Q40231'}, 'P991', 'Q549431']
SELECT DISTINCT ?p WHERE { ?p property:P991 resource:Q549431 . ?p rdf:type ontology:Q40231 }
Jorge Ubico
action filter_type
action find_reverse
entity Jorge Ubico
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Jorge Ubico']
SELECT DISTINCT ?p WHERE { ?p property:successful_candidate resource:Jorge_Ubico . ?p rdf:type ontology:election }
[]
election
Q3586583
SYSTEM
Guatemalan general election, 1931
Q3586583
(c(Q40231),P991,Q549431)
action filter_type
action find_reverse
entity Q549431
relation P991
type Q40231
Successfully from the [ANSWER] Jorge Ubico was elected
[{'concept': 'Q40231'}, 'P991', 'Q549431']
SELECT DISTINCT ?p WHERE { ?p property:P991 resource:Q549431 . ?p rdf:type ontology:Q40231 }
Guatemalan general election, 1931
Successfully from the Guatemalan general election, 1931 Jorge Ubico was elected
Guatemalan general election, 1931
action filter_type
action find_reverse
entity Jorge Ubico
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Jorge Ubico']
SELECT DISTINCT ?p WHERE { ?p property:successful_candidate resource:Jorge_Ubico . ?p rdf:type ontology:election }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q549431
P40
Q502895
USER
Who has Jorge Ubico as a child ?
(c(Q502895),P40,Q549431)
action filter_type
action find_reverse
entity Q549431
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q549431']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q549431 . ?r rdf:type ontology:Q502895 }
Jorge Ubico
action filter_type
action find_reverse
entity Jorge Ubico
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jorge Ubico']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Jorge_Ubico . ?r rdf:type ontology:common_name }
[]
common name
Q5707531
SYSTEM
Arturo Ubico Urruela
Q5707531
(c(Q502895),P40,Q549431)
action filter_type
action find_reverse
entity Q549431
relation P40
type Q502895
[ANSWER] has Jorge Ubico as a child
[{'concept': 'Q502895'}, 'P40', 'Q549431']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q549431 . ?r rdf:type ontology:Q502895 }
Arturo Ubico Urruela
Arturo Ubico Urruela has Jorge Ubico as a child
Arturo Ubico Urruela
action filter_type
action find_reverse
entity Jorge Ubico
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jorge Ubico']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Jorge_Ubico . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5707531
P22
Q502895
USER
Which person has that one as dad ?
(c(Q502895),P22,Q5707531)
action filter_type
action find_reverse
entity Q5707531
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q5707531']
SELECT DISTINCT ?g WHERE { ?g property:P22 resource:Q5707531 . ?g rdf:type ontology:Q502895 }
Arturo Ubico Urruela
action filter_type
action find_reverse
entity Arturo Ubico Urruela
relation father
type common name
[{'concept': 'common name'}, 'father', 'Arturo Ubico Urruela']
SELECT DISTINCT ?g WHERE { ?g property:father resource:Arturo_Ubico_Urruela . ?g rdf:type ontology:common_name }
[]
common name
Q549431
SYSTEM
Jorge Ubico
Q549431
(c(Q502895),P22,Q5707531)
action filter_type
action find_reverse
entity Q5707531
relation P22
type Q502895
[ANSWER] has that one as dad
[{'concept': 'Q502895'}, 'P22', 'Q5707531']
SELECT DISTINCT ?g WHERE { ?g property:P22 resource:Q5707531 . ?g rdf:type ontology:Q502895 }
Jorge Ubico
Jorge Ubico has that one as dad
Jorge Ubico
action filter_type
action find_reverse
entity Arturo Ubico Urruela
relation father
type common name
[{'concept': 'common name'}, 'father', 'Arturo Ubico Urruela']
SELECT DISTINCT ?g WHERE { ?g property:father resource:Arturo_Ubico_Urruela . ?g rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19007781 Q5707531
P276 P19
Q56061
USER
Which administrative territories were Arturo Ubico Urruela born or are De Ganzenhoedster located ?
OR((Q5707531,P19,c(Q56061)), (Q19007781,P276,c(Q56061)))
action filter_type
action union
action find
entity Q5707531
relation P19
action find
entity Q19007781
relation P276
type Q56061
{'OR': [['Q5707531', 'P19', {'concept': 'Q56061'}], ['Q19007781', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { { resource:Q5707531 property:P19 ?u } UNION { resource:Q19007781 property:P276 ?u } } }
De Ganzenhoedster Arturo Ubico Urruela
action filter_type
action union
action find
entity Arturo Ubico Urruela
relation place of birth
action find
entity De Ganzenhoedster
relation location
type administrative territorial entity
{'OR': [['Arturo Ubico Urruela', 'place of birth', {'concept': 'administrative territorial entity'}], ['De Ganzenhoedster', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { { resource:Arturo_Ubico_Urruela property:place_of_birth ?u } UNION { resource:De_Ganzenhoedster property:location ?u } } }
[]
administrative territorial entity
Q1555 Q2766547
SYSTEM
Guatemala City, 's-Hertogenbosch
Q1555 Q2766547
OR((Q5707531,P19,c(Q56061)), (Q19007781,P276,c(Q56061)))
action filter_type
action union
action find
entity Q5707531
relation P19
action find
entity Q19007781
relation P276
type Q56061
Arturo Ubico Urruela were born located in [ANSWERS]
{'OR': [['Q5707531', 'P19', {'concept': 'Q56061'}], ['Q19007781', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { { resource:Q5707531 property:P19 ?u } UNION { resource:Q19007781 property:P276 ?u } } }
Guatemala City 's-Hertogenbosch
Arturo Ubico Urruela were born located in Guatemala City and 's-Hertogenbosch
Guatemala City 's-Hertogenbosch
action filter_type
action union
action find
entity Arturo Ubico Urruela
relation place of birth
action find
entity De Ganzenhoedster
relation location
type administrative territorial entity
{'OR': [['Arturo Ubico Urruela', 'place of birth', {'concept': 'administrative territorial entity'}], ['De Ganzenhoedster', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { { resource:Arturo_Ubico_Urruela property:place_of_birth ?u } UNION { resource:De_Ganzenhoedster property:location ?u } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3270160
P828
Q7189713 Q2057971 Q2057971
USER
Which health problems do more number of physiological conditions or health problems lead to than actinobacillosis ?
(c(Q2057971),P828,c(Q7189713)|c(Q2057971))
action greater
action union
action find_tuple_counts
relation P828
type Q2057971
type Q7189713
action find_tuple_counts
relation P828
type Q2057971
type Q2057971
action count
action filter_multi_types
action find
entity Q3270160
relation P828
type Q7189713
type Q2057971
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q7189713'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ?n WHERE { FILTER ( ?e > ?v ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q3270160 property:P828 ?s . { { ?s rdf:type ontology:Q7189713 } UNION { ?s rdf:type ontology:Q2057971 } } } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?n WHERE { { ?n property:P828 ?o . ?n rdf:type ontology:Q2057971 . ?o rdf:type ontology:Q7189713 } UNION { ?n property:P828 ?o . ?n rdf:type ontology:Q2057971 . ?o rdf:type ontology:Q2057971 } } GROUP BY ?n } }
actinobacillosis
action greater
action union
action find_tuple_counts
relation has cause
type health problem
type physiological condition
action find_tuple_counts
relation has cause
type health problem
type health problem
action count
action filter_multi_types
action find
entity actinobacillosis
relation has cause
type physiological condition
type health problem
[{'concept': 'health problem'}, 'has cause', [{'concept': 'physiological condition'}, {'concept': 'health problem'}]]
SELECT DISTINCT ?n WHERE { FILTER ( ?e > ?v ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:actinobacillosis property:has_cause ?s . { { ?s rdf:type ontology:physiological_condition } UNION { ?s rdf:type ontology:health_problem } } } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?n WHERE { { ?n property:has_cause ?o . ?n rdf:type ontology:health_problem . ?o rdf:type ontology:physiological_condition } UNION { ?n property:has_cause ?o . ?n rdf:type ontology:health_problem . ?o rdf:type ontology:health_problem } } GROUP BY ?n } }
[]
physiological condition health problem health problem
Q47912 Q147778 Q127724
SYSTEM
lung cancer, liver cirrhosis, cataract
Q147778 Q623031 Q52856 Q127724 Q19972185 Q18555052 Q5038165 Q1097957 Q3153686 Q16831900 Q124604 Q4366062 Q4797639 Q1713499 Q16242812 Q1693598 Q1890194 Q1016605 Q18557427 Q7205992 Q2339038 Q18395602 Q2933021 Q16775468 Q1409081 Q1724539 Q6279182 Q585011 Q3089469 Q47912 Q14375936 Q9376235 Q17126040 Q18558134 Q632522 Q4651856 Q7850856 Q18554229 Q5182155 Q3508771 Q3108587 Q298278 Q826522 Q68833 Q18558124 Q18554306
(c(Q2057971),P828,c(Q7189713)|c(Q2057971))
action greater
action union
action find_tuple_counts
relation P828
type Q2057971
type Q7189713
action find_tuple_counts
relation P828
type Q2057971
type Q2057971
action count
action filter_multi_types
action find
entity Q3270160
relation P828
type Q7189713
type Q2057971
[ANSWERS] more number of physiological conditions or health problems lead to than actinobacillosis
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q7189713'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ?n WHERE { FILTER ( ?e > ?v ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q3270160 property:P828 ?s . { { ?s rdf:type ontology:Q7189713 } UNION { ?s rdf:type ontology:Q2057971 } } } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?n WHERE { { ?n property:P828 ?o . ?n rdf:type ontology:Q2057971 . ?o rdf:type ontology:Q7189713 } UNION { ?n property:P828 ?o . ?n rdf:type ontology:Q2057971 . ?o rdf:type ontology:Q2057971 } } GROUP BY ?n } }
liver cirrhosis liver cancer Diabetic foot cataract Tubo-ovarian abscess malt worker's lung Carcinoma ex-pleomorphic adenoma intermittent claudication Toluene toxicity intracranial hypotension portal hypertension Pneumococcal infection arthritis mutilans megaesophagus Amalgam tattoo nasopharynx carcinoma nutritional deficiency disease Burkitt lymphoma pancreatic cholera Pneumococcal pneumonia Neurogenic bladder Vitreous touch syndrome caffeine intoxication elephantiasis fetal nicotine spectrum disorder Congenital rubella syndrome epileptic seizure Antley-Bixler syndrome sequelae lung cancer hyperinsulinism endolymphatic hydrops Transfusion associated circulatory overload exposure keratitis bacteriuria AIDS-related lymphoma pericardial tuberculosis kernicterus due to isoimmunization Craniotabes neuro-anemia syndrome pigmentary glaucoma esophageal varix thyroid cancer bone fracture allergic asthma endocrine exophthalmos
Lung cancer, liver cirrhosis and cataract more number of physiological conditions or health problems lead to than actinobacillosis
lung cancer liver cirrhosis cataract
action greater
action union
action find_tuple_counts
relation has cause
type health problem
type physiological condition
action find_tuple_counts
relation has cause
type health problem
type health problem
action count
action filter_multi_types
action find
entity actinobacillosis
relation has cause
type physiological condition
type health problem
[{'concept': 'health problem'}, 'has cause', [{'concept': 'physiological condition'}, {'concept': 'health problem'}]]
SELECT DISTINCT ?n WHERE { FILTER ( ?e > ?v ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:actinobacillosis property:has_cause ?s . { { ?s rdf:type ontology:physiological_condition } UNION { ?s rdf:type ontology:health_problem } } } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?n WHERE { { ?n property:has_cause ?o . ?n rdf:type ontology:health_problem . ?o rdf:type ontology:physiological_condition } UNION { ?n property:has_cause ?o . ?n rdf:type ontology:health_problem . ?o rdf:type ontology:health_problem } } GROUP BY ?n } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q640970 Q307168
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Abdul Aziz al-Hakim or are Mwenezi River situated in ?
OR((Q307168,P27,c(Q15617994)), (Q640970,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q307168
relation P27
action find
entity Q640970
relation P17
type Q15617994
{'OR': [['Q307168', 'P27', {'concept': 'Q15617994'}], ['Q640970', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q307168 property:P27 ?e } UNION { resource:Q640970 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Mwenezi River Abdul Aziz al-Hakim
action filter_type
action union
action find
entity Abdul Aziz al-Hakim
relation country of citizenship
action find
entity Mwenezi River
relation country
type designation for an administrative territorial entity
{'OR': [['Abdul Aziz al-Hakim', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mwenezi River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Abdul_Aziz_al-Hakim property:country_of_citizenship ?e } UNION { resource:Mwenezi_River property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q954 Q1029 Q796
SYSTEM
Zimbabwe, Mozambique, Iraq
Q954 Q1029 Q796
OR((Q307168,P27,c(Q15617994)), (Q640970,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q307168
relation P27
action find
entity Q640970
relation P17
type Q15617994
[ANSWERS] are the native countriesof Abdul Aziz al-Hakim or are Mwenezi River situated in
{'OR': [['Q307168', 'P27', {'concept': 'Q15617994'}], ['Q640970', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q307168 property:P27 ?e } UNION { resource:Q640970 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Zimbabwe Mozambique Iraq
Zimbabwe, Mozambique and Iraq are the native countriesof Abdul Aziz al-Hakim or are Mwenezi River situated in
Zimbabwe Mozambique Iraq
action filter_type
action union
action find
entity Abdul Aziz al-Hakim
relation country of citizenship
action find
entity Mwenezi River
relation country
type designation for an administrative territorial entity
{'OR': [['Abdul Aziz al-Hakim', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mwenezi River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Abdul_Aziz_al-Hakim property:country_of_citizenship ?e } UNION { resource:Mwenezi_River property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1413580
P530
Q1048835
USER
Are São Pedro de Oliveira known to have diplomatic connections with those administrative territories ?
(Q1413580,P530,Q954) (Q1413580,P530,Q1029) (Q1413580,P530,Q796)
action is_in
entity prev_answer
action find
entity Q1413580
relation P530
['Q1413580', 'P530', 'Q954'] ['Q1413580', 'P530', 'Q1029'] ['Q1413580', 'P530', 'Q796']
ASK WHERE { VALUES ( ?s ) { ( resource:Q954 ) ( resource:Q1029 ) ( resource:Q796 ) } . resource:Q1413580 property:P530 ?s }
São Pedro de Oliveira
action is_in
entity prev_answer
action find
entity São Pedro de Oliveira
relation diplomatic relation
['São Pedro de Oliveira', 'diplomatic relation', 'Zimbabwe'] ['São Pedro de Oliveira', 'diplomatic relation', 'Mozambique'] ['São Pedro de Oliveira', 'diplomatic relation', 'Iraq']
ASK WHERE { VALUES ( ?s ) { ( resource:Zimbabwe ) ( resource:Mozambique ) ( resource:Iraq ) } . resource:São_Pedro_de_Oliveira property:diplomatic_relation ?s }
[]
political territorial entity
SYSTEM
NO
(Q1413580,P530,Q954) (Q1413580,P530,Q1029) (Q1413580,P530,Q796)
action is_in
entity prev_answer
action find
entity Q1413580
relation P530
[ANSWER]
['Q1413580', 'P530', 'Q954'] ['Q1413580', 'P530', 'Q1029'] ['Q1413580', 'P530', 'Q796']
ASK WHERE { VALUES ( ?s ) { ( resource:Q954 ) ( resource:Q1029 ) ( resource:Q796 ) } . resource:Q1413580 property:P530 ?s }
No
action is_in
entity prev_answer
action find
entity São Pedro de Oliveira
relation diplomatic relation
['São Pedro de Oliveira', 'diplomatic relation', 'Zimbabwe'] ['São Pedro de Oliveira', 'diplomatic relation', 'Mozambique'] ['São Pedro de Oliveira', 'diplomatic relation', 'Iraq']
ASK WHERE { VALUES ( ?s ) { ( resource:Zimbabwe ) ( resource:Mozambique ) ( resource:Iraq ) } . resource:São_Pedro_de_Oliveira property:diplomatic_relation ?s }
[]