Simple Question (Direct)
Simple Question
Q4273908
P106
Q12737077
USER
Which occupations are the professions of Yury Magalif ?
(Q4273908,P106,c(Q12737077))
action filter_type
action find
entity Q4273908
relation P106
type Q12737077
['Q4273908', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q4273908 property:P106 ?v }
Yury Magalif
action filter_type
action find
entity Yury Magalif
relation occupation
type occupation
['Yury Magalif', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Yury_Magalif property:occupation ?v }
[]
occupation
Q4853732 Q36180
SYSTEM
children's writer, writer
Q4853732 Q36180
(Q4273908,P106,c(Q12737077))
action filter_type
action find
entity Q4273908
relation P106
type Q12737077
The professions of Yury Magalif are the [ANSWERS]
['Q4273908', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q4273908 property:P106 ?v }
children's writer writer
The professions of Yury Magalif are the children's writer and writer
children's writer writer
action filter_type
action find
entity Yury Magalif
relation occupation
type occupation
['Yury Magalif', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Yury_Magalif property:occupation ?v }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4853732 Q36180
P101
Q502895
USER
Which people have his/her area as those occupations ?
(c(Q502895),P101,Q4853732) (c(Q502895),P101,Q36180)
action filter_type
action find_reverse
entity prev_answer
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q4853732'] [{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P101 ?d . VALUES ( ?d ) { ( resource:Q4853732 ) ( resource:Q36180 ) } }
children's writer writer
action filter_type
action find_reverse
entity prev_answer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', "children's writer"] [{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:field_of_work ?d . VALUES ( ?d ) { ( resource:children's_writer ) ( resource:writer ) } }
[]
common name
Q1944623 Q168569
SYSTEM
Monika Finsterbusch, Martin Andersen Nexø
Q1944623 Q168569
(c(Q502895),P101,Q4853732) (c(Q502895),P101,Q36180)
action filter_type
action find_reverse
entity prev_answer
relation P101
type Q502895
[ANSWERS] have his/her area as those occupations
[{'concept': 'Q502895'}, 'P101', 'Q4853732'] [{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P101 ?d . VALUES ( ?d ) { ( resource:Q4853732 ) ( resource:Q36180 ) } }
Monika Finsterbusch Martin Andersen Nexø
Monika Finsterbusch and Martin Andersen Nexø have his/her area as those occupations
Monika Finsterbusch Martin Andersen Nexø
action filter_type
action find_reverse
entity prev_answer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', "children's writer"] [{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:field_of_work ?d . VALUES ( ?d ) { ( resource:children's_writer ) ( resource:writer ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1944623 Q168569
P21
Q290
USER
Which sexes do those people have ?
(Q1944623,P21,c(Q290)) (Q168569,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q1944623', 'P21', {'concept': 'Q290'}] ['Q168569', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?w property:P21 ?d . ?d rdf:type ontology:Q290 . VALUES ( ?w ) { ( resource:Q1944623 ) ( resource:Q168569 ) } }
Monika Finsterbusch Martin Andersen Nexø
action filter_type
action find
entity prev_answer
relation gender
type sex
['Monika Finsterbusch', 'gender', {'concept': 'sex'}] ['Martin Andersen Nexø', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?w property:gender ?d . ?d rdf:type ontology:sex . VALUES ( ?w ) { ( resource:Monika_Finsterbusch ) ( resource:Martin_Andersen_Nexø ) } }
[]
sex
Q6581072 Q6581097
SYSTEM
female, male
Q6581072 Q6581097
(Q1944623,P21,c(Q290)) (Q168569,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people have a [ANSWERS]
['Q1944623', 'P21', {'concept': 'Q290'}] ['Q168569', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?w property:P21 ?d . ?d rdf:type ontology:Q290 . VALUES ( ?w ) { ( resource:Q1944623 ) ( resource:Q168569 ) } }
female male
Those people have a female and male
female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Monika Finsterbusch', 'gender', {'concept': 'sex'}] ['Martin Andersen Nexø', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?w property:gender ?d . ?d rdf:type ontology:sex . VALUES ( ?w ) { ( resource:Monika_Finsterbusch ) ( resource:Martin_Andersen_Nexø ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q6581072 Q6581097
P180
Q3305213
USER
Which paintings depict female and male ?
(c(Q3305213),P180,Q6581072) (c(Q3305213),P180,Q6581097)
action union
action filter_type
action find_reverse
entity Q6581072
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q6581072'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ?o WHERE { { ?o property:P180 resource:Q6581072 . ?o rdf:type ontology:Q3305213 } UNION { ?o rdf:type ontology:Q3305213 . ?o property:P180 resource:Q6581097 } }
female male
action union
action filter_type
action find_reverse
entity female
relation depicts
type painting
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'female'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ?o WHERE { { ?o property:depicts resource:female . ?o rdf:type ontology:painting } UNION { ?o rdf:type ontology:painting . ?o property:depicts resource:male } }
[]
painting
Q18346971 Q18713957
SYSTEM
Resurrection, Raja Surendra Vikram Shah at the age of 15 with his prime minister
Q18346971 Q18713957
(c(Q3305213),P180,Q6581072) (c(Q3305213),P180,Q6581097)
action union
action filter_type
action find_reverse
entity Q6581072
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWERS] depict female and male
[{'concept': 'Q3305213'}, 'P180', 'Q6581072'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ?o WHERE { { ?o property:P180 resource:Q6581072 . ?o rdf:type ontology:Q3305213 } UNION { ?o rdf:type ontology:Q3305213 . ?o property:P180 resource:Q6581097 } }
Resurrection Raja Surendra Vikram Shah at the age of 15 with his prime minister
Resurrection and Raja Surendra Vikram Shah at the age of 15 with his prime minister depict female and male
Resurrection Raja Surendra Vikram Shah at the age of 15 with his prime minister
action union
action filter_type
action find_reverse
entity female
relation depicts
type painting
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'female'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ?o WHERE { { ?o property:depicts resource:female . ?o rdf:type ontology:painting } UNION { ?o rdf:type ontology:painting . ?o property:depicts resource:male } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q18346971 Q18713957
P1071
Q15617994
USER
Where are the final places of assembly for those paintings ?
(Q18346971,P1071,c(Q15617994)) (Q18713957,P1071,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P1071
type Q15617994
['Q18346971', 'P1071', {'concept': 'Q15617994'}] ['Q18713957', 'P1071', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . VALUES ( ?h ) { ( resource:Q18346971 ) ( resource:Q18713957 ) } . ?h property:P1071 ?e }
Resurrection Raja Surendra Vikram Shah at the age of 15 with his prime minister
action filter_type
action find
entity prev_answer
relation location of final assembly
type designation for an administrative territorial entity
['Resurrection', 'location of final assembly', {'concept': 'designation for an administrative territorial entity'}] ['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'location of final assembly', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?h ) { ( resource:Resurrection ) ( resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister ) } . ?h property:location_of_final_assembly ?e }
[]
designation for an administrative territorial entity
Q30 Q837
SYSTEM
United States of America, Nepal
Q30 Q837
(Q18346971,P1071,c(Q15617994)) (Q18713957,P1071,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P1071
type Q15617994
The final places of assembly for those paintings are the [ANSWERS]
['Q18346971', 'P1071', {'concept': 'Q15617994'}] ['Q18713957', 'P1071', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . VALUES ( ?h ) { ( resource:Q18346971 ) ( resource:Q18713957 ) } . ?h property:P1071 ?e }
United States of America Nepal
The final places of assembly for those paintings are the United States of America and Nepal
United States of America Nepal
action filter_type
action find
entity prev_answer
relation location of final assembly
type designation for an administrative territorial entity
['Resurrection', 'location of final assembly', {'concept': 'designation for an administrative territorial entity'}] ['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'location of final assembly', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?h ) { ( resource:Resurrection ) ( resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister ) } . ?h property:location_of_final_assembly ?e }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30
P710
Q131569
USER
What event did that administrative territory particiate in ?
(c(Q131569),P710,Q30)
action filter_type
action find_reverse
entity Q30
relation P710
type Q131569
[{'concept': 'Q131569'}, 'P710', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P710 resource:Q30 . ?c rdf:type ontology:Q131569 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation participant
type treaty
[{'concept': 'treaty'}, 'participant', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:participant resource:United_States_of_America . ?c rdf:type ontology:treaty }
[]
treaty
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q30 Q837
(c(Q131569),P710,Q30) (c(Q131569),P710,Q837)
[ANSWER]
[{'concept': 'Q131569'}, 'P710', 'Q30'] [{'concept': 'Q131569'}, 'P710', 'Q837']
SELECT DISTINCT ?c WHERE { ?c property:P710 resource:Q30 . ?c rdf:type ontology:Q131569 }
United States of America Nepal
Did you mean United States of America ?
United States of America
[{'concept': 'treaty'}, 'participant', 'United States of America'] [{'concept': 'treaty'}, 'participant', 'Nepal']
SELECT DISTINCT ?c WHERE { ?c property:participant resource:United_States_of_America . ?c rdf:type ontology:treaty }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q131569),P710,Q30)
[{'concept': 'Q131569'}, 'P710', 'Q30']
[{'concept': 'treaty'}, 'participant', 'United States of America']
[]
Q696802
SYSTEM
Paris Peace Accords
Q696802
(c(Q131569),P710,Q30)
action filter_type
action find_reverse
entity Q30
relation P710
type Q131569
That administrative territory particiated in [ANSWER]
[{'concept': 'Q131569'}, 'P710', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P710 resource:Q30 . ?c rdf:type ontology:Q131569 }
Paris Peace Accords
That administrative territory particiated in Paris Peace Accords
Paris Peace Accords
action filter_type
action find_reverse
entity United States of America
relation participant
type treaty
[{'concept': 'treaty'}, 'participant', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:participant resource:United_States_of_America . ?c rdf:type ontology:treaty }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q8195 Q1944623
P47 P27
Q1048835
USER
Which political territories do Monika Finsterbusch belong to or are adjacent to Breisgau-Hochschwarzwald ?
OR((Q1944623,P27,c(Q1048835)), (Q8195,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1944623
relation P27
action find
entity Q8195
relation P47
type Q1048835
{'OR': [['Q1944623', 'P27', {'concept': 'Q1048835'}], ['Q8195', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q1944623 property:P27 ?d } UNION { resource:Q8195 property:P47 ?d } } . ?d rdf:type ontology:Q1048835 }
Breisgau-Hochschwarzwald Monika Finsterbusch
action filter_type
action union
action find
entity Monika Finsterbusch
relation country of citizenship
action find
entity Breisgau-Hochschwarzwald
relation shares border with
type political territorial entity
{'OR': [['Monika Finsterbusch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Monika_Finsterbusch property:country_of_citizenship ?d } UNION { resource:Breisgau-Hochschwarzwald property:shares_border_with ?d } } . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q8193 Q8198 Q8203 Q8200 Q183
SYSTEM
Emmendingen, Lörrach, Schwarzwald-Baar, Waldshut, Germany
Q8193 Q8198 Q8203 Q8200 Q183
OR((Q1944623,P27,c(Q1048835)), (Q8195,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1944623
relation P27
action find
entity Q8195
relation P47
type Q1048835
Monika Finsterbusch belong to the [ANSWERS] or are adjacent to Breisgau- Hochschwarzwald
{'OR': [['Q1944623', 'P27', {'concept': 'Q1048835'}], ['Q8195', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q1944623 property:P27 ?d } UNION { resource:Q8195 property:P47 ?d } } . ?d rdf:type ontology:Q1048835 }
Emmendingen Lörrach Schwarzwald-Baar Waldshut Germany
Monika Finsterbusch belong to the Emmendingen, Lörrach, Schwarzwald-Baar, Waldshut and Germany or are adjacent to Breisgau- Hochschwarzwald
Emmendingen Lörrach Schwarzwald-Baar Waldshut Germany
action filter_type
action union
action find
entity Monika Finsterbusch
relation country of citizenship
action find
entity Breisgau-Hochschwarzwald
relation shares border with
type political territorial entity
{'OR': [['Monika Finsterbusch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Breisgau-Hochschwarzwald', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Monika_Finsterbusch property:country_of_citizenship ?d } UNION { resource:Breisgau-Hochschwarzwald property:shares_border_with ?d } } . ?d rdf:type ontology:political_territorial_entity }
[]