Simple Question (Direct)
Simple Question
Q24805525
P27
Q15617994
USER
Which administrative territory does Raoul Senault belong to ?
(Q24805525,P27,c(Q15617994))
action filter_type
action find
entity Q24805525
relation P27
type Q15617994
['Q24805525', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q24805525 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Raoul Senault
action filter_type
action find
entity Raoul Senault
relation country of citizenship
type designation for an administrative territorial entity
['Raoul Senault', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Raoul_Senault property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q24805525,P27,c(Q15617994))
action filter_type
action find
entity Q24805525
relation P27
type Q15617994
Raoul Senault belongs to [ANSWER]
['Q24805525', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q24805525 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
France
Raoul Senault belongs to France
France
action filter_type
action find
entity Raoul Senault
relation country of citizenship
type designation for an administrative territorial entity
['Raoul Senault', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Raoul_Senault property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q24805525
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q142,P106,c(Q12737077))
action filter_type
action find
entity Q24805525
relation P106
type Q12737077
['Q142', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q12737077 . resource:Q24805525 property:P106 ?o }
Raoul Senault
action filter_type
action find
entity Raoul Senault
relation occupation
type occupation
['France', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:occupation . resource:Raoul_Senault property:occupation ?o }
[]
occupation
Q39631
SYSTEM
physician
Q39631
(Q142,P106,c(Q12737077))
action filter_type
action find
entity Q24805525
relation P106
type Q12737077
A [ANSWER] has that person as his/her 's career
['Q142', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q12737077 . resource:Q24805525 property:P106 ?o }
physician
A physician has that person as his/her 's career
physician
action filter_type
action find
entity Raoul Senault
relation occupation
type occupation
['France', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:occupation . resource:Raoul_Senault property:occupation ?o }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q15054021 Q24805525
P106
Q12737077
USER
Or Jean Drosay?
OR((Q24805525,P106,c(Q12737077)), (Q15054021,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q24805525
relation P106
action find
entity Q15054021
relation P106
type Q12737077
{'OR': [['Q24805525', 'P106', {'concept': 'Q12737077'}], ['Q15054021', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q24805525 property:P106 ?x } UNION { resource:Q15054021 property:P106 ?x } } . ?x rdf:type ontology:Q12737077 }
Jean Drosay Raoul Senault
action filter_type
action union
action find
entity Raoul Senault
relation occupation
action find
entity Jean Drosay
relation occupation
type occupation
{'OR': [['Raoul Senault', 'occupation', {'concept': 'occupation'}], ['Jean Drosay', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Raoul_Senault property:occupation ?x } UNION { resource:Jean_Drosay property:occupation ?x } } . ?x rdf:type ontology:occupation }
[]
occupation
Q39631 Q13418253 Q1622272
SYSTEM
physician, philologist, university teacher
Q39631 Q13418253 Q1622272
OR((Q24805525,P106,c(Q12737077)), (Q15054021,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q24805525
relation P106
action find
entity Q15054021
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q24805525', 'P106', {'concept': 'Q12737077'}], ['Q15054021', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q24805525 property:P106 ?x } UNION { resource:Q15054021 property:P106 ?x } } . ?x rdf:type ontology:Q12737077 }
physician philologist university teacher
physician philologist university teacher
action filter_type
action union
action find
entity Raoul Senault
relation occupation
action find
entity Jean Drosay
relation occupation
type occupation
{'OR': [['Raoul Senault', 'occupation', {'concept': 'occupation'}], ['Jean Drosay', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Raoul_Senault property:occupation ?x } UNION { resource:Jean_Drosay property:occupation ?x } } . ?x rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q13418253
P101
Q502895
USER
Which person has field of work as that occupation ?
(c(Q502895),P101,Q13418253)
action filter_type
action find_reverse
entity Q13418253
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q13418253']
SELECT DISTINCT ?d WHERE { ?d property:P101 resource:Q13418253 . ?d rdf:type ontology:Q502895 }
philologist
action filter_type
action find_reverse
entity philologist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'philologist']
SELECT DISTINCT ?d WHERE { ?d property:field_of_work resource:philologist . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q13418253
SYSTEM
Did you mean philologist ?
Q39631 Q13418253 Q1622272
(c(Q502895),P101,Q39631) (c(Q502895),P101,Q13418253) (c(Q502895),P101,Q1622272)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q39631'] [{'concept': 'Q502895'}, 'P101', 'Q13418253'] [{'concept': 'Q502895'}, 'P101', 'Q1622272']
SELECT DISTINCT ?d WHERE { ?d property:P101 resource:Q13418253 . ?d rdf:type ontology:Q502895 }
physician philologist university teacher
Did you mean philologist ?
philologist
[{'concept': 'common name'}, 'field of work', 'physician'] [{'concept': 'common name'}, 'field of work', 'philologist'] [{'concept': 'common name'}, 'field of work', 'university teacher']
SELECT DISTINCT ?d WHERE { ?d property:field_of_work resource:philologist . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P101,Q13418253)
[{'concept': 'Q502895'}, 'P101', 'Q13418253']
[{'concept': 'common name'}, 'field of work', 'philologist']
[]
Q77598
SYSTEM
Theodor Bergk
Q77598
(c(Q502895),P101,Q13418253)
action filter_type
action find_reverse
entity Q13418253
relation P101
type Q502895
[ANSWER] has field of work as that occupation
[{'concept': 'Q502895'}, 'P101', 'Q13418253']
SELECT DISTINCT ?d WHERE { ?d property:P101 resource:Q13418253 . ?d rdf:type ontology:Q502895 }
Theodor Bergk
Theodor Bergk has field of work as that occupation
Theodor Bergk
action filter_type
action find_reverse
entity philologist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'philologist']
SELECT DISTINCT ?d WHERE { ?d property:field_of_work resource:philologist . ?d rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q77598 Q1615742 Q183
P27
Q1048835
USER
Is that person a native of province of China and Germany ?
(Q77598,P27,Q1615742) (Q77598,P27,Q183)
action is_in
entity Q77598
action intersection
action find_reverse
entity Q1615742
relation P27
action find_reverse
entity Q183
relation P27
['Q77598', 'P27', 'Q1615742'] ['Q77598', 'P27', 'Q183']
ASK WHERE { resource:Q77598 property:P27 resource:Q1615742 . resource:Q77598 property:P27 resource:Q183 }
Theodor Bergk province of China Germany
action is_in
entity Theodor Bergk
action intersection
action find_reverse
entity province of China
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
['Theodor Bergk', 'country of citizenship', 'province of China'] ['Theodor Bergk', 'country of citizenship', 'Germany']
ASK WHERE { resource:Theodor_Bergk property:country_of_citizenship resource:province_of_China . resource:Theodor_Bergk property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q77598,P27,Q1615742) (Q77598,P27,Q183)
action is_in
entity Q77598
action intersection
action find_reverse
entity Q1615742
relation P27
action find_reverse
entity Q183
relation P27
[ANSWER]
['Q77598', 'P27', 'Q1615742'] ['Q77598', 'P27', 'Q183']
ASK WHERE { resource:Q77598 property:P27 resource:Q1615742 . resource:Q77598 property:P27 resource:Q183 }
NO and YES respectively
action is_in
entity Theodor Bergk
action intersection
action find_reverse
entity province of China
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
['Theodor Bergk', 'country of citizenship', 'province of China'] ['Theodor Bergk', 'country of citizenship', 'Germany']
ASK WHERE { resource:Theodor_Bergk property:country_of_citizenship resource:province_of_China . resource:Theodor_Bergk property:country_of_citizenship resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q77598
P463
Q3947
USER
Which house was Theodor Bergk a member of ?
(Q77598,P463,c(Q3947))
action filter_type
action find
entity Q77598
relation P463
type Q3947
['Q77598', 'P463', {'concept': 'Q3947'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q3947 . resource:Q77598 property:P463 ?d }
Theodor Bergk
action filter_type
action find
entity Theodor Bergk
relation member of
type house
['Theodor Bergk', 'member of', {'concept': 'house'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:house . resource:Theodor_Bergk property:member_of ?d }
[]
house
Q414188
SYSTEM
Göttingen Academy of Sciences
Q414188
(Q77598,P463,c(Q3947))
action filter_type
action find
entity Q77598
relation P463
type Q3947
The [ANSWER] was Theodor Bergk a member of
['Q77598', 'P463', {'concept': 'Q3947'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q3947 . resource:Q77598 property:P463 ?d }
Göttingen Academy of Sciences
The Göttingen Academy of Sciences was Theodor Bergk a member of
Göttingen Academy of Sciences
action filter_type
action find
entity Theodor Bergk
relation member of
type house
['Theodor Bergk', 'member of', {'concept': 'house'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:house . resource:Theodor_Bergk property:member_of ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q77598
P19
Q515
USER
Which city was that person born at ?
(Q414188,P19,c(Q515))
action filter_type
action find
entity Q77598
relation P19
type Q515
['Q414188', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q77598 property:P19 ?o . ?o rdf:type ontology:Q515 }
Theodor Bergk
action filter_type
action find
entity Theodor Bergk
relation place of birth
type city
['Göttingen Academy of Sciences', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Theodor_Bergk property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
(Q414188,P19,c(Q515))
action filter_type
action find
entity Q77598
relation P19
type Q515
That person was born in [ANSWER]
['Q414188', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q77598 property:P19 ?o . ?o rdf:type ontology:Q515 }
Leipzig
That person was born in Leipzig
Leipzig
action filter_type
action find
entity Theodor Bergk
relation place of birth
type city
['Göttingen Academy of Sciences', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Theodor_Bergk property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q77598
P101
Q12737077
USER
What are the fields of work of that person ?
(Q2079,P101,c(Q12737077))
action filter_type
action find
entity Q77598
relation P101
type Q12737077
['Q2079', 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q77598 property:P101 ?s . ?s rdf:type ontology:Q12737077 }
Theodor Bergk
action filter_type
action find
entity Theodor Bergk
relation field of work
type occupation
['Leipzig', 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Theodor_Bergk property:field_of_work ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q13418253 Q2516866
SYSTEM
philologist, publisher
Q13418253 Q2516866
(Q2079,P101,c(Q12737077))
action filter_type
action find
entity Q77598
relation P101
type Q12737077
The fields of work of that person are a [ANSWERS]
['Q2079', 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q77598 property:P101 ?s . ?s rdf:type ontology:Q12737077 }
philologist publisher
The fields of work of that person are a philologist and publisher
philologist publisher
action filter_type
action find
entity Theodor Bergk
relation field of work
type occupation
['Leipzig', 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Theodor_Bergk property:field_of_work ?s . ?s rdf:type ontology:occupation }
[]