Simple Question (Direct)
Simple Question
Q2909032
P937
Q56061
USER
Where did Emri Ron work ?
(Q2909032,P937,c(Q56061))
action filter_type
action find
entity Q2909032
relation P937
type Q56061
['Q2909032', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q2909032 property:P937 ?q . ?q rdf:type ontology:Q56061 }
Emri Ron
action filter_type
action find
entity Emri Ron
relation work location
type administrative territorial entity
['Emri Ron', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Emri_Ron property:work_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1218
SYSTEM
Jerusalem
Q1218
(Q2909032,P937,c(Q56061))
action filter_type
action find
entity Q2909032
relation P937
type Q56061
Emri Ron worked in [ANSWER]
['Q2909032', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q2909032 property:P937 ?q . ?q rdf:type ontology:Q56061 }
Jerusalem
Emri Ron worked in Jerusalem
Jerusalem
action filter_type
action find
entity Emri Ron
relation work location
type administrative territorial entity
['Emri Ron', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Emri_Ron property:work_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2909032
P21
Q290
USER
Which sex does that person belong to ?
(Q1218,P21,c(Q290))
action filter_type
action find
entity Q2909032
relation P21
type Q290
['Q1218', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q2909032 property:P21 ?p . ?p rdf:type ontology:Q290 }
Emri Ron
action filter_type
action find
entity Emri Ron
relation gender
type sex
['Jerusalem', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Emri_Ron property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1218,P21,c(Q290))
action filter_type
action find
entity Q2909032
relation P21
type Q290
That person belongs to [ANSWER]
['Q1218', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q2909032 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Emri Ron
relation gender
type sex
['Jerusalem', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Emri_Ron property:gender ?p . ?p rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q11572658
P21
Q502895
USER
Does Toyoo Tamamura have the gender as that sex ?
(Q11572658,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q11572658
relation P21
['Q11572658', 'P21', 'Q6581097']
ASK WHERE { resource:Q11572658 property:P21 resource:Q6581097 }
male Toyoo Tamamura
action is_in
entity male
action find
entity Toyoo Tamamura
relation gender
['Toyoo Tamamura', 'gender', 'male']
ASK WHERE { resource:Toyoo_Tamamura property:gender resource:male }
[]
common name
SYSTEM
YES
(Q11572658,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q11572658
relation P21
[ANSWER]
['Q11572658', 'P21', 'Q6581097']
ASK WHERE { resource:Q11572658 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Toyoo Tamamura
relation gender
['Toyoo Tamamura', 'gender', 'male']
ASK WHERE { resource:Toyoo_Tamamura property:gender resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1218
P1376
Q15617994 Q7275
USER
How many administrative territories or states have Jerusalem have their first city ?
(Q1218,P1376,c(Q15617994)) (Q1218,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q1218
relation P1376
type Q15617994
action filter_type
action find
entity Q1218
relation P1376
type Q7275
['Q1218', 'P1376', {'concept': 'Q15617994'}] ['Q1218', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } }
Jerusalem
action count
action union
action filter_type
action find
entity Jerusalem
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Jerusalem
relation capital of
type state
['Jerusalem', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Jerusalem', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } }
[]
designation for an administrative territorial entity state
SYSTEM
3
Q48685 Q55502 Q801
(Q1218,P1376,c(Q15617994)) (Q1218,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q1218
relation P1376
type Q15617994
action filter_type
action find
entity Q1218
relation P1376
type Q7275
[ANSWER]
['Q1218', 'P1376', {'concept': 'Q15617994'}] ['Q1218', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } }
Judah Kingdom of Jerusalem Israel
3
action count
action union
action filter_type
action find
entity Jerusalem
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Jerusalem
relation capital of
type state
['Jerusalem', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Jerusalem', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2909032
P39
Q12737077
USER
What was the position for which Emri Ron was appointed ?
(Q2909032,P39,c(Q12737077))
action filter_type
action find
entity Q2909032
relation P39
type Q12737077
['Q2909032', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q2909032 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Emri Ron
action filter_type
action find
entity Emri Ron
relation position held
type occupation
['Emri Ron', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Emri_Ron property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q4047513
SYSTEM
Knesset member
Q4047513
(Q2909032,P39,c(Q12737077))
action filter_type
action find
entity Q2909032
relation P39
type Q12737077
[ANSWER]
['Q2909032', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q2909032 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Knesset member
Knesset member
Knesset member
action filter_type
action find
entity Emri Ron
relation position held
type occupation
['Emri Ron', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Emri_Ron property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17308981
Q12737077
USER
And how about Arthur Duff?
(Q17308981,P39,c(Q12737077))
action filter_type
action find
entity Q17308981
relation P39
type Q12737077
['Q17308981', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q17308981 property:P39 ?s }
Arthur Duff
action filter_type
action find
entity Arthur Duff
relation position held
type occupation
['Arthur Duff', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Arthur_Duff property:position_held ?s }
[]
occupation
Q18015642
SYSTEM
Member of Parliament in the Parliament of Great Britain
Q18015642
(Q17308981,P39,c(Q12737077))
action filter_type
action find
entity Q17308981
relation P39
type Q12737077
[ANSWER]
['Q17308981', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q17308981 property:P39 ?s }
Member of Parliament in the Parliament of Great Britain
Member of Parliament in the Parliament of Great Britain
action filter_type
action find
entity Arthur Duff
relation position held
type occupation
['Arthur Duff', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Arthur_Duff property:position_held ?s }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7166689 Q2909032
P27
Q15617994
USER
Which administrative territories are Emri Ron or Per G. Stavnum an inhabitant of ?
OR((Q2909032,P27,c(Q15617994)), (Q7166689,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2909032
relation P27
action find
entity Q7166689
relation P27
type Q15617994
{'OR': [['Q2909032', 'P27', {'concept': 'Q15617994'}], ['Q7166689', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . { { resource:Q2909032 property:P27 ?y } UNION { resource:Q7166689 property:P27 ?y } } }
Per G. Stavnum Emri Ron
action filter_type
action union
action find
entity Emri Ron
relation country of citizenship
action find
entity Per G. Stavnum
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Emri Ron', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Per G. Stavnum', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Emri_Ron property:country_of_citizenship ?y } UNION { resource:Per_G._Stavnum property:country_of_citizenship ?y } } }
[]
designation for an administrative territorial entity
Q20 Q801
SYSTEM
Norway, Israel
Q20 Q801
OR((Q2909032,P27,c(Q15617994)), (Q7166689,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2909032
relation P27
action find
entity Q7166689
relation P27
type Q15617994
[ANSWERS] are Emri Ron or Per G. Stavnum an inhabitant of
{'OR': [['Q2909032', 'P27', {'concept': 'Q15617994'}], ['Q7166689', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . { { resource:Q2909032 property:P27 ?y } UNION { resource:Q7166689 property:P27 ?y } } }
Norway Israel
Norway and Israel are Emri Ron or Per G. Stavnum an inhabitant of
Norway Israel
action filter_type
action union
action find
entity Emri Ron
relation country of citizenship
action find
entity Per G. Stavnum
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Emri Ron', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Per G. Stavnum', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Emri_Ron property:country_of_citizenship ?y } UNION { resource:Per_G._Stavnum property:country_of_citizenship ?y } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q801
P30
Q2221906
USER
Where is that administrative territory situated ?
(Q801,P30,c(Q2221906))
action filter_type
action find
entity Q801
relation P30
type Q2221906
['Q801', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q801 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Israel
action filter_type
action find
entity Israel
relation continent
type geographic location
['Israel', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Israel property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
geographic location
Clarification for simple ques.
Q801
SYSTEM
Did you mean Israel ?
Q20 Q801
(Q20,P30,c(Q2221906)) (Q801,P30,c(Q2221906))
[ANSWER]
['Q20', 'P30', {'concept': 'Q2221906'}] ['Q801', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q801 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Norway Israel
Did you mean Israel ?
Israel
['Norway', 'continent', {'concept': 'geographic location'}] ['Israel', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Israel property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
USER
Yes
(Q801,P30,c(Q2221906))
['Q801', 'P30', {'concept': 'Q2221906'}]
['Israel', 'continent', {'concept': 'geographic location'}]
[]
Q48
SYSTEM
Asia
Q48
(Q801,P30,c(Q2221906))
action filter_type
action find
entity Q801
relation P30
type Q2221906
That administrative territory is situated in [ANSWER]
['Q801', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q801 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Asia
That administrative territory is situated in Asia
Asia
action filter_type
action find
entity Israel
relation continent
type geographic location
['Israel', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Israel property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q48 Q6989925 Q19873023
P361
Q2221906
USER
Is Asia a portion of Nela Park and Dunaverty, Albion ?
(Q48,P361,Q6989925) (Q48,P361,Q19873023)
action is_in
entity Q48
action intersection
action find_reverse
entity Q6989925
relation P361
action find_reverse
entity Q19873023
relation P361
['Q48', 'P361', 'Q6989925'] ['Q48', 'P361', 'Q19873023']
ASK WHERE { resource:Q48 property:P361 resource:Q19873023 . resource:Q48 property:P361 resource:Q6989925 }
Asia Nela Park Dunaverty, Albion
action is_in
entity Asia
action intersection
action find_reverse
entity Nela Park
relation part of
action find_reverse
entity Dunaverty, Albion
relation part of
['Asia', 'part of', 'Nela Park'] ['Asia', 'part of', 'Dunaverty, Albion']
ASK WHERE { resource:Asia property:part_of resource:Dunaverty,_Albion . resource:Asia property:part_of resource:Nela_Park }
[]
geographic location
SYSTEM
NO
(Q48,P361,Q6989925) (Q48,P361,Q19873023)
action is_in
entity Q48
action intersection
action find_reverse
entity Q6989925
relation P361
action find_reverse
entity Q19873023
relation P361
[ANSWER]
['Q48', 'P361', 'Q6989925'] ['Q48', 'P361', 'Q19873023']
ASK WHERE { resource:Q48 property:P361 resource:Q19873023 . resource:Q48 property:P361 resource:Q6989925 }
No
action is_in
entity Asia
action intersection
action find_reverse
entity Nela Park
relation part of
action find_reverse
entity Dunaverty, Albion
relation part of
['Asia', 'part of', 'Nela Park'] ['Asia', 'part of', 'Dunaverty, Albion']
ASK WHERE { resource:Asia property:part_of resource:Dunaverty,_Albion . resource:Asia property:part_of resource:Nela_Park }
[]