Simple Question (Direct)
Simple Question
Q7336657
P21
Q290
USER
Which sex does Ritchie Branagan possess ?
(Q7336657,P21,c(Q290))
action filter_type
action find
entity Q7336657
relation P21
type Q290
['Q7336657', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q7336657 property:P21 ?z . ?z rdf:type ontology:Q290 }
Ritchie Branagan
action filter_type
action find
entity Ritchie Branagan
relation gender
type sex
['Ritchie Branagan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Ritchie_Branagan property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7336657,P21,c(Q290))
action filter_type
action find
entity Q7336657
relation P21
type Q290
Ritchie Branagan possesses un [ANSWER]
['Q7336657', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q7336657 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Ritchie Branagan possesses un male
male
action filter_type
action find
entity Ritchie Branagan
relation gender
type sex
['Ritchie Branagan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Ritchie_Branagan property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7336657
P19
Q56061
USER
Which administrative territory was Ritchie Branagan born in ?
(Q7336657,P19,c(Q56061))
action filter_type
action find
entity Q7336657
relation P19
type Q56061
['Q7336657', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q7336657 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Ritchie Branagan
action filter_type
action find
entity Ritchie Branagan
relation place of birth
type administrative territorial entity
['Ritchie Branagan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Ritchie_Branagan property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q676689
SYSTEM
Gravesend
Q676689
(Q7336657,P19,c(Q56061))
action filter_type
action find
entity Q7336657
relation P19
type Q56061
Ritchie Branagan was born in [ANSWER]
['Q7336657', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q7336657 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Gravesend
Ritchie Branagan was born in Gravesend
Gravesend
action filter_type
action find
entity Ritchie Branagan
relation place of birth
type administrative territorial entity
['Ritchie Branagan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Ritchie_Branagan property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P17
Q7275 Q15617994
USER
How many states or administrative territories are that administrative territory present in ?
(Q676689,P17,c(Q7275)) (Q676689,P17,c(Q15617994)) (Q676689,P17,c(Q7275)) (Q676689,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q676689
relation P17
type Q7275
action filter_type
action find
entity Q676689
relation P17
type Q15617994
['Q676689', 'P17', {'concept': 'Q7275'}] ['Q676689', 'P17', {'concept': 'Q15617994'}] ['Q676689', 'P17', {'concept': 'Q7275'}] ['Q676689', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } }
action count
action union
action filter_type
action find
entity Gravesend
relation country
type state
action filter_type
action find
entity Gravesend
relation country
type designation for an administrative territorial entity
['Gravesend', 'country', {'concept': 'state'}] ['Gravesend', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Gravesend', 'country', {'concept': 'state'}] ['Gravesend', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } }
[]
state designation for an administrative territorial entity
SYSTEM
4
Q161885 Q174193 Q179876 Q145
(Q676689,P17,c(Q7275)) (Q676689,P17,c(Q15617994)) (Q676689,P17,c(Q7275)) (Q676689,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q676689
relation P17
type Q7275
action filter_type
action find
entity Q676689
relation P17
type Q15617994
[ANSWER]
['Q676689', 'P17', {'concept': 'Q7275'}] ['Q676689', 'P17', {'concept': 'Q15617994'}] ['Q676689', 'P17', {'concept': 'Q7275'}] ['Q676689', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } }
Kingdom of Great Britain United Kingdom of Great Britain and Ireland Kingdom of England United Kingdom
4
action count
action union
action filter_type
action find
entity Gravesend
relation country
type state
action filter_type
action find
entity Gravesend
relation country
type designation for an administrative territorial entity
['Gravesend', 'country', {'concept': 'state'}] ['Gravesend', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Gravesend', 'country', {'concept': 'state'}] ['Gravesend', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q350713 Q7336657
P106
Q12737077
USER
Which occupations have Ritchie Branagan or Hermann Gollancz as his/her as a career ?
OR((Q7336657,P106,c(Q12737077)), (Q350713,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7336657
relation P106
action find
entity Q350713
relation P106
type Q12737077
{'OR': [['Q7336657', 'P106', {'concept': 'Q12737077'}], ['Q350713', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q7336657 property:P106 ?r } UNION { resource:Q350713 property:P106 ?r } } . ?r rdf:type ontology:Q12737077 }
Hermann Gollancz Ritchie Branagan
action filter_type
action union
action find
entity Ritchie Branagan
relation occupation
action find
entity Hermann Gollancz
relation occupation
type occupation
{'OR': [['Ritchie Branagan', 'occupation', {'concept': 'occupation'}], ['Hermann Gollancz', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Ritchie_Branagan property:occupation ?r } UNION { resource:Hermann_Gollancz property:occupation ?r } } . ?r rdf:type ontology:occupation }
[]
occupation
Q133485 Q1622272 Q937857
SYSTEM
rabbi, university teacher, association football player
Q133485 Q1622272 Q937857
OR((Q7336657,P106,c(Q12737077)), (Q350713,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7336657
relation P106
action find
entity Q350713
relation P106
type Q12737077
[ANSWERS] have Ritchie Branagan or Hermann Gollancz as his/her as a career
{'OR': [['Q7336657', 'P106', {'concept': 'Q12737077'}], ['Q350713', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q7336657 property:P106 ?r } UNION { resource:Q350713 property:P106 ?r } } . ?r rdf:type ontology:Q12737077 }
rabbi university teacher association football player
Rabbi, university teacher and association football player have Ritchie Branagan or Hermann Gollancz as his/her as a career
rabbi university teacher association football player
action filter_type
action union
action find
entity Ritchie Branagan
relation occupation
action find
entity Hermann Gollancz
relation occupation
type occupation
{'OR': [['Ritchie Branagan', 'occupation', {'concept': 'occupation'}], ['Hermann Gollancz', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Ritchie_Branagan property:occupation ?r } UNION { resource:Hermann_Gollancz property:occupation ?r } } . ?r rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q350713
P20
Q56061
USER
Where did the expiration of Hermann Gollancz occur ?
(Q133485,P20,c(Q56061)) (Q1622272,P20,c(Q56061)) (Q937857,P20,c(Q56061))
action filter_type
action find
entity Q350713
relation P20
type Q56061
['Q133485', 'P20', {'concept': 'Q56061'}] ['Q1622272', 'P20', {'concept': 'Q56061'}] ['Q937857', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q350713 property:P20 ?l }
Hermann Gollancz
action filter_type
action find
entity Hermann Gollancz
relation place of death
type administrative territorial entity
['rabbi', 'place of death', {'concept': 'administrative territorial entity'}] ['university teacher', 'place of death', {'concept': 'administrative territorial entity'}] ['association football player', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Hermann_Gollancz property:place_of_death ?l }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q133485,P20,c(Q56061)) (Q1622272,P20,c(Q56061)) (Q937857,P20,c(Q56061))
action filter_type
action find
entity Q350713
relation P20
type Q56061
The expiration of Hermann Gollancz occurred in [ANSWER]
['Q133485', 'P20', {'concept': 'Q56061'}] ['Q1622272', 'P20', {'concept': 'Q56061'}] ['Q937857', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q350713 property:P20 ?l }
London
The expiration of Hermann Gollancz occurred in London
London
action filter_type
action find
entity Hermann Gollancz
relation place of death
type administrative territorial entity
['rabbi', 'place of death', {'concept': 'administrative territorial entity'}] ['university teacher', 'place of death', {'concept': 'administrative territorial entity'}] ['association football player', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Hermann_Gollancz property:place_of_death ?l }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q84 Q649 Q2166780
P190
Q56061
USER
Is that administrative territory a sister city of Moscow and Soela ?
(Q84,P190,Q649) (Q84,P190,Q2166780)
action is_in
entity Q84
action intersection
action find_reverse
entity Q649
relation P190
action find_reverse
entity Q2166780
relation P190
['Q84', 'P190', 'Q649'] ['Q84', 'P190', 'Q2166780']
ASK WHERE { resource:Q84 property:P190 resource:Q2166780 . resource:Q84 property:P190 resource:Q649 }
London Moscow Soela
action is_in
entity London
action intersection
action find_reverse
entity Moscow
relation sister city
action find_reverse
entity Soela
relation sister city
['London', 'sister city', 'Moscow'] ['London', 'sister city', 'Soela']
ASK WHERE { resource:London property:sister_city resource:Soela . resource:London property:sister_city resource:Moscow }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q84,P190,Q649) (Q84,P190,Q2166780)
action is_in
entity Q84
action intersection
action find_reverse
entity Q649
relation P190
action find_reverse
entity Q2166780
relation P190
[ANSWER]
['Q84', 'P190', 'Q649'] ['Q84', 'P190', 'Q2166780']
ASK WHERE { resource:Q84 property:P190 resource:Q2166780 . resource:Q84 property:P190 resource:Q649 }
YES and NO respectively
action is_in
entity London
action intersection
action find_reverse
entity Moscow
relation sister city
action find_reverse
entity Soela
relation sister city
['London', 'sister city', 'Moscow'] ['London', 'sister city', 'Soela']
ASK WHERE { resource:London property:sister_city resource:Soela . resource:London property:sister_city resource:Moscow }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7336657
P641
Q349
USER
What did Ritchie Branagan participate in ?
(Q7336657,P641,c(Q349))
action filter_type
action find
entity Q7336657
relation P641
type Q349
['Q7336657', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { resource:Q7336657 property:P641 ?t . ?t rdf:type ontology:Q349 }
Ritchie Branagan
action filter_type
action find
entity Ritchie Branagan
relation sport
type sport
['Ritchie Branagan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { resource:Ritchie_Branagan property:sport ?t . ?t rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7336657,P641,c(Q349))
action filter_type
action find
entity Q7336657
relation P641
type Q349
Ritchie Branagan participated in [ANSWER]
['Q7336657', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { resource:Q7336657 property:P641 ?t . ?t rdf:type ontology:Q349 }
association football
Ritchie Branagan participated in association football
association football
action filter_type
action find
entity Ritchie Branagan
relation sport
type sport
['Ritchie Branagan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { resource:Ritchie_Branagan property:sport ?t . ?t rdf:type ontology:sport }
[]