Simple Question (Direct)
Simple Question
Q6111038
P21
Q290
USER
What is the sex of Jack Armitage ?
(Q6111038,P21,c(Q290))
action filter_type
action find
entity Q6111038
relation P21
type Q290
['Q6111038', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q6111038 property:P21 ?a . ?a rdf:type ontology:Q290 }
Jack Armitage
action filter_type
action find
entity Jack Armitage
relation gender
type sex
['Jack Armitage', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Jack_Armitage property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6111038,P21,c(Q290))
action filter_type
action find
entity Q6111038
relation P21
type Q290
The sex of Jack Armitage is the [ANSWER]
['Q6111038', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q6111038 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Jack Armitage is the male
male
action filter_type
action find
entity Jack Armitage
relation gender
type sex
['Jack Armitage', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Jack_Armitage property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6111038
P19
Q56061
USER
Which administrative territory is the place of birth of Jack Armitage ?
(Q6111038,P19,c(Q56061))
action filter_type
action find
entity Q6111038
relation P19
type Q56061
['Q6111038', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q6111038 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Jack Armitage
action filter_type
action find
entity Jack Armitage
relation place of birth
type administrative territorial entity
['Jack Armitage', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jack_Armitage property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5073144
SYSTEM
Chapeltown, Lancashire
Q5073144
(Q6111038,P19,c(Q56061))
action filter_type
action find
entity Q6111038
relation P19
type Q56061
In [ANSWER] is the place of birth of Jack Armitage
['Q6111038', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q6111038 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Chapeltown, Lancashire
In Chapeltown, Lancashire is the place of birth of Jack Armitage
Chapeltown, Lancashire
action filter_type
action find
entity Jack Armitage
relation place of birth
type administrative territorial entity
['Jack Armitage', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jack_Armitage property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5592642
Q56061
USER
And how about Graham Balcombe?
(Q5592642,P19,c(Q56061))
action filter_type
action find
entity Q5592642
relation P19
type Q56061
['Q5592642', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q5592642 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Graham Balcombe
action filter_type
action find
entity Graham Balcombe
relation place of birth
type administrative territorial entity
['Graham Balcombe', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Graham_Balcombe property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q18125
SYSTEM
Manchester
Q18125
(Q5592642,P19,c(Q56061))
action filter_type
action find
entity Q5592642
relation P19
type Q56061
[ANSWER]
['Q5592642', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q5592642 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Manchester
Manchester
action filter_type
action find
entity Graham Balcombe
relation place of birth
type administrative territorial entity
['Graham Balcombe', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Graham_Balcombe property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18125
P47
Q56061
USER
Which administrative territory is bordered by that one ?
(Q18125,P47,c(Q56061))
action filter_type
action find
entity Q18125
relation P47
type Q56061
['Q18125', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q18125 property:P47 ?l . ?l rdf:type ontology:Q56061 }
Manchester
action filter_type
action find
entity Manchester
relation shares border with
type administrative territorial entity
['Manchester', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Manchester property:shares_border_with ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q184579
SYSTEM
Bolton
Q184579
(Q18125,P47,c(Q56061))
action filter_type
action find
entity Q18125
relation P47
type Q56061
[ANSWER] is bordered by that one
['Q18125', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q18125 property:P47 ?l . ?l rdf:type ontology:Q56061 }
Bolton
Bolton is bordered by that one
Bolton
action filter_type
action find
entity Manchester
relation shares border with
type administrative territorial entity
['Manchester', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Manchester property:shares_border_with ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3713486
Q56061
USER
And also tell me about Don Bosco?
(Q3713486,P47,c(Q56061))
action filter_type
action find
entity Q3713486
relation P47
type Q56061
['Q3713486', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q3713486 property:P47 ?r . ?r rdf:type ontology:Q56061 }
Don Bosco
action filter_type
action find
entity Don Bosco
relation shares border with
type administrative territorial entity
['Don Bosco', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Don_Bosco property:shares_border_with ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3826275 Q3664757 Q3921843
SYSTEM
Lamarmora, Centro Storico Sud, Primo Maggio
Q3921843 Q3674477 Q3826275 Q3664757
(Q3713486,P47,c(Q56061))
action filter_type
action find
entity Q3713486
relation P47
type Q56061
[ANSWERS]
['Q3713486', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q3713486 property:P47 ?r . ?r rdf:type ontology:Q56061 }
Primo Maggio Chiesanuova Lamarmora Centro Storico Sud
Lamarmora Centro Storico Sud Primo Maggio
action filter_type
action find
entity Don Bosco
relation shares border with
type administrative territorial entity
['Don Bosco', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Don_Bosco property:shares_border_with ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3664757
P17
Q15617994
USER
Which administrative territory is that administrative territory present in ?
(Q3664757,P17,c(Q15617994))
action filter_type
action find
entity Q3664757
relation P17
type Q15617994
['Q3664757', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q3664757 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Centro Storico Sud
action filter_type
action find
entity Centro Storico Sud
relation country
type designation for an administrative territorial entity
['Centro Storico Sud', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Centro_Storico_Sud property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q3664757
SYSTEM
Did you mean Centro Storico Sud ?
Q3826275 Q3664757 Q3921843
(Q3826275,P17,c(Q15617994)) (Q3664757,P17,c(Q15617994)) (Q3921843,P17,c(Q15617994))
[ANSWER]
['Q3826275', 'P17', {'concept': 'Q15617994'}] ['Q3664757', 'P17', {'concept': 'Q15617994'}] ['Q3921843', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q3664757 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Lamarmora Centro Storico Sud Primo Maggio
Did you mean Centro Storico Sud ?
Centro Storico Sud
['Lamarmora', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Centro Storico Sud', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Primo Maggio', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Centro_Storico_Sud property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3664757,P17,c(Q15617994))
['Q3664757', 'P17', {'concept': 'Q15617994'}]
['Centro Storico Sud', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q3664757,P17,c(Q15617994))
action filter_type
action find
entity Q3664757
relation P17
type Q15617994
That administrative territory is of [ANSWER]
['Q3664757', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q3664757 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Italy
That administrative territory is of Italy
Italy
action filter_type
action find
entity Centro Storico Sud
relation country
type designation for an administrative territorial entity
['Centro Storico Sud', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Centro_Storico_Sud property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1717284 Q6111038
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Jack Armitage or Kim Chon-Man ?
OR((Q6111038,P27,c(Q15617994)), (Q1717284,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6111038
relation P27
action find
entity Q1717284
relation P27
type Q15617994
{'OR': [['Q6111038', 'P27', {'concept': 'Q15617994'}], ['Q1717284', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?h property:P27 ?v . VALUES ( ?h ) { ( resource:Q1717284 ) ( resource:Q6111038 ) } } . ?v rdf:type ontology:Q15617994 }
Kim Chon-Man Jack Armitage
action filter_type
action union
action find
entity Jack Armitage
relation country of citizenship
action find
entity Kim Chon-Man
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jack Armitage', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kim Chon-Man', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?h property:country_of_citizenship ?v . VALUES ( ?h ) { ( resource:Kim_Chon-Man ) ( resource:Jack_Armitage ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q423 Q145
SYSTEM
North Korea, United Kingdom
Q423 Q145
OR((Q6111038,P27,c(Q15617994)), (Q1717284,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6111038
relation P27
action find
entity Q1717284
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Jack Armitage or Kim Chon-Man
{'OR': [['Q6111038', 'P27', {'concept': 'Q15617994'}], ['Q1717284', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?h property:P27 ?v . VALUES ( ?h ) { ( resource:Q1717284 ) ( resource:Q6111038 ) } } . ?v rdf:type ontology:Q15617994 }
North Korea United Kingdom
North Korea and United Kingdom are the countries of citizenship of Jack Armitage or Kim Chon-Man
North Korea United Kingdom
action filter_type
action union
action find
entity Jack Armitage
relation country of citizenship
action find
entity Kim Chon-Man
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jack Armitage', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kim Chon-Man', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?h property:country_of_citizenship ?v . VALUES ( ?h ) { ( resource:Kim_Chon-Man ) ( resource:Jack_Armitage ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories share the border with that administrative territory ?
(Q423,P47,c(Q15617994))
['Q423', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['North Korea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:North_Korea property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q145
SYSTEM
Did you mean United Kingdom ?
(Q423,P47,c(Q15617994)) (Q145,P47,c(Q15617994))
[ANSWER]
['Q423', 'P47', {'concept': 'Q15617994'}] ['Q145', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean United Kingdom ?
United Kingdom
['North Korea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:North_Korea property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant North Korea. Could you tell me the answer for that?
(Q423,P47,c(Q15617994))
Q423
['Q423', 'P47', {'concept': 'Q15617994'}]
['North Korea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
4
Q148 Q884 Q159 Q17
(Q423,P47,c(Q15617994))
[ANSWER]
['Q423', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
People's Republic of China South Korea Russia Japan
4
['North Korea', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:North_Korea property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q423
P1001
Q35798
USER
Which executive branch has jurisdiction over North Korea ?
(c(Q35798),P1001,Q423)
action filter_type
action find_reverse
entity Q423
relation P1001
type Q35798
[{'concept': 'Q35798'}, 'P1001', 'Q423']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q423 . ?r rdf:type ontology:Q35798 }
North Korea
action filter_type
action find_reverse
entity North Korea
relation applies to jurisdiction
type executive branch
[{'concept': 'executive branch'}, 'applies to jurisdiction', 'North Korea']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:North_Korea . ?r rdf:type ontology:executive_branch }
[]
executive branch
Q1937145
SYSTEM
Cabinet of North Korea
Q1937145
(c(Q35798),P1001,Q423)
action filter_type
action find_reverse
entity Q423
relation P1001
type Q35798
Over [ANSWER] has jurisdiction over North Korea
[{'concept': 'Q35798'}, 'P1001', 'Q423']
SELECT DISTINCT ?r WHERE { ?r property:P1001 resource:Q423 . ?r rdf:type ontology:Q35798 }
Cabinet of North Korea
Over Cabinet of North Korea has jurisdiction over North Korea
Cabinet of North Korea
action filter_type
action find_reverse
entity North Korea
relation applies to jurisdiction
type executive branch
[{'concept': 'executive branch'}, 'applies to jurisdiction', 'North Korea']
SELECT DISTINCT ?r WHERE { ?r property:applies_to_jurisdiction resource:North_Korea . ?r rdf:type ontology:executive_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1937145
P17
Q15617994
USER
Which administrative territory is that executive branch situated in ?
(Q1937145,P17,c(Q15617994))
action filter_type
action find
entity Q1937145
relation P17
type Q15617994
['Q1937145', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q1937145 property:P17 ?b }
Cabinet of North Korea
action filter_type
action find
entity Cabinet of North Korea
relation country
type designation for an administrative territorial entity
['Cabinet of North Korea', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cabinet_of_North_Korea property:country ?b }
[]
designation for an administrative territorial entity
Q423
SYSTEM
North Korea
Q423
(Q1937145,P17,c(Q15617994))
action filter_type
action find
entity Q1937145
relation P17
type Q15617994
That executive branch is situated in [ANSWER]
['Q1937145', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q1937145 property:P17 ?b }
North Korea
That executive branch is situated in North Korea
North Korea
action filter_type
action find
entity Cabinet of North Korea
relation country
type designation for an administrative territorial entity
['Cabinet of North Korea', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cabinet_of_North_Korea property:country ?b }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with around 72 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 72
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?i = 72 ) . { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?i ) WHERE { ?r property:P530 ?g . ?r rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?r } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 72
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?i = 72 ) . { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?i ) WHERE { ?r property:diplomatic_relation ?g . ?r rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } }
[]
political territorial entity designation for an administrative territorial entity
Q408 Q16
SYSTEM
Australia, Canada
Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 72
[ANSWERS] have diplomatic relations with around 72 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?i = 72 ) . { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?i ) WHERE { ?r property:P530 ?g . ?r rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?r } }
Australia Canada
Australia and Canada have diplomatic relations with around 72 administrative territories
Australia Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 72
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?i = 72 ) . { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?i ) WHERE { ?r property:diplomatic_relation ?g . ?r rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } }
[]