Simple Question (Direct)
Simple Question
Q5152897
P495
Q15617994
USER
Which administrative territory is the country of origin of Commitment ?
(Q5152897,P495,c(Q15617994))
action filter_type
action find
entity Q5152897
relation P495
type Q15617994
['Q5152897', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q5152897 property:P495 ?n }
Commitment
action filter_type
action find
entity Commitment
relation country of origin
type designation for an administrative territorial entity
['Commitment', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Commitment property:country_of_origin ?n }
[]
designation for an administrative territorial entity
Q884
SYSTEM
South Korea
Q884
(Q5152897,P495,c(Q15617994))
action filter_type
action find
entity Q5152897
relation P495
type Q15617994
[ANSWER] is the country of origin of Commitment
['Q5152897', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q5152897 property:P495 ?n }
South Korea
South Korea is the country of origin of Commitment
South Korea
action filter_type
action find
entity Commitment
relation country of origin
type designation for an administrative territorial entity
['Commitment', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Commitment property:country_of_origin ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5152897
P161
Q502895
USER
Who starred in that work of art ?
(Q884,P161,c(Q502895))
action filter_type
action find
entity Q5152897
relation P161
type Q502895
['Q884', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q5152897 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Commitment
action filter_type
action find
entity Commitment
relation cast member
type common name
['South Korea', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Commitment property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
common name
Q495571 Q626615 Q486575
SYSTEM
T.O.P, Park Seong-ung, Jo Seong-ha
Q626615 Q495571 Q4403408 Q486575 Q12624268
(Q884,P161,c(Q502895))
action filter_type
action find
entity Q5152897
relation P161
type Q502895
[ANSWERS] starred in that work of art
['Q884', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q5152897 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Park Seong-ung T.O.P Yoon Je-moon Jo Seong-ha Han Ye-ri
T.O.P, Park Seong-ung and Jo Seong-ha starred in that work of art
T.O.P Park Seong-ung Jo Seong-ha
action filter_type
action find
entity Commitment
relation cast member
type common name
['South Korea', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Commitment property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q107663 Q884
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with South Korea and are Alexander von Dönhoff an inhabitant of ?
AND((Q884,P530,c(Q1048835)), (Q107663,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q884
relation P530
action find
entity Q107663
relation P27
type Q1048835
{'AND': [['Q884', 'P530', {'concept': 'Q1048835'}], ['Q107663', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1048835 . resource:Q884 property:P530 ?y . resource:Q107663 property:P27 ?y }
Alexander von Dönhoff South Korea
action filter_type
action intersection
action find
entity South Korea
relation diplomatic relation
action find
entity Alexander von Dönhoff
relation country of citizenship
type political territorial entity
{'AND': [['South Korea', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Alexander von Dönhoff', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_territorial_entity . resource:South_Korea property:diplomatic_relation ?y . resource:Alexander_von_Dönhoff property:country_of_citizenship ?y }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q884,P530,c(Q1048835)), (Q107663,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q884
relation P530
action find
entity Q107663
relation P27
type Q1048835
[ANSWER] have diplomatic relationships with South Korea and are Alexander von Dönhoff an inhabitant of
{'AND': [['Q884', 'P530', {'concept': 'Q1048835'}], ['Q107663', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1048835 . resource:Q884 property:P530 ?y . resource:Q107663 property:P27 ?y }
Germany
Germany have diplomatic relationships with South Korea and are Alexander von Dönhoff an inhabitant of
Germany
action filter_type
action intersection
action find
entity South Korea
relation diplomatic relation
action find
entity Alexander von Dönhoff
relation country of citizenship
type political territorial entity
{'AND': [['South Korea', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Alexander von Dönhoff', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_territorial_entity . resource:South_Korea property:diplomatic_relation ?y . resource:Alexander_von_Dönhoff property:country_of_citizenship ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q4369410
P530
Q1048835
USER
Does Pokrovske have diplomatic relationships with that one ?
(Q183,P530,Q4369410)
action is_in
entity Q4369410
action find
entity Q183
relation P530
['Q183', 'P530', 'Q4369410']
ASK WHERE { resource:Q183 property:P530 resource:Q4369410 }
Germany Pokrovske
action is_in
entity Pokrovske
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Pokrovske']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Pokrovske }
[]
political territorial entity
SYSTEM
NO
(Q183,P530,Q4369410)
action is_in
entity Q4369410
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q4369410']
ASK WHERE { resource:Q183 property:P530 resource:Q4369410 }
No
action is_in
entity Pokrovske
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Pokrovske']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Pokrovske }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P463
Q56061 Q180516
USER
How many administrative territories and rooms had Germany as their member ?
(Q183,P463,c(Q56061)) (Q183,P463,c(Q180516))
action count
action union
action filter_type
action find
entity Q183
relation P463
type Q56061
action filter_type
action find
entity Q183
relation P463
type Q180516
['Q183', 'P463', {'concept': 'Q56061'}] ['Q183', 'P463', {'concept': 'Q180516'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { resource:Q183 property:P463 ?v . ?v rdf:type ontology:Q180516 } UNION { ?v rdf:type ontology:Q56061 . resource:Q183 property:P463 ?v } }
Germany
action count
action union
action filter_type
action find
entity Germany
relation member of
type administrative territorial entity
action filter_type
action find
entity Germany
relation member of
type room
['Germany', 'member of', {'concept': 'administrative territorial entity'}] ['Germany', 'member of', {'concept': 'room'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { resource:Germany property:member_of ?v . ?v rdf:type ontology:room } UNION { ?v rdf:type ontology:administrative_territorial_entity . resource:Germany property:member_of ?v } }
[]
administrative territorial entity room
SYSTEM
1 administrative territories and 1 rooms
Q141720 Q458
(Q183,P463,c(Q56061)) (Q183,P463,c(Q180516))
action count
action union
action filter_type
action find
entity Q183
relation P463
type Q56061
action filter_type
action find
entity Q183
relation P463
type Q180516
[ANSWER]
['Q183', 'P463', {'concept': 'Q56061'}] ['Q183', 'P463', {'concept': 'Q180516'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { resource:Q183 property:P463 ?v . ?v rdf:type ontology:Q180516 } UNION { ?v rdf:type ontology:Q56061 . resource:Q183 property:P463 ?v } }
European Air Transport Command European Union
1 administrative territories and 1 rooms
action count
action union
action filter_type
action find
entity Germany
relation member of
type administrative territorial entity
action filter_type
action find
entity Germany
relation member of
type room
['Germany', 'member of', {'concept': 'administrative territorial entity'}] ['Germany', 'member of', {'concept': 'room'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { resource:Germany property:member_of ?v . ?v rdf:type ontology:room } UNION { ?v rdf:type ontology:administrative_territorial_entity . resource:Germany property:member_of ?v } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q626615
P26
Q502895
USER
Which person is the life partner of Park Seong-ung ?
(Q626615,P26,c(Q502895))
action filter_type
action find
entity Q626615
relation P26
type Q502895
['Q626615', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q626615 property:P26 ?s . ?s rdf:type ontology:Q502895 }
Park Seong-ung
action filter_type
action find
entity Park Seong-ung
relation spouse
type common name
['Park Seong-ung', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Park_Seong-ung property:spouse ?s . ?s rdf:type ontology:common_name }
[]
common name
Q7218065
SYSTEM
Shin Eun-jung
Q7218065
(Q626615,P26,c(Q502895))
action filter_type
action find
entity Q626615
relation P26
type Q502895
[ANSWER] is the life partner of Park Seong-ung
['Q626615', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q626615 property:P26 ?s . ?s rdf:type ontology:Q502895 }
Shin Eun-jung
Shin Eun-jung is the life partner of Park Seong-ung
Shin Eun-jung
action filter_type
action find
entity Park Seong-ung
relation spouse
type common name
['Park Seong-ung', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Park_Seong-ung property:spouse ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7218065
P106
Q28640
USER
Which profession has that person as his/her 's career ?
(Q7218065,P106,c(Q28640))
action filter_type
action find
entity Q7218065
relation P106
type Q28640
['Q7218065', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?b WHERE { resource:Q7218065 property:P106 ?b . ?b rdf:type ontology:Q28640 }
Shin Eun-jung
action filter_type
action find
entity Shin Eun-jung
relation occupation
type profession
['Shin Eun-jung', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?b WHERE { resource:Shin_Eun-jung property:occupation ?b . ?b rdf:type ontology:profession }
[]
profession
Q10800557
SYSTEM
film actor
Q10800557
(Q7218065,P106,c(Q28640))
action filter_type
action find
entity Q7218065
relation P106
type Q28640
The [ANSWER] has that person as his/her 's career
['Q7218065', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?b WHERE { resource:Q7218065 property:P106 ?b . ?b rdf:type ontology:Q28640 }
film actor
The film actor has that person as his/her 's career
film actor
action filter_type
action find
entity Shin Eun-jung
relation occupation
type profession
['Shin Eun-jung', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?b WHERE { resource:Shin_Eun-jung property:occupation ?b . ?b rdf:type ontology:profession }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2067943
Q28640
USER
And how about Peleg Sprague?
(Q2067943,P106,c(Q28640))
action filter_type
action find
entity Q2067943
relation P106
type Q28640
['Q2067943', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q28640 . resource:Q2067943 property:P106 ?s }
Peleg Sprague
action filter_type
action find
entity Peleg Sprague
relation occupation
type profession
['Peleg Sprague', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:profession . resource:Peleg_Sprague property:occupation ?s }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q2067943,P106,c(Q28640))
action filter_type
action find
entity Q2067943
relation P106
type Q28640
[ANSWER]
['Q2067943', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q28640 . resource:Q2067943 property:P106 ?s }
lawyer
lawyer
action filter_type
action find
entity Peleg Sprague
relation occupation
type profession
['Peleg Sprague', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:profession . resource:Peleg_Sprague property:occupation ?s }
[]