Simple Question (Direct)
Simple Question
Q7417187
P241
Q781132
USER
Which military branch did Sandy Campbell belong to ?
(Q7417187,P241,c(Q781132))
action filter_type
action find
entity Q7417187
relation P241
type Q781132
['Q7417187', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?b WHERE { resource:Q7417187 property:P241 ?b . ?b rdf:type ontology:Q781132 }
Sandy Campbell
action filter_type
action find
entity Sandy Campbell
relation military branch
type military branch
['Sandy Campbell', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?b WHERE { resource:Sandy_Campbell property:military_branch ?b . ?b rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q7417187,P241,c(Q781132))
action filter_type
action find
entity Q7417187
relation P241
type Q781132
Sandy Campbell belonged to [ANSWER]
['Q7417187', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?b WHERE { resource:Q7417187 property:P241 ?b . ?b rdf:type ontology:Q781132 }
British Army
Sandy Campbell belonged to British Army
British Army
action filter_type
action find
entity Sandy Campbell
relation military branch
type military branch
['Sandy Campbell', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?b WHERE { resource:Sandy_Campbell property:military_branch ?b . ?b rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7417187
P607
Q198
USER
Which war did that person take part in ?
(Q222595,P607,c(Q198))
action filter_type
action find
entity Q7417187
relation P607
type Q198
['Q222595', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?p WHERE { resource:Q7417187 property:P607 ?p . ?p rdf:type ontology:Q198 }
Sandy Campbell
action filter_type
action find
entity Sandy Campbell
relation conflict
type war
['British Army', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?p WHERE { resource:Sandy_Campbell property:conflict ?p . ?p rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q222595,P607,c(Q198))
action filter_type
action find
entity Q7417187
relation P607
type Q198
That person took part in [ANSWER]
['Q222595', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?p WHERE { resource:Q7417187 property:P607 ?p . ?p rdf:type ontology:Q198 }
World War II
That person took part in World War II
World War II
action filter_type
action find
entity Sandy Campbell
relation conflict
type war
['British Army', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?p WHERE { resource:Sandy_Campbell property:conflict ?p . ?p rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7417187
P21
Q290
USER
Which sex does Sandy Campbell belong to ?
(Q7417187,P21,c(Q290))
action filter_type
action find
entity Q7417187
relation P21
type Q290
['Q7417187', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7417187 property:P21 ?u . ?u rdf:type ontology:Q290 }
Sandy Campbell
action filter_type
action find
entity Sandy Campbell
relation gender
type sex
['Sandy Campbell', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Sandy_Campbell property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7417187,P21,c(Q290))
action filter_type
action find
entity Q7417187
relation P21
type Q290
Sandy Campbell belongs to [ANSWER]
['Q7417187', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7417187 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
Sandy Campbell belongs to male
male
action filter_type
action find
entity Sandy Campbell
relation gender
type sex
['Sandy Campbell', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Sandy_Campbell property:gender ?u . ?u rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q404209 Q7417187
P21
Q290
USER
Or Keith Millard?
OR((Q7417187,P21,c(Q290)), (Q404209,P21,c(Q290)))
action filter_type
action union
action find
entity Q7417187
relation P21
action find
entity Q404209
relation P21
type Q290
{'OR': [['Q7417187', 'P21', {'concept': 'Q290'}], ['Q404209', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?h ) { ( resource:Q7417187 ) ( resource:Q404209 ) } . ?h property:P21 ?b } . ?b rdf:type ontology:Q290 }
Keith Millard Sandy Campbell
action filter_type
action union
action find
entity Sandy Campbell
relation gender
action find
entity Keith Millard
relation gender
type sex
{'OR': [['Sandy Campbell', 'gender', {'concept': 'sex'}], ['Keith Millard', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?h ) { ( resource:Sandy_Campbell ) ( resource:Keith_Millard ) } . ?h property:gender ?b } . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q7417187,P21,c(Q290)), (Q404209,P21,c(Q290)))
action filter_type
action union
action find
entity Q7417187
relation P21
action find
entity Q404209
relation P21
type Q290
[ANSWER]
{'OR': [['Q7417187', 'P21', {'concept': 'Q290'}], ['Q404209', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?h ) { ( resource:Q7417187 ) ( resource:Q404209 ) } . ?h property:P21 ?b } . ?b rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity Sandy Campbell
relation gender
action find
entity Keith Millard
relation gender
type sex
{'OR': [['Sandy Campbell', 'gender', {'concept': 'sex'}], ['Keith Millard', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?h ) { ( resource:Sandy_Campbell ) ( resource:Keith_Millard ) } . ?h property:gender ?b } . ?b rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3910477 Q222595
P138
Q502895
USER
Which people are British Army or Carl Sagan Award for Public Understanding of Science named after ?
OR((Q222595,P138,c(Q502895)), (Q3910477,P138,c(Q502895)))
action filter_type
action union
action find
entity Q222595
relation P138
action find
entity Q3910477
relation P138
type Q502895
{'OR': [['Q222595', 'P138', {'concept': 'Q502895'}], ['Q3910477', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { { ?s property:P138 ?x . VALUES ( ?s ) { ( resource:Q222595 ) ( resource:Q3910477 ) } } . ?x rdf:type ontology:Q502895 }
Carl Sagan Award for Public Understanding of Science British Army
action filter_type
action union
action find
entity British Army
relation named after
action find
entity Carl Sagan Award for Public Understanding of Science
relation named after
type common name
{'OR': [['British Army', 'named after', {'concept': 'common name'}], ['Carl Sagan Award for Public Understanding of Science', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { { ?s property:named_after ?x . VALUES ( ?s ) { ( resource:British_Army ) ( resource:Carl_Sagan_Award_for_Public_Understanding_of_Science ) } } . ?x rdf:type ontology:common_name }
[]
common name
Q410 Q9682
SYSTEM
Carl Sagan, Elizabeth II
Q410 Q9682
OR((Q222595,P138,c(Q502895)), (Q3910477,P138,c(Q502895)))
action filter_type
action union
action find
entity Q222595
relation P138
action find
entity Q3910477
relation P138
type Q502895
Are British Army or Sagan Award for Public Understanding of Science named after Carl [ANSWERS]
{'OR': [['Q222595', 'P138', {'concept': 'Q502895'}], ['Q3910477', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { { ?s property:P138 ?x . VALUES ( ?s ) { ( resource:Q222595 ) ( resource:Q3910477 ) } } . ?x rdf:type ontology:Q502895 }
Carl Sagan Elizabeth II
Are British Army or Sagan Award for Public Understanding of Science named after Carl Carl Sagan and Elizabeth II
Carl Sagan Elizabeth II
action filter_type
action union
action find
entity British Army
relation named after
action find
entity Carl Sagan Award for Public Understanding of Science
relation named after
type common name
{'OR': [['British Army', 'named after', {'concept': 'common name'}], ['Carl Sagan Award for Public Understanding of Science', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { { ?s property:named_after ?x . VALUES ( ?s ) { ( resource:British_Army ) ( resource:Carl_Sagan_Award_for_Public_Understanding_of_Science ) } } . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16917641 Q7417187
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Sandy Campbell or do Mali belong to ?
OR((Q7417187,P27,c(Q15617994)), (Q16917641,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7417187
relation P27
action find
entity Q16917641
relation P17
type Q15617994
{'OR': [['Q7417187', 'P27', {'concept': 'Q15617994'}], ['Q16917641', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q7417187 property:P27 ?f } UNION { resource:Q16917641 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Mali Sandy Campbell
action filter_type
action union
action find
entity Sandy Campbell
relation country of citizenship
action find
entity Mali
relation country
type designation for an administrative territorial entity
{'OR': [['Sandy Campbell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mali', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Sandy_Campbell property:country_of_citizenship ?f } UNION { resource:Mali property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q974 Q145
SYSTEM
Democratic Republic of the Congo, United Kingdom
Q974 Q145
OR((Q7417187,P27,c(Q15617994)), (Q16917641,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7417187
relation P27
action find
entity Q16917641
relation P17
type Q15617994
[ANSWERS] are the native countriesof Sandy Campbell or do Mali belong to
{'OR': [['Q7417187', 'P27', {'concept': 'Q15617994'}], ['Q16917641', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q7417187 property:P27 ?f } UNION { resource:Q16917641 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Democratic Republic of the Congo United Kingdom
Democratic Republic of the Congo and United Kingdom are the native countriesof Sandy Campbell or do Mali belong to
Democratic Republic of the Congo United Kingdom
action filter_type
action union
action find
entity Sandy Campbell
relation country of citizenship
action find
entity Mali
relation country
type designation for an administrative territorial entity
{'OR': [['Sandy Campbell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mali', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Sandy_Campbell property:country_of_citizenship ?f } UNION { resource:Mali property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q313677
P27
Q502895
USER
Are Fabrice Muamba a native of those administrative territories ?
(Q313677,P27,Q974) (Q313677,P27,Q145)
action is_in
entity prev_answer
action find
entity Q313677
relation P27
['Q313677', 'P27', 'Q974'] ['Q313677', 'P27', 'Q145']
ASK WHERE { resource:Q313677 property:P27 ?w . VALUES ( ?w ) { ( resource:Q974 ) ( resource:Q145 ) } }
Fabrice Muamba
action is_in
entity prev_answer
action find
entity Fabrice Muamba
relation country of citizenship
['Fabrice Muamba', 'country of citizenship', 'Democratic Republic of the Congo'] ['Fabrice Muamba', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Fabrice_Muamba property:country_of_citizenship ?w . VALUES ( ?w ) { ( resource:Democratic_Republic_of_the_Congo ) ( resource:United_Kingdom ) } }
[]
common name
SYSTEM
YES
(Q313677,P27,Q974) (Q313677,P27,Q145)
action is_in
entity prev_answer
action find
entity Q313677
relation P27
[ANSWER]
['Q313677', 'P27', 'Q974'] ['Q313677', 'P27', 'Q145']
ASK WHERE { resource:Q313677 property:P27 ?w . VALUES ( ?w ) { ( resource:Q974 ) ( resource:Q145 ) } }
Yes
action is_in
entity prev_answer
action find
entity Fabrice Muamba
relation country of citizenship
['Fabrice Muamba', 'country of citizenship', 'Democratic Republic of the Congo'] ['Fabrice Muamba', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Fabrice_Muamba property:country_of_citizenship ?w . VALUES ( ?w ) { ( resource:Democratic_Republic_of_the_Congo ) ( resource:United_Kingdom ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q410 Q7735376
P69
Q163740
USER
Was The Frontline Club Charitable Trust Carl Sagan educated ?
(Q410,P69,Q7735376)
action is_in
entity Q7735376
action find
entity Q410
relation P69
['Q410', 'P69', 'Q7735376']
ASK WHERE { resource:Q410 property:P69 resource:Q7735376 }
Carl Sagan The Frontline Club Charitable Trust
action is_in
entity The Frontline Club Charitable Trust
action find
entity Carl Sagan
relation educated at
['Carl Sagan', 'educated at', 'The Frontline Club Charitable Trust']
ASK WHERE { resource:Carl_Sagan property:educated_at resource:The_Frontline_Club_Charitable_Trust }
[]
nonprofit organization
SYSTEM
NO
(Q410,P69,Q7735376)
action is_in
entity Q7735376
action find
entity Q410
relation P69
[ANSWER]
['Q410', 'P69', 'Q7735376']
ASK WHERE { resource:Q410 property:P69 resource:Q7735376 }
No
action is_in
entity The Frontline Club Charitable Trust
action find
entity Carl Sagan
relation educated at
['Carl Sagan', 'educated at', 'The Frontline Club Charitable Trust']
ASK WHERE { resource:Carl_Sagan property:educated_at resource:The_Frontline_Club_Charitable_Trust }
[]