Simple Question (Direct)
Simple Question
Q729436
P19
Q56061
USER
Which administrative territory was George Allan born at ?
(Q729436,P19,c(Q56061))
action filter_type
action find
entity Q729436
relation P19
type Q56061
['Q729436', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q729436 property:P19 ?y . ?y rdf:type ontology:Q56061 }
George Allan
action filter_type
action find
entity George Allan
relation place of birth
type administrative territorial entity
['George Allan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:George_Allan property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1016911
SYSTEM
Linlithgow
Q1016911
(Q729436,P19,c(Q56061))
action filter_type
action find
entity Q729436
relation P19
type Q56061
George Allan was born in [ANSWER]
['Q729436', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q729436 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Linlithgow
George Allan was born in Linlithgow
Linlithgow
action filter_type
action find
entity George Allan
relation place of birth
type administrative territorial entity
['George Allan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:George_Allan property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q729436
P106
Q12737077
USER
Which occupation has George Allan as his/her 's career ?
(Q729436,P106,c(Q12737077))
action filter_type
action find
entity Q729436
relation P106
type Q12737077
['Q729436', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q729436 property:P106 ?i }
George Allan
action filter_type
action find
entity George Allan
relation occupation
type occupation
['George Allan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:George_Allan property:occupation ?i }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q729436,P106,c(Q12737077))
action filter_type
action find
entity Q729436
relation P106
type Q12737077
Player [ANSWER] has George Allan as his/her 's career
['Q729436', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q729436 property:P106 ?i }
association football player
Player association football player has George Allan as his/her 's career
association football player
action filter_type
action find
entity George Allan
relation occupation
type occupation
['George Allan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:George_Allan property:occupation ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q729436
P641
Q349
USER
What was the sport that George Allan was a part of ?
(Q729436,P641,c(Q349))
action filter_type
action find
entity Q729436
relation P641
type Q349
['Q729436', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q349 . resource:Q729436 property:P641 ?n }
George Allan
action filter_type
action find
entity George Allan
relation sport
type sport
['George Allan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sport . resource:George_Allan property:sport ?n }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q729436,P641,c(Q349))
action filter_type
action find
entity Q729436
relation P641
type Q349
The sport that George Allan was a part of was [ANSWER]
['Q729436', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q349 . resource:Q729436 property:P641 ?n }
association football
The sport that George Allan was a part of was association football
association football
action filter_type
action find
entity George Allan
relation sport
type sport
['George Allan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sport . resource:George_Allan property:sport ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q729436
P21
Q290
USER
What is the sex of that person ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q729436
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q729436 property:P21 ?s . ?s rdf:type ontology:Q290 }
George Allan
action filter_type
action find
entity George Allan
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:George_Allan property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q729436
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q729436 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity George Allan
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:George_Allan property:gender ?s . ?s rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5662087 Q729436
P21
Q290
USER
Or Alain Baroja?
OR((Q729436,P21,c(Q290)), (Q5662087,P21,c(Q290)))
action filter_type
action union
action find
entity Q729436
relation P21
action find
entity Q5662087
relation P21
type Q290
{'OR': [['Q729436', 'P21', {'concept': 'Q290'}], ['Q5662087', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?t ) { ( resource:Q729436 ) ( resource:Q5662087 ) } . ?t property:P21 ?b } . ?b rdf:type ontology:Q290 }
Alain Baroja George Allan
action filter_type
action union
action find
entity George Allan
relation gender
action find
entity Alain Baroja
relation gender
type sex
{'OR': [['George Allan', 'gender', {'concept': 'sex'}], ['Alain Baroja', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?t ) { ( resource:George_Allan ) ( resource:Alain_Baroja ) } . ?t property:gender ?b } . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q729436,P21,c(Q290)), (Q5662087,P21,c(Q290)))
action filter_type
action union
action find
entity Q729436
relation P21
action find
entity Q5662087
relation P21
type Q290
[ANSWER]
{'OR': [['Q729436', 'P21', {'concept': 'Q290'}], ['Q5662087', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?t ) { ( resource:Q729436 ) ( resource:Q5662087 ) } . ?t property:P21 ?b } . ?b rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity George Allan
relation gender
action find
entity Alain Baroja
relation gender
type sex
{'OR': [['George Allan', 'gender', {'concept': 'sex'}], ['Alain Baroja', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?t ) { ( resource:George_Allan ) ( resource:Alain_Baroja ) } . ?t property:gender ?b } . ?b rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q327866
P21
Q502895
USER
Is Jean-Claude Petit a that sex ?
(Q327866,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q327866
relation P21
['Q327866', 'P21', 'Q6581097']
ASK WHERE { resource:Q327866 property:P21 resource:Q6581097 }
male Jean-Claude Petit
action is_in
entity male
action find
entity Jean-Claude Petit
relation gender
['Jean-Claude Petit', 'gender', 'male']
ASK WHERE { resource:Jean-Claude_Petit property:gender resource:male }
[]
common name
SYSTEM
YES
(Q327866,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q327866
relation P21
[ANSWER]
['Q327866', 'P21', 'Q6581097']
ASK WHERE { resource:Q327866 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Jean-Claude Petit
relation gender
['Jean-Claude Petit', 'gender', 'male']
ASK WHERE { resource:Jean-Claude_Petit property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1742048 Q729436
P1050
Q2057971
USER
Which health problems do George Allan or King Kolax suffer from ?
OR((Q729436,P1050,c(Q2057971)), (Q1742048,P1050,c(Q2057971)))
action filter_type
action union
action find
entity Q729436
relation P1050
action find
entity Q1742048
relation P1050
type Q2057971
{'OR': [['Q729436', 'P1050', {'concept': 'Q2057971'}], ['Q1742048', 'P1050', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?m WHERE { { ?r property:P1050 ?m . VALUES ( ?r ) { ( resource:Q729436 ) ( resource:Q1742048 ) } } . ?m rdf:type ontology:Q2057971 }
King Kolax George Allan
action filter_type
action union
action find
entity George Allan
relation medical condition
action find
entity King Kolax
relation medical condition
type health problem
{'OR': [['George Allan', 'medical condition', {'concept': 'health problem'}], ['King Kolax', 'medical condition', {'concept': 'health problem'}]]}
SELECT DISTINCT ?m WHERE { { ?r property:medical_condition ?m . VALUES ( ?r ) { ( resource:George_Allan ) ( resource:King_Kolax ) } } . ?m rdf:type ontology:health_problem }
[]
health problem
Q11081 Q12204
SYSTEM
Alzheimer's disease, tuberculosis
Q11081 Q12204
OR((Q729436,P1050,c(Q2057971)), (Q1742048,P1050,c(Q2057971)))
action filter_type
action union
action find
entity Q729436
relation P1050
action find
entity Q1742048
relation P1050
type Q2057971
George Allan or King Kolax suffer from [ANSWERS]
{'OR': [['Q729436', 'P1050', {'concept': 'Q2057971'}], ['Q1742048', 'P1050', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?m WHERE { { ?r property:P1050 ?m . VALUES ( ?r ) { ( resource:Q729436 ) ( resource:Q1742048 ) } } . ?m rdf:type ontology:Q2057971 }
Alzheimer's disease tuberculosis
George Allan or King Kolax suffer from Alzheimer's disease and tuberculosis
Alzheimer's disease tuberculosis
action filter_type
action union
action find
entity George Allan
relation medical condition
action find
entity King Kolax
relation medical condition
type health problem
{'OR': [['George Allan', 'medical condition', {'concept': 'health problem'}], ['King Kolax', 'medical condition', {'concept': 'health problem'}]]}
SELECT DISTINCT ?m WHERE { { ?r property:medical_condition ?m . VALUES ( ?r ) { ( resource:George_Allan ) ( resource:King_Kolax ) } } . ?m rdf:type ontology:health_problem }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P101
Q811979 Q502895
USER
How many architectural structures or people have field of work as that health problem ?
(c(Q811979),P101,Q12204) (c(Q502895),P101,Q12204) (c(Q811979),P101,Q11081) (c(Q502895),P101,Q11081) (c(Q811979),P101,Q12204) (c(Q502895),P101,Q12204)
[{'concept': 'Q811979'}, 'P101', 'Q12204'] [{'concept': 'Q502895'}, 'P101', 'Q12204'] [{'concept': 'Q811979'}, 'P101', 'Q11081'] [{'concept': 'Q502895'}, 'P101', 'Q11081'] [{'concept': 'Q811979'}, 'P101', 'Q12204'] [{'concept': 'Q502895'}, 'P101', 'Q12204']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q627436 resource:Q12204 } UNION { ?y property:Q627436 resource:Q12204 } UNION { ?z property:Q627436 resource:Q22242083 } UNION { ?y property:Q627436 resource:Q22242083 } UNION { ?z property:Q627436 resource:Q12204 } UNION { ?y property:Q627436 resource:Q12204 } } . ?z rdf:type ontology:Q811979 . ?y rdf:type ontology:Q502895 }
[{'concept': 'architectural structure'}, 'field of work', 'tuberculosis'] [{'concept': 'common name'}, 'field of work', 'tuberculosis'] [{'concept': 'architectural structure'}, 'field of work', "Alzheimer's disease"] [{'concept': 'common name'}, 'field of work', "Alzheimer's disease"] [{'concept': 'architectural structure'}, 'field of work', 'tuberculosis'] [{'concept': 'common name'}, 'field of work', 'tuberculosis']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:field_of_work resource:tuberculosis } UNION { ?y property:field_of_work resource:tuberculosis } UNION { ?z property:field_of_work resource:Alzheimer's_disease } UNION { ?y property:field_of_work resource:Alzheimer's_disease } UNION { ?z property:field_of_work resource:tuberculosis } UNION { ?y property:field_of_work resource:tuberculosis } } . ?z rdf:type ontology:architectural_structure . ?y rdf:type ontology:common_name }
[]
architectural structure common name
Quantitative|Count|Mult. entity type|Clarification
Q12204
SYSTEM
Did you mean tuberculosis ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q627436 resource:Q12204 } UNION { ?y property:Q627436 resource:Q12204 } UNION { ?z property:Q627436 resource:Q22242083 } UNION { ?y property:Q627436 resource:Q22242083 } UNION { ?z property:Q627436 resource:Q12204 } UNION { ?y property:Q627436 resource:Q12204 } } . ?z rdf:type ontology:Q811979 . ?y rdf:type ontology:Q502895 }
Did you mean tuberculosis ?
tuberculosis
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:field_of_work resource:tuberculosis } UNION { ?y property:field_of_work resource:tuberculosis } UNION { ?z property:field_of_work resource:Alzheimer's_disease } UNION { ?y property:field_of_work resource:Alzheimer's_disease } UNION { ?z property:field_of_work resource:tuberculosis } UNION { ?y property:field_of_work resource:tuberculosis } } . ?z rdf:type ontology:architectural_structure . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q811979),P101,Q12204) (c(Q502895),P101,Q12204) (c(Q811979),P101,Q11081) (c(Q502895),P101,Q11081) (c(Q811979),P101,Q12204) (c(Q502895),P101,Q12204)
[{'concept': 'Q811979'}, 'P101', 'Q12204'] [{'concept': 'Q502895'}, 'P101', 'Q12204'] [{'concept': 'Q811979'}, 'P101', 'Q11081'] [{'concept': 'Q502895'}, 'P101', 'Q11081'] [{'concept': 'Q811979'}, 'P101', 'Q12204'] [{'concept': 'Q502895'}, 'P101', 'Q12204']
[{'concept': 'architectural structure'}, 'field of work', 'tuberculosis'] [{'concept': 'common name'}, 'field of work', 'tuberculosis'] [{'concept': 'architectural structure'}, 'field of work', "Alzheimer's disease"] [{'concept': 'common name'}, 'field of work', "Alzheimer's disease"] [{'concept': 'architectural structure'}, 'field of work', 'tuberculosis'] [{'concept': 'common name'}, 'field of work', 'tuberculosis']
[]
SYSTEM
3
Q19043546 Q21062285 Q27243286
(c(Q811979),P101,Q12204) (c(Q502895),P101,Q12204) (c(Q811979),P101,Q11081) (c(Q502895),P101,Q11081) (c(Q811979),P101,Q12204) (c(Q502895),P101,Q12204)
[ANSWER]
[{'concept': 'Q811979'}, 'P101', 'Q12204'] [{'concept': 'Q502895'}, 'P101', 'Q12204'] [{'concept': 'Q811979'}, 'P101', 'Q11081'] [{'concept': 'Q502895'}, 'P101', 'Q11081'] [{'concept': 'Q811979'}, 'P101', 'Q12204'] [{'concept': 'Q502895'}, 'P101', 'Q12204']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q627436 resource:Q12204 } UNION { ?y property:Q627436 resource:Q12204 } UNION { ?z property:Q627436 resource:Q22242083 } UNION { ?y property:Q627436 resource:Q22242083 } UNION { ?z property:Q627436 resource:Q12204 } UNION { ?y property:Q627436 resource:Q12204 } } . ?z rdf:type ontology:Q811979 . ?y rdf:type ontology:Q502895 }
Robert Philip Soumya Swaminathan Dispensario antituberculoso Victoria Eugenia
3
[{'concept': 'architectural structure'}, 'field of work', 'tuberculosis'] [{'concept': 'common name'}, 'field of work', 'tuberculosis'] [{'concept': 'architectural structure'}, 'field of work', "Alzheimer's disease"] [{'concept': 'common name'}, 'field of work', "Alzheimer's disease"] [{'concept': 'architectural structure'}, 'field of work', 'tuberculosis'] [{'concept': 'common name'}, 'field of work', 'tuberculosis']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:field_of_work resource:tuberculosis } UNION { ?y property:field_of_work resource:tuberculosis } UNION { ?z property:field_of_work resource:Alzheimer's_disease } UNION { ?y property:field_of_work resource:Alzheimer's_disease } UNION { ?z property:field_of_work resource:tuberculosis } UNION { ?y property:field_of_work resource:tuberculosis } } . ?z rdf:type ontology:architectural_structure . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12204
P2175
Q8386
USER
What is used for the treatment of tuberculosis ?
(c(Q8386),P2175,Q12204)
action filter_type
action find_reverse
entity Q12204
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q12204']
SELECT DISTINCT ?q WHERE { ?q property:P2175 resource:Q12204 . ?q rdf:type ontology:Q8386 }
tuberculosis
action filter_type
action find_reverse
entity tuberculosis
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'tuberculosis']
SELECT DISTINCT ?q WHERE { ?q property:medical_condition_treated resource:tuberculosis . ?q rdf:type ontology:drug }
[]
drug
Q423169
SYSTEM
Isoniazid
Q423169
(c(Q8386),P2175,Q12204)
action filter_type
action find_reverse
entity Q12204
relation P2175
type Q8386
And [ANSWER] is used for the treatment of tuberculosis
[{'concept': 'Q8386'}, 'P2175', 'Q12204']
SELECT DISTINCT ?q WHERE { ?q property:P2175 resource:Q12204 . ?q rdf:type ontology:Q8386 }
Isoniazid
And Isoniazid is used for the treatment of tuberculosis
Isoniazid
action filter_type
action find_reverse
entity tuberculosis
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'tuberculosis']
SELECT DISTINCT ?q WHERE { ?q property:medical_condition_treated resource:tuberculosis . ?q rdf:type ontology:drug }
[]