Simple Question (Direct)
Simple Question
Q1893632
P1412
Q34770
USER
Which language does Marco Antonio Andolfi speak in ?
(Q1893632,P1412,c(Q34770))
action filter_type
action find
entity Q1893632
relation P1412
type Q34770
['Q1893632', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q1893632 property:P1412 ?u . ?u rdf:type ontology:Q34770 }
Marco Antonio Andolfi
action filter_type
action find
entity Marco Antonio Andolfi
relation languages spoken, written or signed
type language
['Marco Antonio Andolfi', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Marco_Antonio_Andolfi property:languages_spoken,_written_or_signed ?u . ?u rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q1893632,P1412,c(Q34770))
action filter_type
action find
entity Q1893632
relation P1412
type Q34770
Marco Antonio Andolfi speaks in [ANSWER]
['Q1893632', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q1893632 property:P1412 ?u . ?u rdf:type ontology:Q34770 }
Italian
Marco Antonio Andolfi speaks in Italian
Italian
action filter_type
action find
entity Marco Antonio Andolfi
relation languages spoken, written or signed
type language
['Marco Antonio Andolfi', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Marco_Antonio_Andolfi property:languages_spoken,_written_or_signed ?u . ?u rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1893632
P19
Q56061
USER
Where was that person born ?
(Q652,P19,c(Q56061))
action filter_type
action find
entity Q1893632
relation P19
type Q56061
['Q652', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1893632 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Marco Antonio Andolfi
action filter_type
action find
entity Marco Antonio Andolfi
relation place of birth
type administrative territorial entity
['Italian', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Marco_Antonio_Andolfi property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2634
SYSTEM
Naples
Q2634
(Q652,P19,c(Q56061))
action filter_type
action find
entity Q1893632
relation P19
type Q56061
That person was born in [ANSWER]
['Q652', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1893632 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Naples
That person was born in Naples
Naples
action filter_type
action find
entity Marco Antonio Andolfi
relation place of birth
type administrative territorial entity
['Italian', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Marco_Antonio_Andolfi property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2634
P119
Q502895
USER
Which person has that administrative territory as his/her tomb ?
(c(Q502895),P119,Q2634)
action filter_type
action find_reverse
entity Q2634
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q2634']
SELECT DISTINCT ?f WHERE { ?f property:P119 resource:Q2634 . ?f rdf:type ontology:Q502895 }
Naples
action filter_type
action find_reverse
entity Naples
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Naples']
SELECT DISTINCT ?f WHERE { ?f property:place_of_burial resource:Naples . ?f rdf:type ontology:common_name }
[]
common name
Q152099
SYSTEM
Constantine I of Greece
Q152099
(c(Q502895),P119,Q2634)
action filter_type
action find_reverse
entity Q2634
relation P119
type Q502895
[ANSWER] has that administrative territory as his/her tomb
[{'concept': 'Q502895'}, 'P119', 'Q2634']
SELECT DISTINCT ?f WHERE { ?f property:P119 resource:Q2634 . ?f rdf:type ontology:Q502895 }
Constantine I of Greece
Constantine I of Greece has that administrative territory as his/her tomb
Constantine I of Greece
action filter_type
action find_reverse
entity Naples
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Naples']
SELECT DISTINCT ?f WHERE { ?f property:place_of_burial resource:Naples . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q2634
P119 P21
Q502895
USER
Which people have Naples as his/her tomb and have the gender as male ?
AND((c(Q502895),P119,Q2634), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q2634
relation P119
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P119', 'Q2634'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P119 resource:Q2634 . ?f property:P21 resource:Q6581097 }
male Naples
action filter_type
action intersection
action find_reverse
entity Naples
relation place of burial
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of burial', 'Naples'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:place_of_burial resource:Naples . ?f property:gender resource:male }
[]
common name
Q152099
SYSTEM
Constantine I of Greece
Q152099
AND((c(Q502895),P119,Q2634), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q2634
relation P119
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Naples as his/her tomb and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P119', 'Q2634'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P119 resource:Q2634 . ?f property:P21 resource:Q6581097 }
Constantine I of Greece
Constantine I of Greece have Naples as his/her tomb and have the gender as male
Constantine I of Greece
action filter_type
action intersection
action find_reverse
entity Naples
relation place of burial
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of burial', 'Naples'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:place_of_burial resource:Naples . ?f property:gender resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q152099
P7
Q502895
USER
How many people have Constantine I of Greece as their sibling ?
(c(Q502895),P7,Q152099)
action count
action filter_type
action find_reverse
entity Q152099
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q152099']
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:P7 resource:Q152099 . ?i rdf:type ontology:Q502895 }
Constantine I of Greece
action count
action filter_type
action find_reverse
entity Constantine I of Greece
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Constantine I of Greece']
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:brother resource:Constantine_I_of_Greece . ?i rdf:type ontology:common_name }
[]
common name
SYSTEM
8
Q170396 Q447757 Q156531 Q232728 Q156548 Q242298 Q170160 Q232732
(c(Q502895),P7,Q152099)
action count
action filter_type
action find_reverse
entity Q152099
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q152099']
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:P7 resource:Q152099 . ?i rdf:type ontology:Q502895 }
Prince George of Greece and Denmark Prince Christopher of Greece and Denmark Prince Andrew of Greece and Denmark Grand Duchess Alexandra Georgievna of Russia Queen Sofía of Spain Princess Irene of Greece and Denmark Prince Nicholas of Greece and Denmark Princess Maria of Greece and Denmark
8
action count
action filter_type
action find_reverse
entity Constantine I of Greece
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Constantine I of Greece']
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:brother resource:Constantine_I_of_Greece . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2657012
P7
Q502895
USER
Which people had Moise Movilă as brother ?
(c(Q502895),P7,Q2657012)
action filter_type
action find
entity Q2657012
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q2657012']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q2657012 property:P7 ?r }
Moise Movilă
action filter_type
action find
entity Moise Movilă
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Moise Movilă']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Moise_Movilă property:brother ?r }
[]
common name
Q567959 Q2986611 Q1408493
SYSTEM
Peter Mogila, Gabriel Movilă, Mihail Movilă
Q567959 Q2986611 Q1408493
(c(Q502895),P7,Q2657012)
action filter_type
action find
entity Q2657012
relation P7
type Q502895
[ANSWERS] had Moise Movilă as brother
[{'concept': 'Q502895'}, 'P7', 'Q2657012']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q2657012 property:P7 ?r }
Peter Mogila Gabriel Movilă Mihail Movilă
Peter Mogila, Gabriel Movilă and Mihail Movilă had Moise Movilă as brother
Peter Mogila Gabriel Movilă Mihail Movilă
action filter_type
action find
entity Moise Movilă
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Moise Movilă']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Moise_Movilă property:brother ?r }
[]
Clarification
Simple Question|Single Entity|Indirect
Q567959
P106
Q12737077
USER
What does that person do for a living ?
(Q567959,P106,c(Q12737077))
action filter_type
action find
entity Q567959
relation P106
type Q12737077
['Q567959', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q567959 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Peter Mogila
action filter_type
action find
entity Peter Mogila
relation occupation
type occupation
['Peter Mogila', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Peter_Mogila property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q567959
SYSTEM
Did you mean Peter Mogila ?
Q567959 Q2986611 Q1408493
(Q567959,P106,c(Q12737077)) (Q2986611,P106,c(Q12737077)) (Q1408493,P106,c(Q12737077))
[ANSWER]
['Q567959', 'P106', {'concept': 'Q12737077'}] ['Q2986611', 'P106', {'concept': 'Q12737077'}] ['Q1408493', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q567959 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Peter Mogila Gabriel Movilă Mihail Movilă
Did you mean Peter Mogila ?
Peter Mogila
['Peter Mogila', 'occupation', {'concept': 'occupation'}] ['Gabriel Movilă', 'occupation', {'concept': 'occupation'}] ['Mihail Movilă', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Peter_Mogila property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(Q567959,P106,c(Q12737077))
['Q567959', 'P106', {'concept': 'Q12737077'}]
['Peter Mogila', 'occupation', {'concept': 'occupation'}]
[]
Q19340487
SYSTEM
Orthodox priest
Q19340487
(Q567959,P106,c(Q12737077))
action filter_type
action find
entity Q567959
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q567959', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q567959 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Orthodox priest
Orthodox priest that person does for a living
Orthodox priest
action filter_type
action find
entity Peter Mogila
relation occupation
type occupation
['Peter Mogila', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Peter_Mogila property:occupation ?y . ?y rdf:type ontology:occupation }
[]