Simple Question (Direct)
Simple Question
Q5498687
P607
Q198
USER
Which war did Frederick S. Neilon take part in ?
(Q5498687,P607,c(Q198))
action filter_type
action find
entity Q5498687
relation P607
type Q198
['Q5498687', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q5498687 property:P607 ?c . ?c rdf:type ontology:Q198 }
Frederick S. Neilon
action filter_type
action find
entity Frederick S. Neilon
relation conflict
type war
['Frederick S. Neilon', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Frederick_S._Neilon property:conflict ?c . ?c rdf:type ontology:war }
[]
war
Q8676
SYSTEM
American Civil War
Q8676
(Q5498687,P607,c(Q198))
action filter_type
action find
entity Q5498687
relation P607
type Q198
Frederick S. Neilon took in the [ANSWER] part
['Q5498687', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q5498687 property:P607 ?c . ?c rdf:type ontology:Q198 }
American Civil War
Frederick S. Neilon took in the American Civil War part
American Civil War
action filter_type
action find
entity Frederick S. Neilon
relation conflict
type war
['Frederick S. Neilon', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Frederick_S._Neilon property:conflict ?c . ?c rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8676
P1344
Q502895
USER
Which person participated in that war ?
(c(Q502895),P1344,Q8676)
action filter_type
action find_reverse
entity Q8676
relation P1344
type Q502895
[{'concept': 'Q502895'}, 'P1344', 'Q8676']
SELECT DISTINCT ?f WHERE { ?f property:P1344 resource:Q8676 . ?f rdf:type ontology:Q502895 }
American Civil War
action filter_type
action find_reverse
entity American Civil War
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', 'American Civil War']
SELECT DISTINCT ?f WHERE { ?f property:participant_of resource:American_Civil_War . ?f rdf:type ontology:common_name }
[]
common name
Q20436726
SYSTEM
Matthias Ernest Rozsafy
Q20436726
(c(Q502895),P1344,Q8676)
action filter_type
action find_reverse
entity Q8676
relation P1344
type Q502895
[ANSWER] participated in that war
[{'concept': 'Q502895'}, 'P1344', 'Q8676']
SELECT DISTINCT ?f WHERE { ?f property:P1344 resource:Q8676 . ?f rdf:type ontology:Q502895 }
Matthias Ernest Rozsafy
Matthias Ernest Rozsafy participated in that war
Matthias Ernest Rozsafy
action filter_type
action find_reverse
entity American Civil War
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', 'American Civil War']
SELECT DISTINCT ?f WHERE { ?f property:participant_of resource:American_Civil_War . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20436726
P21
Q290
USER
Which sex does that person have ?
(Q20436726,P21,c(Q290))
action filter_type
action find
entity Q20436726
relation P21
type Q290
['Q20436726', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q20436726 property:P21 ?k . ?k rdf:type ontology:Q290 }
Matthias Ernest Rozsafy
action filter_type
action find
entity Matthias Ernest Rozsafy
relation gender
type sex
['Matthias Ernest Rozsafy', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Matthias_Ernest_Rozsafy property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q20436726,P21,c(Q290))
action filter_type
action find
entity Q20436726
relation P21
type Q290
That person has a [ANSWER]
['Q20436726', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q20436726 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Matthias Ernest Rozsafy
relation gender
type sex
['Matthias Ernest Rozsafy', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Matthias_Ernest_Rozsafy property:gender ?k . ?k rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q13040130
P21
Q502895
USER
Does Ilir Gjoni have the gender as that sex ?
(Q13040130,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q13040130
relation P21
['Q13040130', 'P21', 'Q6581097']
ASK WHERE { resource:Q13040130 property:P21 resource:Q6581097 }
male Ilir Gjoni
action is_in
entity male
action find
entity Ilir Gjoni
relation gender
['Ilir Gjoni', 'gender', 'male']
ASK WHERE { resource:Ilir_Gjoni property:gender resource:male }
[]
common name
SYSTEM
YES
(Q13040130,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q13040130
relation P21
[ANSWER]
['Q13040130', 'P21', 'Q6581097']
ASK WHERE { resource:Q13040130 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Ilir Gjoni
relation gender
['Ilir Gjoni', 'gender', 'male']
ASK WHERE { resource:Ilir_Gjoni property:gender resource:male }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8676
P793
Q502895
USER
Which person had American Civil War as its key event ?
(c(Q502895),P793,Q8676)
action filter_type
action find_reverse
entity Q8676
relation P793
type Q502895
[{'concept': 'Q502895'}, 'P793', 'Q8676']
SELECT DISTINCT ?t WHERE { ?t property:P793 resource:Q8676 . ?t rdf:type ontology:Q502895 }
American Civil War
action filter_type
action find_reverse
entity American Civil War
relation significant event
type common name
[{'concept': 'common name'}, 'significant event', 'American Civil War']
SELECT DISTINCT ?t WHERE { ?t property:significant_event resource:American_Civil_War . ?t rdf:type ontology:common_name }
[]
common name
Q21988192
SYSTEM
Moses Greeley Parker
Q21988192
(c(Q502895),P793,Q8676)
action filter_type
action find_reverse
entity Q8676
relation P793
type Q502895
[ANSWER] had American Civil War as its key event
[{'concept': 'Q502895'}, 'P793', 'Q8676']
SELECT DISTINCT ?t WHERE { ?t property:P793 resource:Q8676 . ?t rdf:type ontology:Q502895 }
Moses Greeley Parker
Moses Greeley Parker had American Civil War as its key event
Moses Greeley Parker
action filter_type
action find_reverse
entity American Civil War
relation significant event
type common name
[{'concept': 'common name'}, 'significant event', 'American Civil War']
SELECT DISTINCT ?t WHERE { ?t property:significant_event resource:American_Civil_War . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8676
P710
Q1048835
USER
Who attended that war ?
(Q21988192,P710,c(Q1048835))
action filter_type
action find
entity Q8676
relation P710
type Q1048835
['Q21988192', 'P710', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q8676 property:P710 ?i . ?i rdf:type ontology:Q1048835 }
American Civil War
action filter_type
action find
entity American Civil War
relation participant
type political territorial entity
['Moses Greeley Parker', 'participant', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:American_Civil_War property:participant ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q214102
SYSTEM
Union
Q214102
(Q21988192,P710,c(Q1048835))
action filter_type
action find
entity Q8676
relation P710
type Q1048835
[ANSWER] attended that war
['Q21988192', 'P710', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q8676 property:P710 ?i . ?i rdf:type ontology:Q1048835 }
Union
Union attended that war
Union
action filter_type
action find
entity American Civil War
relation participant
type political territorial entity
['Moses Greeley Parker', 'participant', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:American_Civil_War property:participant ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q214102
P102
Q502895
USER
Who are the members of that political territory ?
(c(Q502895),P102,Q214102)
action filter_type
action find_reverse
entity Q214102
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q214102']
SELECT DISTINCT ?l WHERE { ?l property:P102 resource:Q214102 . ?l rdf:type ontology:Q502895 }
Union
action filter_type
action find_reverse
entity Union
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Union']
SELECT DISTINCT ?l WHERE { ?l property:member_of_political_party resource:Union . ?l rdf:type ontology:common_name }
[]
common name
Q817713 Q5981597 Q1508521
SYSTEM
Benjamin Thomas, James A. McDougall, George Washington Bridges
Q1508521 Q7794539 Q1673441 Q505360 Q817713 Q5981597
(c(Q502895),P102,Q214102)
action filter_type
action find_reverse
entity Q214102
relation P102
type Q502895
The members of that political territory are [ANSWERS]
[{'concept': 'Q502895'}, 'P102', 'Q214102']
SELECT DISTINCT ?l WHERE { ?l property:P102 resource:Q214102 . ?l rdf:type ontology:Q502895 }
George Washington Bridges Thomas Treadwell Davis Isaac Roberts Hawkins Andrew Jackson Clements Benjamin Thomas James A. McDougall
The members of that political territory are Benjamin Thomas, James A. McDougall and George Washington Bridges
Benjamin Thomas James A. McDougall George Washington Bridges
action filter_type
action find_reverse
entity Union
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Union']
SELECT DISTINCT ?l WHERE { ?l property:member_of_political_party resource:Union . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q214102
P710
Q1190554 Q198
USER
How many events or wars have Union as their participant ?
(c(Q1190554),P710,Q214102) (c(Q198),P710,Q214102)
action count
action union
action filter_type
action find_reverse
entity Q214102
relation P710
type Q1190554
action filter_type
action find_reverse
entity Q214102
relation P710
type Q198
[{'concept': 'Q1190554'}, 'P710', 'Q214102'] [{'concept': 'Q198'}, 'P710', 'Q214102']
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { VALUES ( ?h ) { ( ontology:Q198 ) ( ontology:Q1190554 ) } . ?n rdf:type ?h }
Union
action count
action union
action filter_type
action find_reverse
entity Union
relation participant
type event
action filter_type
action find_reverse
entity Union
relation participant
type war
[{'concept': 'event'}, 'participant', 'Union'] [{'concept': 'war'}, 'participant', 'Union']
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { VALUES ( ?h ) { ( ontology:war ) ( ontology:event ) } . ?n rdf:type ?h }
[]
event war
SYSTEM
3
Q2640011 Q33132 Q8676
(c(Q1190554),P710,Q214102) (c(Q198),P710,Q214102)
action count
action union
action filter_type
action find_reverse
entity Q214102
relation P710
type Q1190554
action filter_type
action find_reverse
entity Q214102
relation P710
type Q198
[ANSWER]
[{'concept': 'Q1190554'}, 'P710', 'Q214102'] [{'concept': 'Q198'}, 'P710', 'Q214102']
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { VALUES ( ?h ) { ( ontology:Q198 ) ( ontology:Q1190554 ) } . ?n rdf:type ?h }
Battle of Barbourville Battle of Gettysburg American Civil War
3
action count
action union
action filter_type
action find_reverse
entity Union
relation participant
type event
action filter_type
action find_reverse
entity Union
relation participant
type war
[{'concept': 'event'}, 'participant', 'Union'] [{'concept': 'war'}, 'participant', 'Union']
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { VALUES ( ?h ) { ( ontology:war ) ( ontology:event ) } . ?n rdf:type ?h }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7079321 Q21988192
P106
Q12737077
USER
Which occupations are the job of Moses Greeley Parker or Renxianzhangsheng ?
OR((Q21988192,P106,c(Q12737077)), (Q7079321,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21988192
relation P106
action find
entity Q7079321
relation P106
type Q12737077
{'OR': [['Q21988192', 'P106', {'concept': 'Q12737077'}], ['Q7079321', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?q WHERE { { ?j property:P106 ?q . VALUES ( ?j ) { ( resource:Q21988192 ) ( resource:Q7079321 ) } } . ?q rdf:type ontology:Q12737077 }
Renxianzhangsheng Moses Greeley Parker
action filter_type
action union
action find
entity Moses Greeley Parker
relation occupation
action find
entity Renxianzhangsheng
relation occupation
type occupation
{'OR': [['Moses Greeley Parker', 'occupation', {'concept': 'occupation'}], ['Renxianzhangsheng', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?q WHERE { { ?j property:occupation ?q . VALUES ( ?j ) { ( resource:Moses_Greeley_Parker ) ( resource:Renxianzhangsheng ) } } . ?q rdf:type ontology:occupation }
[]
occupation
Q39631 Q2272188
SYSTEM
physician, Khatun
Q39631 Q2272188
OR((Q21988192,P106,c(Q12737077)), (Q7079321,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21988192
relation P106
action find
entity Q7079321
relation P106
type Q12737077
[ANSWERS] are the job of Moses Greeley Parker or Renxianzhangsheng
{'OR': [['Q21988192', 'P106', {'concept': 'Q12737077'}], ['Q7079321', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?q WHERE { { ?j property:P106 ?q . VALUES ( ?j ) { ( resource:Q21988192 ) ( resource:Q7079321 ) } } . ?q rdf:type ontology:Q12737077 }
physician Khatun
Physician and Khatun are the job of Moses Greeley Parker or Renxianzhangsheng
physician Khatun
action filter_type
action union
action find
entity Moses Greeley Parker
relation occupation
action find
entity Renxianzhangsheng
relation occupation
type occupation
{'OR': [['Moses Greeley Parker', 'occupation', {'concept': 'occupation'}], ['Renxianzhangsheng', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?q WHERE { { ?j property:occupation ?q . VALUES ( ?j ) { ( resource:Moses_Greeley_Parker ) ( resource:Renxianzhangsheng ) } } . ?q rdf:type ontology:occupation }
[]