Simple Question (Direct)
Simple Question
Q16164590
P19
Q56061
USER
Which administrative territory is the place of birth of Leopoldo Alinari ?
(Q16164590,P19,c(Q56061))
action filter_type
action find
entity Q16164590
relation P19
type Q56061
['Q16164590', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q16164590 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Leopoldo Alinari
action filter_type
action find
entity Leopoldo Alinari
relation place of birth
type administrative territorial entity
['Leopoldo Alinari', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Leopoldo_Alinari property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2044
SYSTEM
Florence
Q2044
(Q16164590,P19,c(Q56061))
action filter_type
action find
entity Q16164590
relation P19
type Q56061
[ANSWER] is the place of birth of Leopoldo Alinari
['Q16164590', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q16164590 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Florence
Florence is the place of birth of Leopoldo Alinari
Florence
action filter_type
action find
entity Leopoldo Alinari
relation place of birth
type administrative territorial entity
['Leopoldo Alinari', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Leopoldo_Alinari property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16164590
P7
Q502895
USER
Who have Leopoldo Alinari as their sibling ?
(Q16164590,P7,c(Q502895))
action filter_type
action find
entity Q16164590
relation P7
type Q502895
['Q16164590', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q16164590 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Leopoldo Alinari
action filter_type
action find
entity Leopoldo Alinari
relation brother
type common name
['Leopoldo Alinari', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Leopoldo_Alinari property:brother ?i . ?i rdf:type ontology:common_name }
[]
common name
Q18934975 Q18508633
SYSTEM
Giuseppe Alinari, Romualdo Alinari
Q18934975 Q18508633
(Q16164590,P7,c(Q502895))
action filter_type
action find
entity Q16164590
relation P7
type Q502895
[ANSWERS] have Leopoldo Alinari as their sibling
['Q16164590', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q16164590 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Giuseppe Alinari Romualdo Alinari
Giuseppe Alinari and Romualdo Alinari have Leopoldo Alinari as their sibling
Giuseppe Alinari Romualdo Alinari
action filter_type
action find
entity Leopoldo Alinari
relation brother
type common name
['Leopoldo Alinari', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Leopoldo_Alinari property:brother ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12688350
Q502895
USER
And also tell me about Jagdeep Singh Deo?
(Q12688350,P7,c(Q502895))
action filter_type
action find
entity Q12688350
relation P7
type Q502895
['Q12688350', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q12688350 property:P7 ?r . ?r rdf:type ontology:Q502895 }
Jagdeep Singh Deo
action filter_type
action find
entity Jagdeep Singh Deo
relation brother
type common name
['Jagdeep Singh Deo', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Jagdeep_Singh_Deo property:brother ?r . ?r rdf:type ontology:common_name }
[]
common name
Q5575520 Q16867453
SYSTEM
Gobind Singh Deo, Ramkarpal Singh
Q5575520 Q16867453
(Q12688350,P7,c(Q502895))
action filter_type
action find
entity Q12688350
relation P7
type Q502895
[ANSWERS]
['Q12688350', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q12688350 property:P7 ?r . ?r rdf:type ontology:Q502895 }
Gobind Singh Deo Ramkarpal Singh
Gobind Singh Deo Ramkarpal Singh
action filter_type
action find
entity Jagdeep Singh Deo
relation brother
type common name
['Jagdeep Singh Deo', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Jagdeep_Singh_Deo property:brother ?r . ?r rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q12737077 Q28640
USER
How many occupations and professions are the professions of that person ?
(Q5575520,P106,c(Q12737077)) (Q5575520,P106,c(Q28640)) (Q5575520,P106,c(Q12737077)) (Q5575520,P106,c(Q28640)) (Q16867453,P106,c(Q12737077)) (Q16867453,P106,c(Q28640))
['Q5575520', 'P106', {'concept': 'Q12737077'}] ['Q5575520', 'P106', {'concept': 'Q28640'}] ['Q5575520', 'P106', {'concept': 'Q12737077'}] ['Q5575520', 'P106', {'concept': 'Q28640'}] ['Q16867453', 'P106', {'concept': 'Q12737077'}] ['Q16867453', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q5575520 property:Q528892 ?z } UNION { resource:Q5575520 property:Q528892 ?y } UNION { resource:Q5575520 property:Q528892 ?z } UNION { resource:Q5575520 property:Q528892 ?y } UNION { resource:Q16867453 property:Q528892 ?z } UNION { resource:Q16867453 property:Q528892 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q28640 }
['Gobind Singh Deo', 'occupation', {'concept': 'occupation'}] ['Gobind Singh Deo', 'occupation', {'concept': 'profession'}] ['Gobind Singh Deo', 'occupation', {'concept': 'occupation'}] ['Gobind Singh Deo', 'occupation', {'concept': 'profession'}] ['Ramkarpal Singh', 'occupation', {'concept': 'occupation'}] ['Ramkarpal Singh', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Gobind_Singh_Deo property:occupation ?z } UNION { resource:Gobind_Singh_Deo property:occupation ?y } UNION { resource:Gobind_Singh_Deo property:occupation ?z } UNION { resource:Gobind_Singh_Deo property:occupation ?y } UNION { resource:Ramkarpal_Singh property:occupation ?z } UNION { resource:Ramkarpal_Singh property:occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:profession }
[]
occupation profession
Quantitative|Count|Mult. entity type|Clarification
Q16867453
SYSTEM
Did you mean Ramkarpal Singh ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q5575520 property:Q528892 ?z } UNION { resource:Q5575520 property:Q528892 ?y } UNION { resource:Q5575520 property:Q528892 ?z } UNION { resource:Q5575520 property:Q528892 ?y } UNION { resource:Q16867453 property:Q528892 ?z } UNION { resource:Q16867453 property:Q528892 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q28640 }
Did you mean Ramkarpal Singh ?
Ramkarpal Singh
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Gobind_Singh_Deo property:occupation ?z } UNION { resource:Gobind_Singh_Deo property:occupation ?y } UNION { resource:Gobind_Singh_Deo property:occupation ?z } UNION { resource:Gobind_Singh_Deo property:occupation ?y } UNION { resource:Ramkarpal_Singh property:occupation ?z } UNION { resource:Ramkarpal_Singh property:occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:profession }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Gobind Singh Deo. Could you tell me the answer for that?
(Q5575520,P106,c(Q12737077)) (Q5575520,P106,c(Q28640)) (Q5575520,P106,c(Q12737077)) (Q5575520,P106,c(Q28640)) (Q16867453,P106,c(Q12737077)) (Q16867453,P106,c(Q28640))
Q5575520
['Q5575520', 'P106', {'concept': 'Q12737077'}] ['Q5575520', 'P106', {'concept': 'Q28640'}] ['Q5575520', 'P106', {'concept': 'Q12737077'}] ['Q5575520', 'P106', {'concept': 'Q28640'}] ['Q16867453', 'P106', {'concept': 'Q12737077'}] ['Q16867453', 'P106', {'concept': 'Q28640'}]
['Gobind Singh Deo', 'occupation', {'concept': 'occupation'}] ['Gobind Singh Deo', 'occupation', {'concept': 'profession'}] ['Gobind Singh Deo', 'occupation', {'concept': 'occupation'}] ['Gobind Singh Deo', 'occupation', {'concept': 'profession'}] ['Ramkarpal Singh', 'occupation', {'concept': 'occupation'}] ['Ramkarpal Singh', 'occupation', {'concept': 'profession'}]
[]
SYSTEM
1 occupations and 1 professions
Q82955 Q40348
(Q5575520,P106,c(Q12737077)) (Q5575520,P106,c(Q28640)) (Q5575520,P106,c(Q12737077)) (Q5575520,P106,c(Q28640)) (Q16867453,P106,c(Q12737077)) (Q16867453,P106,c(Q28640))
[ANSWER]
['Q5575520', 'P106', {'concept': 'Q12737077'}] ['Q5575520', 'P106', {'concept': 'Q28640'}] ['Q5575520', 'P106', {'concept': 'Q12737077'}] ['Q5575520', 'P106', {'concept': 'Q28640'}] ['Q16867453', 'P106', {'concept': 'Q12737077'}] ['Q16867453', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q5575520 property:Q528892 ?z } UNION { resource:Q5575520 property:Q528892 ?y } UNION { resource:Q5575520 property:Q528892 ?z } UNION { resource:Q5575520 property:Q528892 ?y } UNION { resource:Q16867453 property:Q528892 ?z } UNION { resource:Q16867453 property:Q528892 ?y } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q28640 }
politician lawyer
1 occupations and 1 professions
['Gobind Singh Deo', 'occupation', {'concept': 'occupation'}] ['Gobind Singh Deo', 'occupation', {'concept': 'profession'}] ['Gobind Singh Deo', 'occupation', {'concept': 'occupation'}] ['Gobind Singh Deo', 'occupation', {'concept': 'profession'}] ['Ramkarpal Singh', 'occupation', {'concept': 'occupation'}] ['Ramkarpal Singh', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Gobind_Singh_Deo property:occupation ?z } UNION { resource:Gobind_Singh_Deo property:occupation ?y } UNION { resource:Gobind_Singh_Deo property:occupation ?z } UNION { resource:Gobind_Singh_Deo property:occupation ?y } UNION { resource:Ramkarpal_Singh property:occupation ?z } UNION { resource:Ramkarpal_Singh property:occupation ?y } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16867453
P22
Q502895
USER
Which male person has a child named Ramkarpal Singh ?
(Q16867453,P22,c(Q502895))
action filter_type
action find
entity Q16867453
relation P22
type Q502895
['Q16867453', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q16867453 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Ramkarpal Singh
action filter_type
action find
entity Ramkarpal Singh
relation father
type common name
['Ramkarpal Singh', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Ramkarpal_Singh property:father ?u . ?u rdf:type ontology:common_name }
[]
common name
Q6373289
SYSTEM
Karpal Singh
Q6373289
(Q16867453,P22,c(Q502895))
action filter_type
action find
entity Q16867453
relation P22
type Q502895
Devi [ANSWER] has a child named Ramkarpal Singh
['Q16867453', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q16867453 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Karpal Singh
Devi Karpal Singh has a child named Ramkarpal Singh
Karpal Singh
action filter_type
action find
entity Ramkarpal Singh
relation father
type common name
['Ramkarpal Singh', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Ramkarpal_Singh property:father ?u . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q6373289 Q16224035 Q16867453
P40
Q502895
USER
Does that person have Siddharth Vipin and Ramkarpal Singh as a child ?
(Q6373289,P40,Q16224035) (Q6373289,P40,Q16867453)
action is_in
entity Q6373289
action intersection
action find_reverse
entity Q16224035
relation P40
action find_reverse
entity Q16867453
relation P40
['Q6373289', 'P40', 'Q16224035'] ['Q6373289', 'P40', 'Q16867453']
ASK WHERE { resource:Q6373289 property:P40 resource:Q16867453 . resource:Q6373289 property:P40 resource:Q16224035 }
Karpal Singh Siddharth Vipin Ramkarpal Singh
action is_in
entity Karpal Singh
action intersection
action find_reverse
entity Siddharth Vipin
relation child
action find_reverse
entity Ramkarpal Singh
relation child
['Karpal Singh', 'child', 'Siddharth Vipin'] ['Karpal Singh', 'child', 'Ramkarpal Singh']
ASK WHERE { resource:Karpal_Singh property:child resource:Ramkarpal_Singh . resource:Karpal_Singh property:child resource:Siddharth_Vipin }
[]
common name
SYSTEM
NO and YES respectively
(Q6373289,P40,Q16224035) (Q6373289,P40,Q16867453)
action is_in
entity Q6373289
action intersection
action find_reverse
entity Q16224035
relation P40
action find_reverse
entity Q16867453
relation P40
[ANSWER]
['Q6373289', 'P40', 'Q16224035'] ['Q6373289', 'P40', 'Q16867453']
ASK WHERE { resource:Q6373289 property:P40 resource:Q16867453 . resource:Q6373289 property:P40 resource:Q16224035 }
NO and YES respectively
action is_in
entity Karpal Singh
action intersection
action find_reverse
entity Siddharth Vipin
relation child
action find_reverse
entity Ramkarpal Singh
relation child
['Karpal Singh', 'child', 'Siddharth Vipin'] ['Karpal Singh', 'child', 'Ramkarpal Singh']
ASK WHERE { resource:Karpal_Singh property:child resource:Ramkarpal_Singh . resource:Karpal_Singh property:child resource:Siddharth_Vipin }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16867453 Q5575520 Q16015862
P7
Q502895
USER
Is Ramkarpal Singh a sibling of Gobind Singh Deo and Michael John ?
(Q16867453,P7,Q5575520) (Q16867453,P7,Q16015862)
action is_in
entity Q16867453
action intersection
action find_reverse
entity Q5575520
relation P7
action find_reverse
entity Q16015862
relation P7
['Q16867453', 'P7', 'Q5575520'] ['Q16867453', 'P7', 'Q16015862']
ASK WHERE { resource:Q16867453 property:P7 resource:Q5575520 . resource:Q16867453 property:P7 resource:Q16015862 }
Ramkarpal Singh Gobind Singh Deo Michael John
action is_in
entity Ramkarpal Singh
action intersection
action find_reverse
entity Gobind Singh Deo
relation brother
action find_reverse
entity Michael John
relation brother
['Ramkarpal Singh', 'brother', 'Gobind Singh Deo'] ['Ramkarpal Singh', 'brother', 'Michael John']
ASK WHERE { resource:Ramkarpal_Singh property:brother resource:Gobind_Singh_Deo . resource:Ramkarpal_Singh property:brother resource:Michael_John }
[]
common name
SYSTEM
YES and NO respectively
(Q16867453,P7,Q5575520) (Q16867453,P7,Q16015862)
action is_in
entity Q16867453
action intersection
action find_reverse
entity Q5575520
relation P7
action find_reverse
entity Q16015862
relation P7
[ANSWER]
['Q16867453', 'P7', 'Q5575520'] ['Q16867453', 'P7', 'Q16015862']
ASK WHERE { resource:Q16867453 property:P7 resource:Q5575520 . resource:Q16867453 property:P7 resource:Q16015862 }
YES and NO respectively
action is_in
entity Ramkarpal Singh
action intersection
action find_reverse
entity Gobind Singh Deo
relation brother
action find_reverse
entity Michael John
relation brother
['Ramkarpal Singh', 'brother', 'Gobind Singh Deo'] ['Ramkarpal Singh', 'brother', 'Michael John']
ASK WHERE { resource:Ramkarpal_Singh property:brother resource:Gobind_Singh_Deo . resource:Ramkarpal_Singh property:brother resource:Michael_John }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18934975
P21
Q290
USER
What is the sex of Giuseppe Alinari ?
(Q18934975,P21,c(Q290))
action filter_type
action find
entity Q18934975
relation P21
type Q290
['Q18934975', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q18934975 property:P21 ?d . ?d rdf:type ontology:Q290 }
Giuseppe Alinari
action filter_type
action find
entity Giuseppe Alinari
relation gender
type sex
['Giuseppe Alinari', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Giuseppe_Alinari property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18934975,P21,c(Q290))
action filter_type
action find
entity Q18934975
relation P21
type Q290
The sex of Giuseppe Alinari is the [ANSWER]
['Q18934975', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q18934975 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
The sex of Giuseppe Alinari is the male
male
action filter_type
action find
entity Giuseppe Alinari
relation gender
type sex
['Giuseppe Alinari', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Giuseppe_Alinari property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P106
Q502895
USER
Which person has the profession of that sex ?
(c(Q502895),P106,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q6581097 . ?w rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:male . ?w rdf:type ontology:common_name }
[]
common name
Q24877298
SYSTEM
Antonín Straka
Q24877298
(c(Q502895),P106,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[ANSWER] has the profession of that sex
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q6581097 . ?w rdf:type ontology:Q502895 }
Antonín Straka
Antonín Straka has the profession of that sex
Antonín Straka
action filter_type
action find_reverse
entity male
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:male . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13365117
P425
Q349
USER
Who has handball player as the associated field of occupation ?
(Q13365117,P425,c(Q349))
action filter_type
action find
entity Q13365117
relation P425
type Q349
['Q13365117', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q349 . resource:Q13365117 property:P425 ?t }
handball player
action filter_type
action find
entity handball player
relation field of this occupation
type sport
['handball player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sport . resource:handball_player property:field_of_this_occupation ?t }
[]
sport
Q8418
SYSTEM
handball
Q8418
(Q13365117,P425,c(Q349))
action filter_type
action find
entity Q13365117
relation P425
type Q349
The [ANSWER] has [ANSWER] player as the associated field of occupation
['Q13365117', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q349 . resource:Q13365117 property:P425 ?t }
handball
The handball has handball player as the associated field of occupation
handball
action filter_type
action find
entity handball player
relation field of this occupation
type sport
['handball player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sport . resource:handball_player property:field_of_this_occupation ?t }
[]