Simple Question (Direct)
Simple Question
Q4933166
P607
Q198
USER
What was the war that Bob Lilley took part in
(Q4933166,P607,c(Q198))
action filter_type
action find
entity Q4933166
relation P607
type Q198
['Q4933166', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { resource:Q4933166 property:P607 ?r . ?r rdf:type ontology:Q198 }
Bob Lilley
action filter_type
action find
entity Bob Lilley
relation conflict
type war
['Bob Lilley', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { resource:Bob_Lilley property:conflict ?r . ?r rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q4933166,P607,c(Q198))
action filter_type
action find
entity Q4933166
relation P607
type Q198
The war that Bob Lilley took part in was in [ANSWER]
['Q4933166', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { resource:Q4933166 property:P607 ?r . ?r rdf:type ontology:Q198 }
World War II
The war that Bob Lilley took part in was in World War II
World War II
action filter_type
action find
entity Bob Lilley
relation conflict
type war
['Bob Lilley', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { resource:Bob_Lilley property:conflict ?r . ?r rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4933166
P241
Q781132
USER
Which military branch is that person associated with ?
(Q362,P241,c(Q781132))
action filter_type
action find
entity Q4933166
relation P241
type Q781132
['Q362', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?r WHERE { resource:Q4933166 property:P241 ?r . ?r rdf:type ontology:Q781132 }
Bob Lilley
action filter_type
action find
entity Bob Lilley
relation military branch
type military branch
['World War II', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?r WHERE { resource:Bob_Lilley property:military_branch ?r . ?r rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q362,P241,c(Q781132))
action filter_type
action find
entity Q4933166
relation P241
type Q781132
That person is associated with [ANSWER]
['Q362', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?r WHERE { resource:Q4933166 property:P241 ?r . ?r rdf:type ontology:Q781132 }
British Army
That person is associated with British Army
British Army
action filter_type
action find
entity Bob Lilley
relation military branch
type military branch
['World War II', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?r WHERE { resource:Bob_Lilley property:military_branch ?r . ?r rdf:type ontology:military_branch }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q222595 Q7914385 Q9682
P138
Q502895
USER
Does British Army come from Vandemataram Srinivas and Elizabeth II ?
(Q222595,P138,Q7914385) (Q222595,P138,Q9682)
action is_in
entity Q222595
action intersection
action find_reverse
entity Q7914385
relation P138
action find_reverse
entity Q9682
relation P138
['Q222595', 'P138', 'Q7914385'] ['Q222595', 'P138', 'Q9682']
ASK WHERE { resource:Q222595 property:P138 resource:Q7914385 . resource:Q222595 property:P138 resource:Q9682 }
British Army Vandemataram Srinivas Elizabeth II
action is_in
entity British Army
action intersection
action find_reverse
entity Vandemataram Srinivas
relation named after
action find_reverse
entity Elizabeth II
relation named after
['British Army', 'named after', 'Vandemataram Srinivas'] ['British Army', 'named after', 'Elizabeth II']
ASK WHERE { resource:British_Army property:named_after resource:Vandemataram_Srinivas . resource:British_Army property:named_after resource:Elizabeth_II }
[]
common name
SYSTEM
NO and YES respectively
(Q222595,P138,Q7914385) (Q222595,P138,Q9682)
action is_in
entity Q222595
action intersection
action find_reverse
entity Q7914385
relation P138
action find_reverse
entity Q9682
relation P138
[ANSWER]
['Q222595', 'P138', 'Q7914385'] ['Q222595', 'P138', 'Q9682']
ASK WHERE { resource:Q222595 property:P138 resource:Q7914385 . resource:Q222595 property:P138 resource:Q9682 }
NO and YES respectively
action is_in
entity British Army
action intersection
action find_reverse
entity Vandemataram Srinivas
relation named after
action find_reverse
entity Elizabeth II
relation named after
['British Army', 'named after', 'Vandemataram Srinivas'] ['British Army', 'named after', 'Elizabeth II']
ASK WHERE { resource:British_Army property:named_after resource:Vandemataram_Srinivas . resource:British_Army property:named_after resource:Elizabeth_II }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P607
Q198 Q502895 Q2235308
USER
Which wars was max number of people or ship types a part of ?
(c(Q502895)|c(Q2235308),P607,c(Q198))
action argmax
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?q ) { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?l ) WHERE { VALUES ( ?o ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } . ?u rdf:type ?o } GROUP BY ?v } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?d ) WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?j } . FILTER ( ?d = ?q ) }
action argmax
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?q ) { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?l ) WHERE { VALUES ( ?o ) { ( ontology:common_name ) ( ontology:ship_type ) } . ?u rdf:type ?o } GROUP BY ?v } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?d ) WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?j } . FILTER ( ?d = ?q ) }
[]
war common name ship type
Q362
SYSTEM
World War II
Q362
(c(Q502895)|c(Q2235308),P607,c(Q198))
action argmax
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
Was max number of people or ship types a part of the [ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?q ) { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?l ) WHERE { VALUES ( ?o ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } . ?u rdf:type ?o } GROUP BY ?v } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?d ) WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?j } . FILTER ( ?d = ?q ) }
World War II
Was max number of people or ship types a part of the World War II
World War II
action argmax
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?q ) { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?l ) WHERE { VALUES ( ?o ) { ( ontology:common_name ) ( ontology:ship_type ) } . ?u rdf:type ?o } GROUP BY ?v } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?d ) WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?j } . FILTER ( ?d = ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4933166
P27
Q15617994
USER
Which administrative territory is Bob Lilley an inhabitant of ?
(Q4933166,P27,c(Q15617994))
action filter_type
action find
entity Q4933166
relation P27
type Q15617994
['Q4933166', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q4933166 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Bob Lilley
action filter_type
action find
entity Bob Lilley
relation country of citizenship
type designation for an administrative territorial entity
['Bob Lilley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Bob_Lilley property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q4933166,P27,c(Q15617994))
action filter_type
action find
entity Q4933166
relation P27
type Q15617994
The [ANSWER] is Bob Lilley an inhabitant of
['Q4933166', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q4933166 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is Bob Lilley an inhabitant of
United Kingdom
action filter_type
action find
entity Bob Lilley
relation country of citizenship
type designation for an administrative territorial entity
['Bob Lilley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Bob_Lilley property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11755160
Q15617994
USER
And what about Leszek Żebrowski?
(Q11755160,P27,c(Q15617994))
action filter_type
action find
entity Q11755160
relation P27
type Q15617994
['Q11755160', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q11755160 property:P27 ?l }
Leszek Żebrowski
action filter_type
action find
entity Leszek Żebrowski
relation country of citizenship
type designation for an administrative territorial entity
['Leszek Żebrowski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Leszek_Żebrowski property:country_of_citizenship ?l }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q11755160,P27,c(Q15617994))
action filter_type
action find
entity Q11755160
relation P27
type Q15617994
[ANSWER]
['Q11755160', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q11755160 property:P27 ?l }
Poland
Poland
action filter_type
action find
entity Leszek Żebrowski
relation country of citizenship
type designation for an administrative territorial entity
['Leszek Żebrowski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Leszek_Żebrowski property:country_of_citizenship ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11755160
P21
Q290
USER
Which sex does that person have ?
(Q36,P21,c(Q290))
action filter_type
action find
entity Q11755160
relation P21
type Q290
['Q36', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q11755160 property:P21 ?j . ?j rdf:type ontology:Q290 }
Leszek Żebrowski
action filter_type
action find
entity Leszek Żebrowski
relation gender
type sex
['Poland', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Leszek_Żebrowski property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q36,P21,c(Q290))
action filter_type
action find
entity Q11755160
relation P21
type Q290
That person has a [ANSWER]
['Q36', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q11755160 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Leszek Żebrowski
relation gender
type sex
['Poland', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Leszek_Żebrowski property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11755160
P106
Q12737077
USER
Which occupations have Leszek Żebrowski as his/her 's career ?
(Q11755160,P106,c(Q12737077))
action filter_type
action find
entity Q11755160
relation P106
type Q12737077
['Q11755160', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q11755160 property:P106 ?u }
Leszek Żebrowski
action filter_type
action find
entity Leszek Żebrowski
relation occupation
type occupation
['Leszek Żebrowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Leszek_Żebrowski property:occupation ?u }
[]
occupation
Q201788 Q188094
SYSTEM
historian, economist
Q201788 Q188094
(Q11755160,P106,c(Q12737077))
action filter_type
action find
entity Q11755160
relation P106
type Q12737077
[ANSWERS] have Leszek Żebrowski as his/her 's career
['Q11755160', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q11755160 property:P106 ?u }
historian economist
Historian and economist have Leszek Żebrowski as his/her 's career
historian economist
action filter_type
action find
entity Leszek Żebrowski
relation occupation
type occupation
['Leszek Żebrowski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Leszek_Żebrowski property:occupation ?u }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6128265
Q12737077
USER
And what about James A. Shapiro?
(Q6128265,P106,c(Q12737077))
action filter_type
action find
entity Q6128265
relation P106
type Q12737077
['Q6128265', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q6128265 property:P106 ?j }
James A. Shapiro
action filter_type
action find
entity James A. Shapiro
relation occupation
type occupation
['James A. Shapiro', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:James_A._Shapiro property:occupation ?j }
[]
occupation
Q864503 Q2919046
SYSTEM
biologist, biochemist
Q864503 Q2919046
(Q6128265,P106,c(Q12737077))
action filter_type
action find
entity Q6128265
relation P106
type Q12737077
[ANSWERS]
['Q6128265', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q6128265 property:P106 ?j }
biologist biochemist
biologist biochemist
action filter_type
action find
entity James A. Shapiro
relation occupation
type occupation
['James A. Shapiro', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:James_A._Shapiro property:occupation ?j }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q18204217
P106
Q502895
USER
Do Rose Schwarz have a job as those occupations ?
(Q18204217,P106,Q864503) (Q18204217,P106,Q2919046)
action is_in
entity prev_answer
action find
entity Q18204217
relation P106
['Q18204217', 'P106', 'Q864503'] ['Q18204217', 'P106', 'Q2919046']
ASK WHERE { resource:Q18204217 property:P106 ?q . VALUES ( ?q ) { ( resource:Q864503 ) ( resource:Q2919046 ) } }
Rose Schwarz
action is_in
entity prev_answer
action find
entity Rose Schwarz
relation occupation
['Rose Schwarz', 'occupation', 'biologist'] ['Rose Schwarz', 'occupation', 'biochemist']
ASK WHERE { resource:Rose_Schwarz property:occupation ?q . VALUES ( ?q ) { ( resource:biologist ) ( resource:biochemist ) } }
[]
common name
SYSTEM
NO
(Q18204217,P106,Q864503) (Q18204217,P106,Q2919046)
action is_in
entity prev_answer
action find
entity Q18204217
relation P106
[ANSWER]
['Q18204217', 'P106', 'Q864503'] ['Q18204217', 'P106', 'Q2919046']
ASK WHERE { resource:Q18204217 property:P106 ?q . VALUES ( ?q ) { ( resource:Q864503 ) ( resource:Q2919046 ) } }
No
action is_in
entity prev_answer
action find
entity Rose Schwarz
relation occupation
['Rose Schwarz', 'occupation', 'biologist'] ['Rose Schwarz', 'occupation', 'biochemist']
ASK WHERE { resource:Rose_Schwarz property:occupation ?q . VALUES ( ?q ) { ( resource:biologist ) ( resource:biochemist ) } }
[]