Simple Question (Direct)
Simple Question
Q7427348
P106
Q12737077
USER
What is the job of Saul Weprin ?
(Q7427348,P106,c(Q12737077))
action filter_type
action find
entity Q7427348
relation P106
type Q12737077
['Q7427348', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q7427348 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Saul Weprin
action filter_type
action find
entity Saul Weprin
relation occupation
type occupation
['Saul Weprin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Saul_Weprin property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q7427348,P106,c(Q12737077))
action filter_type
action find
entity Q7427348
relation P106
type Q12737077
The job of Saul Weprin is a [ANSWER]
['Q7427348', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q7427348 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
politician
The job of Saul Weprin is a politician
politician
action filter_type
action find
entity Saul Weprin
relation occupation
type occupation
['Saul Weprin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Saul_Weprin property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7427348
P1196
Q1931388
USER
What situation did that person die in ?
(Q82955,P1196,c(Q1931388))
action filter_type
action find
entity Q7427348
relation P1196
type Q1931388
['Q82955', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?m WHERE { resource:Q7427348 property:P1196 ?m . ?m rdf:type ontology:Q1931388 }
Saul Weprin
action filter_type
action find
entity Saul Weprin
relation manner of death
type cause of death
['politician', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?m WHERE { resource:Saul_Weprin property:manner_of_death ?m . ?m rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q82955,P1196,c(Q1931388))
action filter_type
action find
entity Q7427348
relation P1196
type Q1931388
That person died in [ANSWER]
['Q82955', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?m WHERE { resource:Q7427348 property:P1196 ?m . ?m rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Saul Weprin
relation manner of death
type cause of death
['politician', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?m WHERE { resource:Saul_Weprin property:manner_of_death ?m . ?m rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7427348
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q3739104,P102,c(Q7210356))
action filter_type
action find
entity Q7427348
relation P102
type Q7210356
['Q3739104', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q7427348 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Saul Weprin
action filter_type
action find
entity Saul Weprin
relation member of political party
type political organization
['natural causes', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Saul_Weprin property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q3739104,P102,c(Q7210356))
action filter_type
action find
entity Q7427348
relation P102
type Q7210356
Party [ANSWER] is that person a member of
['Q3739104', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q7427348 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Democratic Party
Party Democratic Party is that person a member of
Democratic Party
action filter_type
action find
entity Saul Weprin
relation member of political party
type political organization
['natural causes', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Saul_Weprin property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P825
Q502895 Q838948 Q7725634
USER
How many people are exactly 2 works of art and literary works dedicated to ?
(c(Q838948)|c(Q7725634),P825,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
value 2
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?d ) WHERE { { ?j rdf:type ontology:Q502895 . ?y rdf:type ontology:Q838948 . ?y property:P825 ?j } UNION { ?y property:P825 ?j . ?j rdf:type ontology:Q502895 . ?y rdf:type ontology:Q7725634 } } GROUP BY ?j } }
action count
action equal
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type work of art
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
value 2
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?d ) WHERE { { ?j rdf:type ontology:common_name . ?y rdf:type ontology:work_of_art . ?y property:dedicated_to ?j } UNION { ?y property:dedicated_to ?j . ?j rdf:type ontology:common_name . ?y rdf:type ontology:literary_work } } GROUP BY ?j } }
[]
common name work of art literary work
SYSTEM
5
Q43999 Q22985873 Q539 Q727717 Q35149
(c(Q838948)|c(Q7725634),P825,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
value 2
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?d ) WHERE { { ?j rdf:type ontology:Q502895 . ?y rdf:type ontology:Q838948 . ?y property:P825 ?j } UNION { ?y property:P825 ?j . ?j rdf:type ontology:Q502895 . ?y rdf:type ontology:Q7725634 } } GROUP BY ?j } }
James Elizabeth Jean Scott Giuseppe Diego Garibaldi Pacheco Ramón Pérez de Ayala Wilhelm Röntgen
5
action count
action equal
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type work of art
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
value 2
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?d ) WHERE { { ?j rdf:type ontology:common_name . ?y rdf:type ontology:work_of_art . ?y property:dedicated_to ?j } UNION { ?y property:dedicated_to ?j . ?j rdf:type ontology:common_name . ?y rdf:type ontology:literary_work } } GROUP BY ?j } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7427348
P509
Q2057971
USER
What was the cause of death of Saul Weprin ?
(Q7427348,P509,c(Q2057971))
action filter_type
action find
entity Q7427348
relation P509
type Q2057971
['Q7427348', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q7427348 property:P509 ?o . ?o rdf:type ontology:Q2057971 }
Saul Weprin
action filter_type
action find
entity Saul Weprin
relation cause of death
type health problem
['Saul Weprin', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:Saul_Weprin property:cause_of_death ?o . ?o rdf:type ontology:health_problem }
[]
health problem
Q12202
SYSTEM
stroke
Q12202
(Q7427348,P509,c(Q2057971))
action filter_type
action find
entity Q7427348
relation P509
type Q2057971
The cause of death of Saul Weprin was a [ANSWER]
['Q7427348', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q7427348 property:P509 ?o . ?o rdf:type ontology:Q2057971 }
stroke
The cause of death of Saul Weprin was a stroke
stroke
action filter_type
action find
entity Saul Weprin
relation cause of death
type health problem
['Saul Weprin', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:Saul_Weprin property:cause_of_death ?o . ?o rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q12202 Q5541836
P509
Q502895
USER
Did George Louis McGhee die from that health problem ?
(Q5541836,P509,Q12202)
action is_in
entity Q12202
action find
entity Q5541836
relation P509
['Q5541836', 'P509', 'Q12202']
ASK WHERE { resource:Q5541836 property:P509 resource:Q12202 }
stroke George Louis McGhee
action is_in
entity stroke
action find
entity George Louis McGhee
relation cause of death
['George Louis McGhee', 'cause of death', 'stroke']
ASK WHERE { resource:George_Louis_McGhee property:cause_of_death resource:stroke }
[]
common name
SYSTEM
YES
(Q5541836,P509,Q12202)
action is_in
entity Q12202
action find
entity Q5541836
relation P509
[ANSWER]
['Q5541836', 'P509', 'Q12202']
ASK WHERE { resource:Q5541836 property:P509 resource:Q12202 }
Yes
action is_in
entity stroke
action find
entity George Louis McGhee
relation cause of death
['George Louis McGhee', 'cause of death', 'stroke']
ASK WHERE { resource:George_Louis_McGhee property:cause_of_death resource:stroke }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7427348
P21
Q290
USER
Which sex does Saul Weprin possess ?
(Q7427348,P21,c(Q290))
action filter_type
action find
entity Q7427348
relation P21
type Q290
['Q7427348', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q7427348 property:P21 ?e . ?e rdf:type ontology:Q290 }
Saul Weprin
action filter_type
action find
entity Saul Weprin
relation gender
type sex
['Saul Weprin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Saul_Weprin property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7427348,P21,c(Q290))
action filter_type
action find
entity Q7427348
relation P21
type Q290
Saul Weprin possesses un [ANSWER]
['Q7427348', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q7427348 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Saul Weprin possesses un male
male
action filter_type
action find
entity Saul Weprin
relation gender
type sex
['Saul Weprin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Saul_Weprin property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q772876
Q290
USER
And what about Edward Degener?
(Q772876,P21,c(Q290))
action filter_type
action find
entity Q772876
relation P21
type Q290
['Q772876', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q772876 property:P21 ?c . ?c rdf:type ontology:Q290 }
Edward Degener
action filter_type
action find
entity Edward Degener
relation gender
type sex
['Edward Degener', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Edward_Degener property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q772876,P21,c(Q290))
action filter_type
action find
entity Q772876
relation P21
type Q290
[ANSWER]
['Q772876', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q772876 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Edward Degener
relation gender
type sex
['Edward Degener', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Edward_Degener property:gender ?c . ?c rdf:type ontology:sex }
[]