Simple Question (Direct)
Simple Question
Q5628167
P1196
Q1931388
USER
What situation did H. David Dalquist die in ?
(Q5628167,P1196,c(Q1931388))
action filter_type
action find
entity Q5628167
relation P1196
type Q1931388
['Q5628167', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?a WHERE { resource:Q5628167 property:P1196 ?a . ?a rdf:type ontology:Q1931388 }
H. David Dalquist
action filter_type
action find
entity H. David Dalquist
relation manner of death
type cause of death
['H. David Dalquist', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?a WHERE { resource:H._David_Dalquist property:manner_of_death ?a . ?a rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q5628167,P1196,c(Q1931388))
action filter_type
action find
entity Q5628167
relation P1196
type Q1931388
H. David Dalquist died in [ANSWER]
['Q5628167', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?a WHERE { resource:Q5628167 property:P1196 ?a . ?a rdf:type ontology:Q1931388 }
natural causes
H. David Dalquist died in natural causes
natural causes
action filter_type
action find
entity H. David Dalquist
relation manner of death
type cause of death
['H. David Dalquist', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?a WHERE { resource:H._David_Dalquist property:manner_of_death ?a . ?a rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5628167
P735
Q82799
USER
What is forename of H. David Dalquist ?
(Q5628167,P735,c(Q82799))
action filter_type
action find
entity Q5628167
relation P735
type Q82799
['Q5628167', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q5628167 property:P735 ?q . ?q rdf:type ontology:Q82799 }
H. David Dalquist
action filter_type
action find
entity H. David Dalquist
relation given name
type name
['H. David Dalquist', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:H._David_Dalquist property:given_name ?q . ?q rdf:type ontology:name }
[]
name
Q19803505
SYSTEM
H.
Q19803505
(Q5628167,P735,c(Q82799))
action filter_type
action find
entity Q5628167
relation P735
type Q82799
Forename of [ANSWER] David Dalquist is also [ANSWER]
['Q5628167', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q5628167 property:P735 ?q . ?q rdf:type ontology:Q82799 }
H.
Forename of H. David Dalquist is also H.
H.
action filter_type
action find
entity H. David Dalquist
relation given name
type name
['H. David Dalquist', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:H._David_Dalquist property:given_name ?q . ?q rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5628167
P21
Q290
USER
Which sex does that person belong to ?
(Q19803505,P21,c(Q290))
action filter_type
action find
entity Q5628167
relation P21
type Q290
['Q19803505', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q5628167 property:P21 ?b . ?b rdf:type ontology:Q290 }
H. David Dalquist
action filter_type
action find
entity H. David Dalquist
relation gender
type sex
['H.', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:H._David_Dalquist property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q19803505,P21,c(Q290))
action filter_type
action find
entity Q5628167
relation P21
type Q290
That person belongs to [ANSWER]
['Q19803505', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q5628167 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity H. David Dalquist
relation gender
type sex
['H.', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:H._David_Dalquist property:gender ?b . ?b rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1625334 Q5628167
P21
Q290
USER
Or Jan Holthuis?
OR((Q5628167,P21,c(Q290)), (Q1625334,P21,c(Q290)))
action filter_type
action union
action find
entity Q5628167
relation P21
action find
entity Q1625334
relation P21
type Q290
{'OR': [['Q5628167', 'P21', {'concept': 'Q290'}], ['Q1625334', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?l ) { ( resource:Q5628167 ) ( resource:Q1625334 ) } . ?l property:P21 ?y } . ?y rdf:type ontology:Q290 }
Jan Holthuis H. David Dalquist
action filter_type
action union
action find
entity H. David Dalquist
relation gender
action find
entity Jan Holthuis
relation gender
type sex
{'OR': [['H. David Dalquist', 'gender', {'concept': 'sex'}], ['Jan Holthuis', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?l ) { ( resource:H._David_Dalquist ) ( resource:Jan_Holthuis ) } . ?l property:gender ?y } . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q5628167,P21,c(Q290)), (Q1625334,P21,c(Q290)))
action filter_type
action union
action find
entity Q5628167
relation P21
action find
entity Q1625334
relation P21
type Q290
[ANSWER]
{'OR': [['Q5628167', 'P21', {'concept': 'Q290'}], ['Q1625334', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?l ) { ( resource:Q5628167 ) ( resource:Q1625334 ) } . ?l property:P21 ?y } . ?y rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity H. David Dalquist
relation gender
action find
entity Jan Holthuis
relation gender
type sex
{'OR': [['H. David Dalquist', 'gender', {'concept': 'sex'}], ['Jan Holthuis', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?l ) { ( resource:H._David_Dalquist ) ( resource:Jan_Holthuis ) } . ?l property:gender ?y } . ?y rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5628167
P119
Q43229
USER
Where was H. David Dalquist buried ?
(Q5628167,P119,c(Q43229))
action filter_type
action find
entity Q5628167
relation P119
type Q43229
['Q5628167', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { resource:Q5628167 property:P119 ?q . ?q rdf:type ontology:Q43229 }
H. David Dalquist
action filter_type
action find
entity H. David Dalquist
relation place of burial
type organization
['H. David Dalquist', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { resource:H._David_Dalquist property:place_of_burial ?q . ?q rdf:type ontology:organization }
[]
organization
Q1801158
SYSTEM
Lakewood Cemetery
Q1801158
(Q5628167,P119,c(Q43229))
action filter_type
action find
entity Q5628167
relation P119
type Q43229
H. David Dalquist was buried in [ANSWER]
['Q5628167', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { resource:Q5628167 property:P119 ?q . ?q rdf:type ontology:Q43229 }
Lakewood Cemetery
H. David Dalquist was buried in Lakewood Cemetery
Lakewood Cemetery
action filter_type
action find
entity H. David Dalquist
relation place of burial
type organization
['H. David Dalquist', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { resource:H._David_Dalquist property:place_of_burial ?q . ?q rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5628167
P607
Q198
USER
Which war did that person take part in ?
(Q1801158,P607,c(Q198))
action filter_type
action find
entity Q5628167
relation P607
type Q198
['Q1801158', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?w WHERE { resource:Q5628167 property:P607 ?w . ?w rdf:type ontology:Q198 }
H. David Dalquist
action filter_type
action find
entity H. David Dalquist
relation conflict
type war
['Lakewood Cemetery', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?w WHERE { resource:H._David_Dalquist property:conflict ?w . ?w rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q1801158,P607,c(Q198))
action filter_type
action find
entity Q5628167
relation P607
type Q198
That person took part in [ANSWER]
['Q1801158', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?w WHERE { resource:Q5628167 property:P607 ?w . ?w rdf:type ontology:Q198 }
World War II
That person took part in World War II
World War II
action filter_type
action find
entity H. David Dalquist
relation conflict
type war
['Lakewood Cemetery', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?w WHERE { resource:H._David_Dalquist property:conflict ?w . ?w rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5628167
P509
Q2057971
USER
How did that person die ?
(Q362,P509,c(Q2057971))
action filter_type
action find
entity Q5628167
relation P509
type Q2057971
['Q362', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { resource:Q5628167 property:P509 ?b . ?b rdf:type ontology:Q2057971 }
H. David Dalquist
action filter_type
action find
entity H. David Dalquist
relation cause of death
type health problem
['World War II', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { resource:H._David_Dalquist property:cause_of_death ?b . ?b rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q362,P509,c(Q2057971))
action filter_type
action find
entity Q5628167
relation P509
type Q2057971
That person died of [ANSWER]
['Q362', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { resource:Q5628167 property:P509 ?b . ?b rdf:type ontology:Q2057971 }
myocardial infarction
That person died of myocardial infarction
myocardial infarction
action filter_type
action find
entity H. David Dalquist
relation cause of death
type health problem
['World War II', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { resource:H._David_Dalquist property:cause_of_death ?b . ?b rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5628167
P19
Q5119
USER
Which capital was that person born at ?
(Q12152,P19,c(Q5119))
action filter_type
action find
entity Q5628167
relation P19
type Q5119
['Q12152', 'P19', {'concept': 'Q5119'}]
SELECT DISTINCT ?k WHERE { resource:Q5628167 property:P19 ?k . ?k rdf:type ontology:Q5119 }
H. David Dalquist
action filter_type
action find
entity H. David Dalquist
relation place of birth
type capital
['myocardial infarction', 'place of birth', {'concept': 'capital'}]
SELECT DISTINCT ?k WHERE { resource:H._David_Dalquist property:place_of_birth ?k . ?k rdf:type ontology:capital }
[]
capital
Q36091
SYSTEM
Minneapolis
Q36091
(Q12152,P19,c(Q5119))
action filter_type
action find
entity Q5628167
relation P19
type Q5119
That person was born in [ANSWER]
['Q12152', 'P19', {'concept': 'Q5119'}]
SELECT DISTINCT ?k WHERE { resource:Q5628167 property:P19 ?k . ?k rdf:type ontology:Q5119 }
Minneapolis
That person was born in Minneapolis
Minneapolis
action filter_type
action find
entity H. David Dalquist
relation place of birth
type capital
['myocardial infarction', 'place of birth', {'concept': 'capital'}]
SELECT DISTINCT ?k WHERE { resource:H._David_Dalquist property:place_of_birth ?k . ?k rdf:type ontology:capital }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q198 Q645883 Q178561
USER
Which wars are max number of military operations or battles a component of ?
(c(Q645883)|c(Q178561),P361,c(Q198))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action find_reverse_tuple_counts
relation P361
type Q198
type Q178561
[[{'concept': 'Q645883'}, {'concept': 'Q178561'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?z = ?q ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?z ) WHERE { { ?k property:P361 ?c . ?c rdf:type ontology:Q198 . ?k rdf:type ontology:Q645883 } UNION { ?k property:P361 ?c . ?c rdf:type ontology:Q198 . ?k rdf:type ontology:Q178561 } } GROUP BY ?c } . { SELECT DISTINCT ( MAX ( ?f ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?f ) WHERE { { ?j property:P361 ?w . ?w rdf:type ontology:Q198 . ?j rdf:type ontology:Q645883 } UNION { ?j property:P361 ?w . ?w rdf:type ontology:Q198 . ?j rdf:type ontology:Q178561 } } GROUP BY ?w } } }
action argmax
action union
action find_reverse_tuple_counts
relation part of
type war
type military operation
action find_reverse_tuple_counts
relation part of
type war
type battle
[[{'concept': 'military operation'}, {'concept': 'battle'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?z = ?q ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?z ) WHERE { { ?k property:part_of ?c . ?c rdf:type ontology:war . ?k rdf:type ontology:military_operation } UNION { ?k property:part_of ?c . ?c rdf:type ontology:war . ?k rdf:type ontology:battle } } GROUP BY ?c } . { SELECT DISTINCT ( MAX ( ?f ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?f ) WHERE { { ?j property:part_of ?w . ?w rdf:type ontology:war . ?j rdf:type ontology:military_operation } UNION { ?j property:part_of ?w . ?w rdf:type ontology:war . ?j rdf:type ontology:battle } } GROUP BY ?w } } }
[]
war military operation battle
Q179975
SYSTEM
Chinese Civil War
Q179975
(c(Q645883)|c(Q178561),P361,c(Q198))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action find_reverse_tuple_counts
relation P361
type Q198
type Q178561
[ANSWER] is max number of military operations or battles a component of
[[{'concept': 'Q645883'}, {'concept': 'Q178561'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?z = ?q ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?z ) WHERE { { ?k property:P361 ?c . ?c rdf:type ontology:Q198 . ?k rdf:type ontology:Q645883 } UNION { ?k property:P361 ?c . ?c rdf:type ontology:Q198 . ?k rdf:type ontology:Q178561 } } GROUP BY ?c } . { SELECT DISTINCT ( MAX ( ?f ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?f ) WHERE { { ?j property:P361 ?w . ?w rdf:type ontology:Q198 . ?j rdf:type ontology:Q645883 } UNION { ?j property:P361 ?w . ?w rdf:type ontology:Q198 . ?j rdf:type ontology:Q178561 } } GROUP BY ?w } } }
Chinese Civil War
Chinese Civil War is max number of military operations or battles a component of
Chinese Civil War
action argmax
action union
action find_reverse_tuple_counts
relation part of
type war
type military operation
action find_reverse_tuple_counts
relation part of
type war
type battle
[[{'concept': 'military operation'}, {'concept': 'battle'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?z = ?q ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?z ) WHERE { { ?k property:part_of ?c . ?c rdf:type ontology:war . ?k rdf:type ontology:military_operation } UNION { ?k property:part_of ?c . ?c rdf:type ontology:war . ?k rdf:type ontology:battle } } GROUP BY ?c } . { SELECT DISTINCT ( MAX ( ?f ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?f ) WHERE { { ?j property:part_of ?w . ?w rdf:type ontology:war . ?j rdf:type ontology:military_operation } UNION { ?j property:part_of ?w . ?w rdf:type ontology:war . ?j rdf:type ontology:battle } } GROUP BY ?w } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5981257 Q36091
P190 P20
Q515
USER
Which cities are twin towns of Minneapolis or are the places of death of James H. McClure ?
OR((Q36091,P190,c(Q515)), (Q5981257,P20,c(Q515)))
action filter_type
action union
action find
entity Q36091
relation P190
action find
entity Q5981257
relation P20
type Q515
{'OR': [['Q36091', 'P190', {'concept': 'Q515'}], ['Q5981257', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q515 . { { resource:Q5981257 property:P20 ?b } UNION { resource:Q36091 property:P190 ?b } } }
James H. McClure Minneapolis
action filter_type
action union
action find
entity Minneapolis
relation sister city
action find
entity James H. McClure
relation place of death
type city
{'OR': [['Minneapolis', 'sister city', {'concept': 'city'}], ['James H. McClure', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:city . { { resource:James_H._McClure property:place_of_death ?b } UNION { resource:Minneapolis property:sister_city ?b } } }
[]
city
Q34217 Q2887
SYSTEM
Oxford, Santiago
Q34217 Q2887
OR((Q36091,P190,c(Q515)), (Q5981257,P20,c(Q515)))
action filter_type
action union
action find
entity Q36091
relation P190
action find
entity Q5981257
relation P20
type Q515
[ANSWERS] are twin towns of Minneapolis or are the places of death of James H. McClure
{'OR': [['Q36091', 'P190', {'concept': 'Q515'}], ['Q5981257', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q515 . { { resource:Q5981257 property:P20 ?b } UNION { resource:Q36091 property:P190 ?b } } }
Oxford Santiago
Oxford and Santiago are twin towns of Minneapolis or are the places of death of James H. McClure
Oxford Santiago
action filter_type
action union
action find
entity Minneapolis
relation sister city
action find
entity James H. McClure
relation place of death
type city
{'OR': [['Minneapolis', 'sister city', {'concept': 'city'}], ['James H. McClure', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:city . { { resource:James_H._McClure property:place_of_death ?b } UNION { resource:Minneapolis property:sister_city ?b } } }
[]