Simple Question (Direct)
Simple Question
Q74338
P410
Q4189293
USER
Which title has Charles Warren achieved ?
(Q74338,P410,c(Q4189293))
action filter_type
action find
entity Q74338
relation P410
type Q4189293
['Q74338', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?a WHERE { resource:Q74338 property:P410 ?a . ?a rdf:type ontology:Q4189293 }
Charles Warren
action filter_type
action find
entity Charles Warren
relation military rank
type title
['Charles Warren', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?a WHERE { resource:Charles_Warren property:military_rank ?a . ?a rdf:type ontology:title }
[]
title
Q5531654
SYSTEM
general
Q5531654
(Q74338,P410,c(Q4189293))
action filter_type
action find
entity Q74338
relation P410
type Q4189293
Charles Warren has achieved the [ANSWER]
['Q74338', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?a WHERE { resource:Q74338 property:P410 ?a . ?a rdf:type ontology:Q4189293 }
general
Charles Warren has achieved the general
general
action filter_type
action find
entity Charles Warren
relation military rank
type title
['Charles Warren', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?a WHERE { resource:Charles_Warren property:military_rank ?a . ?a rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q74338
P241
Q781132
USER
Which military branch did that person belong to ?
(Q5531654,P241,c(Q781132))
action filter_type
action find
entity Q74338
relation P241
type Q781132
['Q5531654', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?w WHERE { resource:Q74338 property:P241 ?w . ?w rdf:type ontology:Q781132 }
Charles Warren
action filter_type
action find
entity Charles Warren
relation military branch
type military branch
['general', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?w WHERE { resource:Charles_Warren property:military_branch ?w . ?w rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q5531654,P241,c(Q781132))
action filter_type
action find
entity Q74338
relation P241
type Q781132
That person belonged to [ANSWER]
['Q5531654', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?w WHERE { resource:Q74338 property:P241 ?w . ?w rdf:type ontology:Q781132 }
British Army
That person belonged to British Army
British Army
action filter_type
action find
entity Charles Warren
relation military branch
type military branch
['general', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?w WHERE { resource:Charles_Warren property:military_branch ?w . ?w rdf:type ontology:military_branch }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q222595 Q700542 Q145
P17
Q15617994
USER
Is that military branch situated in Mauerbach and United Kingdom ?
(Q222595,P17,Q700542) (Q222595,P17,Q145)
action is_in
entity Q222595
action intersection
action find_reverse
entity Q700542
relation P17
action find_reverse
entity Q145
relation P17
['Q222595', 'P17', 'Q700542'] ['Q222595', 'P17', 'Q145']
ASK WHERE { resource:Q222595 property:P17 resource:Q700542 . resource:Q222595 property:P17 resource:Q145 }
British Army Mauerbach United Kingdom
action is_in
entity British Army
action intersection
action find_reverse
entity Mauerbach
relation country
action find_reverse
entity United Kingdom
relation country
['British Army', 'country', 'Mauerbach'] ['British Army', 'country', 'United Kingdom']
ASK WHERE { resource:British_Army property:country resource:Mauerbach . resource:British_Army property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q222595,P17,Q700542) (Q222595,P17,Q145)
action is_in
entity Q222595
action intersection
action find_reverse
entity Q700542
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q222595', 'P17', 'Q700542'] ['Q222595', 'P17', 'Q145']
ASK WHERE { resource:Q222595 property:P17 resource:Q700542 . resource:Q222595 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity British Army
action intersection
action find_reverse
entity Mauerbach
relation country
action find_reverse
entity United Kingdom
relation country
['British Army', 'country', 'Mauerbach'] ['British Army', 'country', 'United Kingdom']
ASK WHERE { resource:British_Army property:country resource:Mauerbach . resource:British_Army property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5531654 Q7142506 Q562513
P17
Q15617994
USER
Is general present in Passaic City School District and Netzbach ?
(Q5531654,P17,Q7142506) (Q5531654,P17,Q562513)
action is_in
entity Q5531654
action intersection
action find_reverse
entity Q7142506
relation P17
action find_reverse
entity Q562513
relation P17
['Q5531654', 'P17', 'Q7142506'] ['Q5531654', 'P17', 'Q562513']
ASK WHERE { resource:Q5531654 property:P17 resource:Q7142506 . resource:Q5531654 property:P17 resource:Q562513 }
general Passaic City School District Netzbach
action is_in
entity general
action intersection
action find_reverse
entity Passaic City School District
relation country
action find_reverse
entity Netzbach
relation country
['general', 'country', 'Passaic City School District'] ['general', 'country', 'Netzbach']
ASK WHERE { resource:general property:country resource:Passaic_City_School_District . resource:general property:country resource:Netzbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5531654,P17,Q7142506) (Q5531654,P17,Q562513)
action is_in
entity Q5531654
action intersection
action find_reverse
entity Q7142506
relation P17
action find_reverse
entity Q562513
relation P17
[ANSWER]
['Q5531654', 'P17', 'Q7142506'] ['Q5531654', 'P17', 'Q562513']
ASK WHERE { resource:Q5531654 property:P17 resource:Q7142506 . resource:Q5531654 property:P17 resource:Q562513 }
No
action is_in
entity general
action intersection
action find_reverse
entity Passaic City School District
relation country
action find_reverse
entity Netzbach
relation country
['general', 'country', 'Passaic City School District'] ['general', 'country', 'Netzbach']
ASK WHERE { resource:general property:country resource:Passaic_City_School_District . resource:general property:country resource:Netzbach }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q74338 Q50582
P27
Q15617994
USER
Does Charles Warren belong to Bugry ?
(Q74338,P27,Q50582)
action is_in
entity Q50582
action find
entity Q74338
relation P27
['Q74338', 'P27', 'Q50582']
ASK WHERE { resource:Q74338 property:P27 resource:Q50582 }
Charles Warren Bugry
action is_in
entity Bugry
action find
entity Charles Warren
relation country of citizenship
['Charles Warren', 'country of citizenship', 'Bugry']
ASK WHERE { resource:Charles_Warren property:country_of_citizenship resource:Bugry }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q74338,P27,Q50582)
action is_in
entity Q50582
action find
entity Q74338
relation P27
[ANSWER]
['Q74338', 'P27', 'Q50582']
ASK WHERE { resource:Q74338 property:P27 resource:Q50582 }
No
action is_in
entity Bugry
action find
entity Charles Warren
relation country of citizenship
['Charles Warren', 'country of citizenship', 'Bugry']
ASK WHERE { resource:Charles_Warren property:country_of_citizenship resource:Bugry }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5531654 Q567290
P17
Q15617994
USER
Is general a part of Ranschbach ?
(Q5531654,P17,Q567290)
action is_in
entity Q567290
action find
entity Q5531654
relation P17
['Q5531654', 'P17', 'Q567290']
ASK WHERE { resource:Q5531654 property:P17 resource:Q567290 }
general Ranschbach
action is_in
entity Ranschbach
action find
entity general
relation country
['general', 'country', 'Ranschbach']
ASK WHERE { resource:general property:country resource:Ranschbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5531654,P17,Q567290)
action is_in
entity Q567290
action find
entity Q5531654
relation P17
[ANSWER]
['Q5531654', 'P17', 'Q567290']
ASK WHERE { resource:Q5531654 property:P17 resource:Q567290 }
No
action is_in
entity Ranschbach
action find
entity general
relation country
['general', 'country', 'Ranschbach']
ASK WHERE { resource:general property:country resource:Ranschbach }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q222595 Q4685275 Q9682
P138
Q502895
USER
Does British Army have Adrian Pisarello and Elizabeth II as its toponym ?
(Q222595,P138,Q4685275) (Q222595,P138,Q9682)
action is_in
entity Q222595
action intersection
action find_reverse
entity Q4685275
relation P138
action find_reverse
entity Q9682
relation P138
['Q222595', 'P138', 'Q4685275'] ['Q222595', 'P138', 'Q9682']
ASK WHERE { resource:Q222595 property:P138 resource:Q4685275 . resource:Q222595 property:P138 resource:Q9682 }
British Army Adrian Pisarello Elizabeth II
action is_in
entity British Army
action intersection
action find_reverse
entity Adrian Pisarello
relation named after
action find_reverse
entity Elizabeth II
relation named after
['British Army', 'named after', 'Adrian Pisarello'] ['British Army', 'named after', 'Elizabeth II']
ASK WHERE { resource:British_Army property:named_after resource:Adrian_Pisarello . resource:British_Army property:named_after resource:Elizabeth_II }
[]
common name
SYSTEM
NO and YES respectively
(Q222595,P138,Q4685275) (Q222595,P138,Q9682)
action is_in
entity Q222595
action intersection
action find_reverse
entity Q4685275
relation P138
action find_reverse
entity Q9682
relation P138
[ANSWER]
['Q222595', 'P138', 'Q4685275'] ['Q222595', 'P138', 'Q9682']
ASK WHERE { resource:Q222595 property:P138 resource:Q4685275 . resource:Q222595 property:P138 resource:Q9682 }
NO and YES respectively
action is_in
entity British Army
action intersection
action find_reverse
entity Adrian Pisarello
relation named after
action find_reverse
entity Elizabeth II
relation named after
['British Army', 'named after', 'Adrian Pisarello'] ['British Army', 'named after', 'Elizabeth II']
ASK WHERE { resource:British_Army property:named_after resource:Adrian_Pisarello . resource:British_Army property:named_after resource:Elizabeth_II }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5531654
P106
Q502895
USER
Which person has career as general ?
(c(Q502895),P106,Q5531654)
action filter_type
action find_reverse
entity Q5531654
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q5531654']
SELECT DISTINCT ?t WHERE { ?t property:P106 resource:Q5531654 . ?t rdf:type ontology:Q502895 }
general
action filter_type
action find_reverse
entity general
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'general']
SELECT DISTINCT ?t WHERE { ?t property:occupation resource:general . ?t rdf:type ontology:common_name }
[]
common name
Q6224956
SYSTEM
John Campbell, 1st Marquess of Breadalbane
Q6224956
(c(Q502895),P106,Q5531654)
action filter_type
action find_reverse
entity Q5531654
relation P106
type Q502895
[ANSWER] has career as general
[{'concept': 'Q502895'}, 'P106', 'Q5531654']
SELECT DISTINCT ?t WHERE { ?t property:P106 resource:Q5531654 . ?t rdf:type ontology:Q502895 }
John Campbell, 1st Marquess of Breadalbane
John Campbell, 1st Marquess of Breadalbane has career as general
John Campbell, 1st Marquess of Breadalbane
action filter_type
action find_reverse
entity general
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'general']
SELECT DISTINCT ?t WHERE { ?t property:occupation resource:general . ?t rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2129770
Q502895
USER
And also tell me about Johannes Hoen?
(Q2129770,P106,c(Q502895))
action filter_type
action find
entity Q2129770
relation P106
type Q502895
['Q2129770', 'P106', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q2129770 property:P106 ?s }
Johannes Hoen
action filter_type
action find
entity Johannes Hoen
relation occupation
type common name
['Johannes Hoen', 'occupation', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Johannes_Hoen property:occupation ?s }
[]
common name
Q219101
SYSTEM
Landdrost
Q219101
(Q2129770,P106,c(Q502895))
action filter_type
action find
entity Q2129770
relation P106
type Q502895
[ANSWER]
['Q2129770', 'P106', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q2129770 property:P106 ?s }
Landdrost
Landdrost
action filter_type
action find
entity Johannes Hoen
relation occupation
type common name
['Johannes Hoen', 'occupation', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Johannes_Hoen property:occupation ?s }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q895526 Q781132 Q781132
USER
Which military branches are a component of approximately 1 authority organs or military branches ?
(c(Q781132),P361,c(Q895526)|c(Q781132))
action approx
action union
action find_tuple_counts
relation P361
type Q781132
type Q895526
action find_tuple_counts
relation P361
type Q781132
type Q781132
value 1
[{'concept': 'Q781132'}, 'P361', [{'concept': 'Q895526'}, {'concept': 'Q781132'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?w WHERE { ?g rdf:type ?e . VALUES ( ?e ) { ( ontology:Q895526 ) ( ontology:Q781132 ) } } GROUP BY ?w } . FILTER ( ?f = 1 ) }
action approx
action union
action find_tuple_counts
relation part of
type military branch
type authority organ
action find_tuple_counts
relation part of
type military branch
type military branch
value 1
[{'concept': 'military branch'}, 'part of', [{'concept': 'authority organ'}, {'concept': 'military branch'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?w WHERE { ?g rdf:type ?e . VALUES ( ?e ) { ( ontology:authority_organ ) ( ontology:military_branch ) } } GROUP BY ?w } . FILTER ( ?f = 1 ) }
[]
authority organ military branch military branch
Q706042 Q963354 Q4867847
SYSTEM
Prussian Army, United States Naval Special Warfare Development Group, Basque Auxiliary Navy
Q7574723 Q2055270 Q17812275 Q17812427 Q706042 Q4867847 Q1066532 Q487238 Q3958034 Q6019843 Q2742227 Q18642947 Q2640550 Q5957893 Q963354
(c(Q781132),P361,c(Q895526)|c(Q781132))
action approx
action union
action find_tuple_counts
relation P361
type Q781132
type Q895526
action find_tuple_counts
relation P361
type Q781132
type Q781132
value 1
[ANSWERS] are a component of approximately 1 authority organs or military branches
[{'concept': 'Q781132'}, 'P361', [{'concept': 'Q895526'}, {'concept': 'Q781132'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?w WHERE { ?g rdf:type ?e . VALUES ( ?e ) { ( ontology:Q895526 ) ( ontology:Q781132 ) } } GROUP BY ?w } . FILTER ( ?f = 1 ) }
Special Service Group Navy Brazilian Army Aviation Command Brazilian Surface Fleet Brazilian Submarine Fleet Prussian Army Basque Auxiliary Navy Brazilian Marine Corps Republic of Korea Marine Corps Argentine Army Aviation Army Medical Corps Royal Saudi Navy Army Aviation Center Chilean Marine Corps Islamic Republic of Iran Army Aviation United States Naval Special Warfare Development Group
Prussian Army, United States Naval Special Warfare Development Group and Basque Auxiliary Navy are a component of approximately 1 authority organs or military branches
Prussian Army United States Naval Special Warfare Development Group Basque Auxiliary Navy
action approx
action union
action find_tuple_counts
relation part of
type military branch
type authority organ
action find_tuple_counts
relation part of
type military branch
type military branch
value 1
[{'concept': 'military branch'}, 'part of', [{'concept': 'authority organ'}, {'concept': 'military branch'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?w WHERE { ?g rdf:type ?e . VALUES ( ?e ) { ( ontology:authority_organ ) ( ontology:military_branch ) } } GROUP BY ?w } . FILTER ( ?f = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P137
Q781132 Q1076486
USER
How many sports venues can be described as service operator of exactly 1 military branch ?
(c(Q1076486),P137,c(Q781132))
action count
action equal
action find_tuple_counts
relation P137
type Q1076486
type Q781132
value 1
[{'concept': 'Q1076486'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?u ) WHERE { ?g property:P137 ?o . ?g rdf:type ontology:Q1076486 . ?o rdf:type ontology:Q781132 } GROUP BY ?g } }
action count
action equal
action find_tuple_counts
relation operator
type sports venue
type military branch
value 1
[{'concept': 'sports venue'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?u ) WHERE { ?g property:operator ?o . ?g rdf:type ontology:sports_venue . ?o rdf:type ontology:military_branch } GROUP BY ?g } }
[]
military branch sports venue
SYSTEM
1
Q4855268
(c(Q1076486),P137,c(Q781132))
action count
action equal
action find_tuple_counts
relation P137
type Q1076486
type Q781132
value 1
[ANSWER]
[{'concept': 'Q1076486'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?u ) WHERE { ?g property:P137 ?o . ?g rdf:type ontology:Q1076486 . ?o rdf:type ontology:Q781132 } GROUP BY ?g } }
Bangladesh Army Stadium
1
action count
action equal
action find_tuple_counts
relation operator
type sports venue
type military branch
value 1
[{'concept': 'sports venue'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?u ) WHERE { ?g property:operator ?o . ?g rdf:type ontology:sports_venue . ?o rdf:type ontology:military_branch } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11308798 Q2129770
P22
Q502895
USER
Which people were the father of Johannes Hoen or Cesario ?
OR((Q2129770,P22,c(Q502895)), (Q11308798,P22,c(Q502895)))
action filter_type
action union
action find
entity Q2129770
relation P22
action find
entity Q11308798
relation P22
type Q502895
{'OR': [['Q2129770', 'P22', {'concept': 'Q502895'}], ['Q11308798', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . { { resource:Q2129770 property:P22 ?p } UNION { resource:Q11308798 property:P22 ?p } } }
Cesario Johannes Hoen
action filter_type
action union
action find
entity Johannes Hoen
relation father
action find
entity Cesario
relation father
type common name
{'OR': [['Johannes Hoen', 'father', {'concept': 'common name'}], ['Cesario', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . { { resource:Johannes_Hoen property:father ?p } UNION { resource:Cesario property:father ?p } } }
[]
common name
Q1971081 Q11312941
SYSTEM
Johannes Hoen, Special Week
Q1971081 Q11312941
OR((Q2129770,P22,c(Q502895)), (Q11308798,P22,c(Q502895)))
action filter_type
action union
action find
entity Q2129770
relation P22
action find
entity Q11308798
relation P22
type Q502895
[ANSWERS] were the father of Johannes Hoen or Cesario
{'OR': [['Q2129770', 'P22', {'concept': 'Q502895'}], ['Q11308798', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . { { resource:Q2129770 property:P22 ?p } UNION { resource:Q11308798 property:P22 ?p } } }
Johannes Hoen Special Week
Johannes Hoen and Special Week were the father of Johannes Hoen or Cesario
Johannes Hoen Special Week
action filter_type
action union
action find
entity Johannes Hoen
relation father
action find
entity Cesario
relation father
type common name
{'OR': [['Johannes Hoen', 'father', {'concept': 'common name'}], ['Cesario', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . { { resource:Johannes_Hoen property:father ?p } UNION { resource:Cesario property:father ?p } } }
[]