Simple Question (Direct)
Simple Question
Q3436880
P21
Q290
USER
Which sex does Roberto Díaz possess ?
(Q3436880,P21,c(Q290))
action filter_type
action find
entity Q3436880
relation P21
type Q290
['Q3436880', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . resource:Q3436880 property:P21 ?s }
Roberto Díaz
action filter_type
action find
entity Roberto Díaz
relation gender
type sex
['Roberto Díaz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . resource:Roberto_Díaz property:gender ?s }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3436880,P21,c(Q290))
action filter_type
action find
entity Q3436880
relation P21
type Q290
Roberto Díaz possesses un [ANSWER]
['Q3436880', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . resource:Q3436880 property:P21 ?s }
male
Roberto Díaz possesses un male
male
action filter_type
action find
entity Roberto Díaz
relation gender
type sex
['Roberto Díaz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . resource:Roberto_Díaz property:gender ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3436880
P136
Q151885
USER
Which concept can be considered as genre of Roberto Díaz ?
(Q3436880,P136,c(Q151885))
action filter_type
action find
entity Q3436880
relation P136
type Q151885
['Q3436880', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?m WHERE { resource:Q3436880 property:P136 ?m . ?m rdf:type ontology:Q151885 }
Roberto Díaz
action filter_type
action find
entity Roberto Díaz
relation genre
type concept
['Roberto Díaz', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?m WHERE { resource:Roberto_Díaz property:genre ?m . ?m rdf:type ontology:concept }
[]
concept
Q9730
SYSTEM
classical music
Q9730
(Q3436880,P136,c(Q151885))
action filter_type
action find
entity Q3436880
relation P136
type Q151885
De [ANSWER] can be considered as genre of Roberto Díaz
['Q3436880', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?m WHERE { resource:Q3436880 property:P136 ?m . ?m rdf:type ontology:Q151885 }
classical music
De classical music can be considered as genre of Roberto Díaz
classical music
action filter_type
action find
entity Roberto Díaz
relation genre
type concept
['Roberto Díaz', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?m WHERE { resource:Roberto_Díaz property:genre ?m . ?m rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3436880
P1303
Q34379
USER
Which musical instrument can that person perform with ?
(Q9730,P1303,c(Q34379))
action filter_type
action find
entity Q3436880
relation P1303
type Q34379
['Q9730', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { resource:Q3436880 property:P1303 ?z . ?z rdf:type ontology:Q34379 }
Roberto Díaz
action filter_type
action find
entity Roberto Díaz
relation instrument
type musical instrument
['classical music', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { resource:Roberto_Díaz property:instrument ?z . ?z rdf:type ontology:musical_instrument }
[]
musical instrument
Q80284
SYSTEM
viola
Q80284
(Q9730,P1303,c(Q34379))
action filter_type
action find
entity Q3436880
relation P1303
type Q34379
That person can perform the [ANSWER]
['Q9730', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { resource:Q3436880 property:P1303 ?z . ?z rdf:type ontology:Q34379 }
viola
That person can perform the viola
viola
action filter_type
action find
entity Roberto Díaz
relation instrument
type musical instrument
['classical music', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { resource:Roberto_Díaz property:instrument ?z . ?z rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3436880
P264
Q268592
USER
Which economic branch is the record brand of Roberto Díaz ?
(Q3436880,P264,c(Q268592))
action filter_type
action find
entity Q3436880
relation P264
type Q268592
['Q3436880', 'P264', {'concept': 'Q268592'}]
SELECT DISTINCT ?x WHERE { resource:Q3436880 property:P264 ?x . ?x rdf:type ontology:Q268592 }
Roberto Díaz
action filter_type
action find
entity Roberto Díaz
relation record label
type economic branch
['Roberto Díaz', 'record label', {'concept': 'economic branch'}]
SELECT DISTINCT ?x WHERE { resource:Roberto_Díaz property:record_label ?x . ?x rdf:type ontology:economic_branch }
[]
economic branch
Q1579196
SYSTEM
Naxos Records
Q1579196
(Q3436880,P264,c(Q268592))
action filter_type
action find
entity Q3436880
relation P264
type Q268592
[ANSWER] is the record brand of Roberto Díaz
['Q3436880', 'P264', {'concept': 'Q268592'}]
SELECT DISTINCT ?x WHERE { resource:Q3436880 property:P264 ?x . ?x rdf:type ontology:Q268592 }
Naxos Records
Naxos Records is the record brand of Roberto Díaz
Naxos Records
action filter_type
action find
entity Roberto Díaz
relation record label
type economic branch
['Roberto Díaz', 'record label', {'concept': 'economic branch'}]
SELECT DISTINCT ?x WHERE { resource:Roberto_Díaz property:record_label ?x . ?x rdf:type ontology:economic_branch }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6730349
Q268592
USER
And what about Maggini Quartet?
(Q6730349,P264,c(Q268592))
action filter_type
action find
entity Q6730349
relation P264
type Q268592
['Q6730349', 'P264', {'concept': 'Q268592'}]
SELECT DISTINCT ?i WHERE { resource:Q6730349 property:P264 ?i . ?i rdf:type ontology:Q268592 }
Maggini Quartet
action filter_type
action find
entity Maggini Quartet
relation record label
type economic branch
['Maggini Quartet', 'record label', {'concept': 'economic branch'}]
SELECT DISTINCT ?i WHERE { resource:Maggini_Quartet property:record_label ?i . ?i rdf:type ontology:economic_branch }
[]
economic branch
Q1579196
SYSTEM
Naxos Records
Q1579196
(Q6730349,P264,c(Q268592))
action filter_type
action find
entity Q6730349
relation P264
type Q268592
[ANSWER]
['Q6730349', 'P264', {'concept': 'Q268592'}]
SELECT DISTINCT ?i WHERE { resource:Q6730349 property:P264 ?i . ?i rdf:type ontology:Q268592 }
Naxos Records
Naxos Records
action filter_type
action find
entity Maggini Quartet
relation record label
type economic branch
['Maggini Quartet', 'record label', {'concept': 'economic branch'}]
SELECT DISTINCT ?i WHERE { resource:Maggini_Quartet property:record_label ?i . ?i rdf:type ontology:economic_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1579196
P112
Q502895
USER
Which person founded that economic branch ?
(Q1579196,P112,c(Q502895))
action filter_type
action find
entity Q1579196
relation P112
type Q502895
['Q1579196', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1579196 property:P112 ?f . ?f rdf:type ontology:Q502895 }
Naxos Records
action filter_type
action find
entity Naxos Records
relation founder
type common name
['Naxos Records', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Naxos_Records property:founder ?f . ?f rdf:type ontology:common_name }
[]
common name
Q1745220
SYSTEM
Klaus Heymann
Q1745220
(Q1579196,P112,c(Q502895))
action filter_type
action find
entity Q1579196
relation P112
type Q502895
[ANSWER] founded that economic branch
['Q1579196', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1579196 property:P112 ?f . ?f rdf:type ontology:Q502895 }
Klaus Heymann
Klaus Heymann founded that economic branch
Klaus Heymann
action filter_type
action find
entity Naxos Records
relation founder
type common name
['Naxos Records', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Naxos_Records property:founder ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5001834
Q502895
USER
And what about Business and Professionals Federation of Hong Kong?
(Q5001834,P112,c(Q502895))
action filter_type
action find
entity Q5001834
relation P112
type Q502895
['Q5001834', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q5001834 property:P112 ?e }
Business and Professionals Federation of Hong Kong
action filter_type
action find
entity Business and Professionals Federation of Hong Kong
relation founder
type common name
['Business and Professionals Federation of Hong Kong', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Business_and_Professionals_Federation_of_Hong_Kong property:founder ?e }
[]
common name
Q700149
SYSTEM
Vincent Lo
Q700149
(Q5001834,P112,c(Q502895))
action filter_type
action find
entity Q5001834
relation P112
type Q502895
[ANSWER]
['Q5001834', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q5001834 property:P112 ?e }
Vincent Lo
Vincent Lo
action filter_type
action find
entity Business and Professionals Federation of Hong Kong
relation founder
type common name
['Business and Professionals Federation of Hong Kong', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Business_and_Professionals_Federation_of_Hong_Kong property:founder ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q700149
P22
Q502895
USER
Who was the father of that one ?
(Q700149,P22,c(Q502895))
action filter_type
action find
entity Q700149
relation P22
type Q502895
['Q700149', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q700149 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Vincent Lo
action filter_type
action find
entity Vincent Lo
relation father
type common name
['Vincent Lo', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Vincent_Lo property:father ?h . ?h rdf:type ontology:common_name }
[]
common name
Q16903419
SYSTEM
Lo Ying Shek
Q16903419
(Q700149,P22,c(Q502895))
action filter_type
action find
entity Q700149
relation P22
type Q502895
The father of that one was Prince [ANSWER]
['Q700149', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q700149 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Lo Ying Shek
The father of that one was Prince Lo Ying Shek
Lo Ying Shek
action filter_type
action find
entity Vincent Lo
relation father
type common name
['Vincent Lo', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Vincent_Lo property:father ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q700149
P40
Q502895
USER
Which person has Vincent Lo as a child ?
(c(Q502895),P40,Q700149)
action filter_type
action find_reverse
entity Q700149
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q700149']
SELECT DISTINCT ?s WHERE { ?s property:P40 resource:Q700149 . ?s rdf:type ontology:Q502895 }
Vincent Lo
action filter_type
action find_reverse
entity Vincent Lo
relation child
type common name
[{'concept': 'common name'}, 'child', 'Vincent Lo']
SELECT DISTINCT ?s WHERE { ?s property:child resource:Vincent_Lo . ?s rdf:type ontology:common_name }
[]
common name
Q16903419
SYSTEM
Lo Ying Shek
Q16903419
(c(Q502895),P40,Q700149)
action filter_type
action find_reverse
entity Q700149
relation P40
type Q502895
[ANSWER] has Vincent Lo as a child
[{'concept': 'Q502895'}, 'P40', 'Q700149']
SELECT DISTINCT ?s WHERE { ?s property:P40 resource:Q700149 . ?s rdf:type ontology:Q502895 }
Lo Ying Shek
Lo Ying Shek has Vincent Lo as a child
Lo Ying Shek
action filter_type
action find_reverse
entity Vincent Lo
relation child
type common name
[{'concept': 'common name'}, 'child', 'Vincent Lo']
SELECT DISTINCT ?s WHERE { ?s property:child resource:Vincent_Lo . ?s rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q16903419 Q700149 Q9327083
P40
Q502895
USER
Does that person have Vincent Lo and Luo Xurui as a child ?
(Q16903419,P40,Q700149) (Q16903419,P40,Q9327083)
action is_in
entity Q16903419
action intersection
action find_reverse
entity Q700149
relation P40
action find_reverse
entity Q9327083
relation P40
['Q16903419', 'P40', 'Q700149'] ['Q16903419', 'P40', 'Q9327083']
ASK WHERE { resource:Q16903419 property:P40 resource:Q700149 . resource:Q16903419 property:P40 resource:Q9327083 }
Lo Ying Shek Vincent Lo Luo Xurui
action is_in
entity Lo Ying Shek
action intersection
action find_reverse
entity Vincent Lo
relation child
action find_reverse
entity Luo Xurui
relation child
['Lo Ying Shek', 'child', 'Vincent Lo'] ['Lo Ying Shek', 'child', 'Luo Xurui']
ASK WHERE { resource:Lo_Ying_Shek property:child resource:Vincent_Lo . resource:Lo_Ying_Shek property:child resource:Luo_Xurui }
[]
common name
SYSTEM
YES
(Q16903419,P40,Q700149) (Q16903419,P40,Q9327083)
action is_in
entity Q16903419
action intersection
action find_reverse
entity Q700149
relation P40
action find_reverse
entity Q9327083
relation P40
[ANSWER]
['Q16903419', 'P40', 'Q700149'] ['Q16903419', 'P40', 'Q9327083']
ASK WHERE { resource:Q16903419 property:P40 resource:Q700149 . resource:Q16903419 property:P40 resource:Q9327083 }
Yes
action is_in
entity Lo Ying Shek
action intersection
action find_reverse
entity Vincent Lo
relation child
action find_reverse
entity Luo Xurui
relation child
['Lo Ying Shek', 'child', 'Vincent Lo'] ['Lo Ying Shek', 'child', 'Luo Xurui']
ASK WHERE { resource:Lo_Ying_Shek property:child resource:Vincent_Lo . resource:Lo_Ying_Shek property:child resource:Luo_Xurui }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15627549 Q9327083
P7
Q502895
USER
Which people are the brothers of Luo Xurui or Mary Berkeley ?
OR((Q9327083,P7,c(Q502895)), (Q15627549,P7,c(Q502895)))
action filter_type
action union
action find
entity Q9327083
relation P7
action find
entity Q15627549
relation P7
type Q502895
{'OR': [['Q9327083', 'P7', {'concept': 'Q502895'}], ['Q15627549', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q9327083 property:P7 ?h } UNION { resource:Q15627549 property:P7 ?h } } . ?h rdf:type ontology:Q502895 }
Mary Berkeley Luo Xurui
action filter_type
action union
action find
entity Luo Xurui
relation brother
action find
entity Mary Berkeley
relation brother
type common name
{'OR': [['Luo Xurui', 'brother', {'concept': 'common name'}], ['Mary Berkeley', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Luo_Xurui property:brother ?h } UNION { resource:Mary_Berkeley property:brother ?h } } . ?h rdf:type ontology:common_name }
[]
common name
Q5718101 Q1752786 Q337638 Q700149 Q8999942 Q5536926
SYSTEM
Henry Berkeley, James Berkeley, 3rd Earl of Berkeley, John Manners, 2nd Duke of Rutland, Vincent Lo, Luo Jiarui, George Berkeley
Q5718101 Q1752786 Q337638 Q700149 Q8999942 Q5536926
OR((Q9327083,P7,c(Q502895)), (Q15627549,P7,c(Q502895)))
action filter_type
action union
action find
entity Q9327083
relation P7
action find
entity Q15627549
relation P7
type Q502895
[ANSWERS] are the brothers of Luo Xurui or Mary Berkeley
{'OR': [['Q9327083', 'P7', {'concept': 'Q502895'}], ['Q15627549', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q9327083 property:P7 ?h } UNION { resource:Q15627549 property:P7 ?h } } . ?h rdf:type ontology:Q502895 }
Henry Berkeley James Berkeley, 3rd Earl of Berkeley John Manners, 2nd Duke of Rutland Vincent Lo Luo Jiarui George Berkeley
Henry Berkeley, James Berkeley, 3rd Earl of Berkeley, John Manners, 2nd Duke of Rutland, Vincent Lo, Luo Jiarui and George Berkeley are the brothers of Luo Xurui or Mary Berkeley
Henry Berkeley James Berkeley, 3rd Earl of Berkeley John Manners, 2nd Duke of Rutland Vincent Lo Luo Jiarui George Berkeley
action filter_type
action union
action find
entity Luo Xurui
relation brother
action find
entity Mary Berkeley
relation brother
type common name
{'OR': [['Luo Xurui', 'brother', {'concept': 'common name'}], ['Mary Berkeley', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Luo_Xurui property:brother ?h } UNION { resource:Mary_Berkeley property:brother ?h } } . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5718101 Q1752786 Q337638 Q700149 Q8999942 Q5536926
P21
Q290
USER
Which sexes do Henry Berkeley, James Berkeley, 3rd Earl of Berkeley, John Manners, 2nd Duke of Rutland, Vincent Lo, Luo Jiarui and George Berkeley belong to ?
(Q5718101,P21,c(Q290)) (Q1752786,P21,c(Q290)) (Q337638,P21,c(Q290)) (Q700149,P21,c(Q290)) (Q8999942,P21,c(Q290)) (Q5536926,P21,c(Q290))
action union
action filter_type
action find
entity Q5718101
relation P21
type Q290
action filter_type
action find
entity Q1752786
relation P21
type Q290
action filter_type
action find
entity Q337638
relation P21
type Q290
action filter_type
action find
entity Q700149
relation P21
type Q290
action filter_type
action find
entity Q8999942
relation P21
type Q290
action filter_type
action find
entity Q5536926
relation P21
type Q290
['Q5718101', 'P21', {'concept': 'Q290'}] ['Q1752786', 'P21', {'concept': 'Q290'}] ['Q337638', 'P21', {'concept': 'Q290'}] ['Q700149', 'P21', {'concept': 'Q290'}] ['Q8999942', 'P21', {'concept': 'Q290'}] ['Q5536926', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { { ?m rdf:type ontology:Q290 . resource:Q5718101 property:P21 ?m } UNION { resource:Q1752786 property:P21 ?m . ?m rdf:type ontology:Q290 } }
Henry Berkeley James Berkeley, 3rd Earl of Berkeley John Manners, 2nd Duke of Rutland Vincent Lo Luo Jiarui George Berkeley
action union
action filter_type
action find
entity Henry Berkeley
relation gender
type sex
action filter_type
action find
entity James Berkeley, 3rd Earl of Berkeley
relation gender
type sex
action filter_type
action find
entity John Manners, 2nd Duke of Rutland
relation gender
type sex
action filter_type
action find
entity Vincent Lo
relation gender
type sex
action filter_type
action find
entity Luo Jiarui
relation gender
type sex
action filter_type
action find
entity George Berkeley
relation gender
type sex
['Henry Berkeley', 'gender', {'concept': 'sex'}] ['James Berkeley, 3rd Earl of Berkeley', 'gender', {'concept': 'sex'}] ['John Manners, 2nd Duke of Rutland', 'gender', {'concept': 'sex'}] ['Vincent Lo', 'gender', {'concept': 'sex'}] ['Luo Jiarui', 'gender', {'concept': 'sex'}] ['George Berkeley', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { { ?m rdf:type ontology:sex . resource:Henry_Berkeley property:gender ?m } UNION { resource:James_Berkeley,_3rd_Earl_of_Berkeley property:gender ?m . ?m rdf:type ontology:sex } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097 Q6581097 Q6581097 Q6581097
(Q5718101,P21,c(Q290)) (Q1752786,P21,c(Q290)) (Q337638,P21,c(Q290)) (Q700149,P21,c(Q290)) (Q8999942,P21,c(Q290)) (Q5536926,P21,c(Q290))
action union
action filter_type
action find
entity Q5718101
relation P21
type Q290
action filter_type
action find
entity Q1752786
relation P21
type Q290
action filter_type
action find
entity Q337638
relation P21
type Q290
action filter_type
action find
entity Q700149
relation P21
type Q290
action filter_type
action find
entity Q8999942
relation P21
type Q290
action filter_type
action find
entity Q5536926
relation P21
type Q290
Henry Berkeley , James Berkeley , 3rd Earl of Berkeley , John Manners , 2nd Duke of Rutland , Vincent Lo , Luo Jiarui and George Berkeley belong to the [ANSWER], [ANSWER] and [ANSWER]
['Q5718101', 'P21', {'concept': 'Q290'}] ['Q1752786', 'P21', {'concept': 'Q290'}] ['Q337638', 'P21', {'concept': 'Q290'}] ['Q700149', 'P21', {'concept': 'Q290'}] ['Q8999942', 'P21', {'concept': 'Q290'}] ['Q5536926', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { { ?m rdf:type ontology:Q290 . resource:Q5718101 property:P21 ?m } UNION { resource:Q1752786 property:P21 ?m . ?m rdf:type ontology:Q290 } }
male male male male male male
Henry Berkeley , James Berkeley , 3rd Earl of Berkeley , John Manners , 2nd Duke of Rutland , Vincent Lo , Luo Jiarui and George Berkeley belong to the male, male and male
male male male
action union
action filter_type
action find
entity Henry Berkeley
relation gender
type sex
action filter_type
action find
entity James Berkeley, 3rd Earl of Berkeley
relation gender
type sex
action filter_type
action find
entity John Manners, 2nd Duke of Rutland
relation gender
type sex
action filter_type
action find
entity Vincent Lo
relation gender
type sex
action filter_type
action find
entity Luo Jiarui
relation gender
type sex
action filter_type
action find
entity George Berkeley
relation gender
type sex
['Henry Berkeley', 'gender', {'concept': 'sex'}] ['James Berkeley, 3rd Earl of Berkeley', 'gender', {'concept': 'sex'}] ['John Manners, 2nd Duke of Rutland', 'gender', {'concept': 'sex'}] ['Vincent Lo', 'gender', {'concept': 'sex'}] ['Luo Jiarui', 'gender', {'concept': 'sex'}] ['George Berkeley', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { { ?m rdf:type ontology:sex . resource:Henry_Berkeley property:gender ?m } UNION { resource:James_Berkeley,_3rd_Earl_of_Berkeley property:gender ?m . ?m rdf:type ontology:sex } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5718101
P241
Q781132
USER
Which military branch is Henry Berkeley associated with ?
(Q5718101,P241,c(Q781132))
action filter_type
action find
entity Q5718101
relation P241
type Q781132
['Q5718101', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?j WHERE { resource:Q5718101 property:P241 ?j . ?j rdf:type ontology:Q781132 }
Henry Berkeley
action filter_type
action find
entity Henry Berkeley
relation military branch
type military branch
['Henry Berkeley', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?j WHERE { resource:Henry_Berkeley property:military_branch ?j . ?j rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q5718101,P241,c(Q781132))
action filter_type
action find
entity Q5718101
relation P241
type Q781132
Henry Berkeley is associated with [ANSWER]
['Q5718101', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?j WHERE { resource:Q5718101 property:P241 ?j . ?j rdf:type ontology:Q781132 }
British Army
Henry Berkeley is associated with British Army
British Army
action filter_type
action find
entity Henry Berkeley
relation military branch
type military branch
['Henry Berkeley', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?j WHERE { resource:Henry_Berkeley property:military_branch ?j . ?j rdf:type ontology:military_branch }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q222595 Q21993968
P241
Q502895
USER
Does Duncan Hannah belong to the military branch named that one ?
(Q21993968,P241,Q222595)
action is_in
entity Q21993968
action find
entity Q222595
relation P241
['Q21993968', 'P241', 'Q222595']
ASK WHERE { resource:Q222595 property:P241 resource:Q21993968 }
British Army Duncan Hannah
action is_in
entity Duncan Hannah
action find
entity British Army
relation military branch
['Duncan Hannah', 'military branch', 'British Army']
ASK WHERE { resource:British_Army property:military_branch resource:Duncan_Hannah }
[]
common name
SYSTEM
NO
(Q21993968,P241,Q222595)
action is_in
entity Q21993968
action find
entity Q222595
relation P241
[ANSWER]
['Q21993968', 'P241', 'Q222595']
ASK WHERE { resource:Q222595 property:P241 resource:Q21993968 }
No
action is_in
entity Duncan Hannah
action find
entity British Army
relation military branch
['Duncan Hannah', 'military branch', 'British Army']
ASK WHERE { resource:British_Army property:military_branch resource:Duncan_Hannah }
[]