Simple Question (Direct)
Simple Question
Q172398
P140
Q879146
USER
What is the religion associated with Adrian III ?
(Q172398,P140,c(Q879146))
action filter_type
action find
entity Q172398
relation P140
type Q879146
['Q172398', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q879146 . resource:Q172398 property:P140 ?f }
Adrian III
action filter_type
action find
entity Adrian III
relation religion
type Christian denomination
['Adrian III', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Christian_denomination . resource:Adrian_III property:religion ?f }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q172398,P140,c(Q879146))
action filter_type
action find
entity Q172398
relation P140
type Q879146
The religion associated with Adrian III is [ANSWER]
['Q172398', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q879146 . resource:Q172398 property:P140 ?f }
Roman Catholic Church
The religion associated with Adrian III is Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Adrian III
relation religion
type Christian denomination
['Adrian III', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Christian_denomination . resource:Adrian_III property:religion ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172398
P411
Q82799
USER
Which name is held by Adrian III ?
(Q172398,P411,c(Q82799))
action filter_type
action find
entity Q172398
relation P411
type Q82799
['Q172398', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q172398 property:P411 ?o }
Adrian III
action filter_type
action find
entity Adrian III
relation canonization status
type name
['Adrian III', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Adrian_III property:canonization_status ?o }
[]
name
Q43115
SYSTEM
saint
Q43115
(Q172398,P411,c(Q82799))
action filter_type
action find
entity Q172398
relation P411
type Q82799
The [ANSWER] is held by Adrian III
['Q172398', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q172398 property:P411 ?o }
saint
The saint is held by Adrian III
saint
action filter_type
action find
entity Adrian III
relation canonization status
type name
['Adrian III', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Adrian_III property:canonization_status ?o }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3116510
P180
Q82799 Q3305213 Q340169
USER
Which names are expressed in greater number of paintings and medias than frog ?
(c(Q3305213)|c(Q340169),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q3116510
relation P180
type Q3305213
type Q340169
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?m WHERE { { ?d property:P180 ?m . ?m rdf:type ontology:Q82799 . ?d rdf:type ontology:Q3305213 } UNION { ?d property:P180 ?m . ?m rdf:type ontology:Q82799 . ?d rdf:type ontology:Q340169 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P180 resource:Q3116510 . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } } } . FILTER ( ?x > ?g ) }
frog
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity frog
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?m WHERE { { ?d property:depicts ?m . ?m rdf:type ontology:name . ?d rdf:type ontology:painting } UNION { ?d property:depicts ?m . ?m rdf:type ontology:name . ?d rdf:type ontology:media } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:depicts resource:frog . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:painting ) ( ontology:media ) } } } } . FILTER ( ?x > ?g ) }
[]
name painting media
Q144 Q876933 Q152
SYSTEM
dog, magi, fish
Q5 Q726 Q830 Q3736439 Q7368 Q7369 Q2092297 Q144 Q24067392 Q201251 Q8335 Q3537778 Q1367 Q9394 Q2734060 Q43115 Q876933 Q7378 Q152 Q859257
(c(Q3305213)|c(Q340169),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q3116510
relation P180
type Q3305213
type Q340169
[ANSWERS] are expressed in greater number of paintings and medias than frog
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?m WHERE { { ?d property:P180 ?m . ?m rdf:type ontology:Q82799 . ?d rdf:type ontology:Q3305213 } UNION { ?d property:P180 ?m . ?m rdf:type ontology:Q82799 . ?d rdf:type ontology:Q340169 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P180 resource:Q3116510 . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } } } . FILTER ( ?x > ?g ) }
human horse cattle duck Ovis aries dolphin eagle dog Boy peacock raven donkeys monkey rabbit reed saint magi elephant fish fly
Dog, magi and fish are expressed in greater number of paintings and medias than frog
dog magi fish
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity frog
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?m WHERE { { ?d property:depicts ?m . ?m rdf:type ontology:name . ?d rdf:type ontology:painting } UNION { ?d property:depicts ?m . ?m rdf:type ontology:name . ?d rdf:type ontology:media } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:depicts resource:frog . { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:painting ) ( ontology:media ) } } } } . FILTER ( ?x > ?g ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q876933
P21
Q290
USER
What is the sex of that name ?
(Q876933,P21,c(Q290))
action filter_type
action find
entity Q876933
relation P21
type Q290
['Q876933', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q876933 property:P21 ?k . ?k rdf:type ontology:Q290 }
magi
action filter_type
action find
entity magi
relation gender
type sex
['magi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:magi property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q876933
SYSTEM
Did you mean magi ?
Q144 Q876933 Q152
(Q144,P21,c(Q290)) (Q876933,P21,c(Q290)) (Q152,P21,c(Q290))
[ANSWER]
['Q144', 'P21', {'concept': 'Q290'}] ['Q876933', 'P21', {'concept': 'Q290'}] ['Q152', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q876933 property:P21 ?k . ?k rdf:type ontology:Q290 }
dog magi fish
Did you mean magi ?
magi
['dog', 'gender', {'concept': 'sex'}] ['magi', 'gender', {'concept': 'sex'}] ['fish', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:magi property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q876933,P21,c(Q290))
['Q876933', 'P21', {'concept': 'Q290'}]
['magi', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q876933,P21,c(Q290))
action filter_type
action find
entity Q876933
relation P21
type Q290
The sex of that name is a [ANSWER]
['Q876933', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q876933 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
The sex of that name is a male
male
action filter_type
action find
entity magi
relation gender
type sex
['magi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:magi property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q876933
P361
Q151885
USER
Which concept is magi a part of ?
(Q876933,P361,c(Q151885))
action filter_type
action find
entity Q876933
relation P361
type Q151885
['Q876933', 'P361', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { resource:Q876933 property:P361 ?z . ?z rdf:type ontology:Q151885 }
magi
action filter_type
action find
entity magi
relation part of
type concept
['magi', 'part of', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { resource:magi property:part_of ?z . ?z rdf:type ontology:concept }
[]
concept
Q177826
SYSTEM
clergy
Q177826
(Q876933,P361,c(Q151885))
action filter_type
action find
entity Q876933
relation P361
type Q151885
Which concept is magi a part of
['Q876933', 'P361', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { resource:Q876933 property:P361 ?z . ?z rdf:type ontology:Q151885 }
clergy
Which concept is magi a part of
clergy
action filter_type
action find
entity magi
relation part of
type concept
['magi', 'part of', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { resource:magi property:part_of ?z . ?z rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q177826
P463
Q502895
USER
Who is a member of that concept ?
(c(Q502895),P463,Q177826)
action filter_type
action find_reverse
entity Q177826
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q177826']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . ?r property:P463 resource:Q177826 }
clergy
action filter_type
action find_reverse
entity clergy
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'clergy']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . ?r property:member_of resource:clergy }
[]
common name
Q26821175
SYSTEM
Jean-Pierre-Joseph Masclet
Q26821175
(c(Q502895),P463,Q177826)
action filter_type
action find_reverse
entity Q177826
relation P463
type Q502895
A member of that concept is [ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q177826']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . ?r property:P463 resource:Q177826 }
Jean-Pierre-Joseph Masclet
A member of that concept is Jean-Pierre-Joseph Masclet
Jean-Pierre-Joseph Masclet
action filter_type
action find_reverse
entity clergy
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'clergy']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . ?r property:member_of resource:clergy }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26821175
P22
Q502895
USER
Which person was the father of that one ?
(Q26821175,P22,c(Q502895))
action filter_type
action find
entity Q26821175
relation P22
type Q502895
['Q26821175', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q26821175 property:P22 ?a . ?a rdf:type ontology:Q502895 }
Jean-Pierre-Joseph Masclet
action filter_type
action find
entity Jean-Pierre-Joseph Masclet
relation father
type common name
['Jean-Pierre-Joseph Masclet', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Jean-Pierre-Joseph_Masclet property:father ?a . ?a rdf:type ontology:common_name }
[]
common name
Q26721523
SYSTEM
Pierre-François-Joseph Masclet
Q26721523
(Q26821175,P22,c(Q502895))
action filter_type
action find
entity Q26821175
relation P22
type Q502895
[ANSWER] was the father of that one
['Q26821175', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q26821175 property:P22 ?a . ?a rdf:type ontology:Q502895 }
Pierre-François-Joseph Masclet
Pierre-François-Joseph Masclet was the father of that one
Pierre-François-Joseph Masclet
action filter_type
action find
entity Jean-Pierre-Joseph Masclet
relation father
type common name
['Jean-Pierre-Joseph Masclet', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Jean-Pierre-Joseph_Masclet property:father ?a . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q26721523 Q142
P27
Q15617994
USER
Is that person a civilian of France ?
(Q26721523,P27,Q142)
action is_in
entity Q142
action find
entity Q26721523
relation P27
['Q26721523', 'P27', 'Q142']
ASK WHERE { resource:Q26721523 property:P27 resource:Q142 }
Pierre-François-Joseph Masclet France
action is_in
entity France
action find
entity Pierre-François-Joseph Masclet
relation country of citizenship
['Pierre-François-Joseph Masclet', 'country of citizenship', 'France']
ASK WHERE { resource:Pierre-François-Joseph_Masclet property:country_of_citizenship resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q26721523,P27,Q142)
action is_in
entity Q142
action find
entity Q26721523
relation P27
[ANSWER]
['Q26721523', 'P27', 'Q142']
ASK WHERE { resource:Q26721523 property:P27 resource:Q142 }
Yes
action is_in
entity France
action find
entity Pierre-François-Joseph Masclet
relation country of citizenship
['Pierre-François-Joseph Masclet', 'country of citizenship', 'France']
ASK WHERE { resource:Pierre-François-Joseph_Masclet property:country_of_citizenship resource:France }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q26721523
P40
Q502895
USER
How many people are children of Pierre-François-Joseph Masclet ?
(Q26721523,P40,c(Q502895))
action count
action filter_type
action find
entity Q26721523
relation P40
type Q502895
['Q26721523', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q26721523 property:P40 ?q . ?q rdf:type ontology:Q502895 }
Pierre-François-Joseph Masclet
action count
action filter_type
action find
entity Pierre-François-Joseph Masclet
relation child
type common name
['Pierre-François-Joseph Masclet', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Pierre-François-Joseph_Masclet property:child ?q . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
3
Q2844607 Q26721517 Q11717210
(Q26721523,P40,c(Q502895))
action count
action filter_type
action find
entity Q26721523
relation P40
type Q502895
[ANSWER]
['Q26721523', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q26721523 property:P40 ?q . ?q rdf:type ontology:Q502895 }
Amé-Thérèse-Joseph Masclet Hippolyte Masclet Jean-Baptiste Masclet
3
action count
action filter_type
action find
entity Pierre-François-Joseph Masclet
relation child
type common name
['Pierre-François-Joseph Masclet', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Pierre-François-Joseph_Masclet property:child ?q . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q16798531
Q502895
USER
And how about Lomawa Ndwandwe?
(Q16798531,P40,c(Q502895))
action count
action filter_type
action find
entity Q16798531
relation P40
type Q502895
['Q16798531', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { resource:Q16798531 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Lomawa Ndwandwe
action count
action filter_type
action find
entity Lomawa Ndwandwe
relation child
type common name
['Lomawa Ndwandwe', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { resource:Lomawa_Ndwandwe property:child ?h . ?h rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q16798531,P40,c(Q502895))
action count
action filter_type
action find
entity Q16798531
relation P40
type Q502895
[ANSWER]
['Q16798531', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { resource:Q16798531 property:P40 ?h . ?h rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Lomawa Ndwandwe
relation child
type common name
['Lomawa Ndwandwe', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { resource:Lomawa_Ndwandwe property:child ?h . ?h rdf:type ontology:common_name }
[]