Simple Question (Direct)
Simple Question
Q363055
P40
Q502895
USER
Who is an offspring of Arlen Specter ?
(Q363055,P40,c(Q502895))
action filter_type
action find
entity Q363055
relation P40
type Q502895
['Q363055', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q363055 property:P40 ?w . ?w rdf:type ontology:Q502895 }
Arlen Specter
action filter_type
action find
entity Arlen Specter
relation child
type common name
['Arlen Specter', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Arlen_Specter property:child ?w . ?w rdf:type ontology:common_name }
[]
common name
Q20685505
SYSTEM
Shanin Specter
Q20685505
(Q363055,P40,c(Q502895))
action filter_type
action find
entity Q363055
relation P40
type Q502895
An offspring of Arlen Specter is the [ANSWER]
['Q363055', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q363055 property:P40 ?w . ?w rdf:type ontology:Q502895 }
Shanin Specter
An offspring of Arlen Specter is the Shanin Specter
Shanin Specter
action filter_type
action find
entity Arlen Specter
relation child
type common name
['Arlen Specter', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Arlen_Specter property:child ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q363055
P22
Q502895
USER
Who has Arlen Specter as a father ?
(c(Q502895),P22,Q363055)
action filter_type
action find_reverse
entity Q363055
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q363055']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q363055 . ?h rdf:type ontology:Q502895 }
Arlen Specter
action filter_type
action find_reverse
entity Arlen Specter
relation father
type common name
[{'concept': 'common name'}, 'father', 'Arlen Specter']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Arlen_Specter . ?h rdf:type ontology:common_name }
[]
common name
Q20685505
SYSTEM
Shanin Specter
Q20685505
(c(Q502895),P22,Q363055)
action filter_type
action find_reverse
entity Q363055
relation P22
type Q502895
[ANSWER] has Arlen Specter as a father
[{'concept': 'Q502895'}, 'P22', 'Q363055']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q363055 . ?h rdf:type ontology:Q502895 }
Shanin Specter
Shanin Specter has Arlen Specter as a father
Shanin Specter
action filter_type
action find_reverse
entity Arlen Specter
relation father
type common name
[{'concept': 'common name'}, 'father', 'Arlen Specter']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Arlen_Specter . ?h rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16203580 Q20685505
P22
Q502895
USER
Which people were the father of Shanin Specter or Rhodri ap Hyfaidd ?
OR((Q20685505,P22,c(Q502895)), (Q16203580,P22,c(Q502895)))
action filter_type
action union
action find
entity Q20685505
relation P22
action find
entity Q16203580
relation P22
type Q502895
{'OR': [['Q20685505', 'P22', {'concept': 'Q502895'}], ['Q16203580', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . { { resource:Q20685505 property:P22 ?d } UNION { resource:Q16203580 property:P22 ?d } } }
Rhodri ap Hyfaidd Shanin Specter
action filter_type
action union
action find
entity Shanin Specter
relation father
action find
entity Rhodri ap Hyfaidd
relation father
type common name
{'OR': [['Shanin Specter', 'father', {'concept': 'common name'}], ['Rhodri ap Hyfaidd', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . { { resource:Shanin_Specter property:father ?d } UNION { resource:Rhodri_ap_Hyfaidd property:father ?d } } }
[]
common name
Q3019286 Q363055
SYSTEM
Hyfaidd, Arlen Specter
Q3019286 Q363055
OR((Q20685505,P22,c(Q502895)), (Q16203580,P22,c(Q502895)))
action filter_type
action union
action find
entity Q20685505
relation P22
action find
entity Q16203580
relation P22
type Q502895
[ANSWERS] were the father of Shanin Specter or Rhodri ap Hyfaidd
{'OR': [['Q20685505', 'P22', {'concept': 'Q502895'}], ['Q16203580', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . { { resource:Q20685505 property:P22 ?d } UNION { resource:Q16203580 property:P22 ?d } } }
Hyfaidd Arlen Specter
Hyfaidd and Arlen Specter were the father of Shanin Specter or Rhodri ap Hyfaidd
Hyfaidd Arlen Specter
action filter_type
action union
action find
entity Shanin Specter
relation father
action find
entity Rhodri ap Hyfaidd
relation father
type common name
{'OR': [['Shanin Specter', 'father', {'concept': 'common name'}], ['Rhodri ap Hyfaidd', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . { { resource:Shanin_Specter property:father ?d } UNION { resource:Rhodri_ap_Hyfaidd property:father ?d } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3019286 Q363055
P21
Q290
USER
Which sexes do Hyfaidd and Arlen Specter have ?
(Q3019286,P21,c(Q290)) (Q363055,P21,c(Q290))
action union
action filter_type
action find
entity Q3019286
relation P21
type Q290
action filter_type
action find
entity Q363055
relation P21
type Q290
['Q3019286', 'P21', {'concept': 'Q290'}] ['Q363055', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?b ) { ( resource:Q3019286 ) ( resource:Q363055 ) } . ?b property:P21 ?c }
Hyfaidd Arlen Specter
action union
action filter_type
action find
entity Hyfaidd
relation gender
type sex
action filter_type
action find
entity Arlen Specter
relation gender
type sex
['Hyfaidd', 'gender', {'concept': 'sex'}] ['Arlen Specter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?b ) { ( resource:Hyfaidd ) ( resource:Arlen_Specter ) } . ?b property:gender ?c }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q3019286,P21,c(Q290)) (Q363055,P21,c(Q290))
action union
action filter_type
action find
entity Q3019286
relation P21
type Q290
action filter_type
action find
entity Q363055
relation P21
type Q290
Arlen Specter and Hyfaidd have been [ANSWER] and [ANSWER]
['Q3019286', 'P21', {'concept': 'Q290'}] ['Q363055', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?b ) { ( resource:Q3019286 ) ( resource:Q363055 ) } . ?b property:P21 ?c }
male male
Arlen Specter and Hyfaidd have been male and male
male male
action union
action filter_type
action find
entity Hyfaidd
relation gender
type sex
action filter_type
action find
entity Arlen Specter
relation gender
type sex
['Hyfaidd', 'gender', {'concept': 'sex'}] ['Arlen Specter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?b ) { ( resource:Hyfaidd ) ( resource:Arlen_Specter ) } . ?b property:gender ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q363055
P509
Q2057971
USER
What was the cause of death of Arlen Specter ?
(Q363055,P509,c(Q2057971))
action filter_type
action find
entity Q363055
relation P509
type Q2057971
['Q363055', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { resource:Q363055 property:P509 ?k . ?k rdf:type ontology:Q2057971 }
Arlen Specter
action filter_type
action find
entity Arlen Specter
relation cause of death
type health problem
['Arlen Specter', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { resource:Arlen_Specter property:cause_of_death ?k . ?k rdf:type ontology:health_problem }
[]
health problem
Q208414
SYSTEM
lymphoma
Q208414
(Q363055,P509,c(Q2057971))
action filter_type
action find
entity Q363055
relation P509
type Q2057971
The cause of death of Arlen Specter was a [ANSWER]
['Q363055', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { resource:Q363055 property:P509 ?k . ?k rdf:type ontology:Q2057971 }
lymphoma
The cause of death of Arlen Specter was a lymphoma
lymphoma
action filter_type
action find
entity Arlen Specter
relation cause of death
type health problem
['Arlen Specter', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { resource:Arlen_Specter property:cause_of_death ?k . ?k rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q208414
P1995
Q1047113
USER
Which special field is the medical specality concerned with that health problem ?
(Q208414,P1995,c(Q1047113))
action filter_type
action find
entity Q208414
relation P1995
type Q1047113
['Q208414', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?b WHERE { resource:Q208414 property:P1995 ?b . ?b rdf:type ontology:Q1047113 }
lymphoma
action filter_type
action find
entity lymphoma
relation medical specialty
type special field
['lymphoma', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?b WHERE { resource:lymphoma property:medical_specialty ?b . ?b rdf:type ontology:special_field }
[]
special field
Q103824
SYSTEM
hematology
Q103824
(Q208414,P1995,c(Q1047113))
action filter_type
action find
entity Q208414
relation P1995
type Q1047113
[ANSWER] is the medical specality concerned with that health problem
['Q208414', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?b WHERE { resource:Q208414 property:P1995 ?b . ?b rdf:type ontology:Q1047113 }
hematology
Hematology is the medical specality concerned with that health problem
hematology
action filter_type
action find
entity lymphoma
relation medical specialty
type special field
['lymphoma', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?b WHERE { resource:lymphoma property:medical_specialty ?b . ?b rdf:type ontology:special_field }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q208414
P1050
Q502895
USER
Who suffers from that health problem ?
(c(Q502895),P1050,Q103824)
action filter_type
action find_reverse
entity Q208414
relation P1050
type Q502895
[{'concept': 'Q502895'}, 'P1050', 'Q103824']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P1050 resource:Q208414 }
lymphoma
action filter_type
action find_reverse
entity lymphoma
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'hematology']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:medical_condition resource:lymphoma }
[]
common name
Q312387
SYSTEM
Joey Ramone
Q312387
(c(Q502895),P1050,Q103824)
action filter_type
action find_reverse
entity Q208414
relation P1050
type Q502895
[ANSWER] suffers from that health problem
[{'concept': 'Q502895'}, 'P1050', 'Q103824']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P1050 resource:Q208414 }
Joey Ramone
Joey Ramone suffers from that health problem
Joey Ramone
action filter_type
action find_reverse
entity lymphoma
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'hematology']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:medical_condition resource:lymphoma }
[]