Simple Question (Direct)
Simple Question
Q282007
P21
Q290
USER
Which sex does Kasdi Merbah possess ?
(Q282007,P21,c(Q290))
action filter_type
action find
entity Q282007
relation P21
type Q290
['Q282007', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q282007 property:P21 ?u . ?u rdf:type ontology:Q290 }
Kasdi Merbah
action filter_type
action find
entity Kasdi Merbah
relation gender
type sex
['Kasdi Merbah', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Kasdi_Merbah property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q282007,P21,c(Q290))
action filter_type
action find
entity Q282007
relation P21
type Q290
Kasdi Merbah possesses un [ANSWER]
['Q282007', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q282007 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
Kasdi Merbah possesses un male
male
action filter_type
action find
entity Kasdi Merbah
relation gender
type sex
['Kasdi Merbah', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Kasdi_Merbah property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q282007
P1196
Q1914636
USER
Which situation led to the death of that person ?
(Q6581097,P1196,c(Q1914636))
action filter_type
action find
entity Q282007
relation P1196
type Q1914636
['Q6581097', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?b WHERE { resource:Q282007 property:P1196 ?b . ?b rdf:type ontology:Q1914636 }
Kasdi Merbah
action filter_type
action find
entity Kasdi Merbah
relation manner of death
type activity
['male', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?b WHERE { resource:Kasdi_Merbah property:manner_of_death ?b . ?b rdf:type ontology:activity }
[]
activity
Q149086
SYSTEM
homicide
Q149086
(Q6581097,P1196,c(Q1914636))
action filter_type
action find
entity Q282007
relation P1196
type Q1914636
The [ANSWER] led to the death of that person
['Q6581097', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?b WHERE { resource:Q282007 property:P1196 ?b . ?b rdf:type ontology:Q1914636 }
homicide
The homicide led to the death of that person
homicide
action filter_type
action find
entity Kasdi Merbah
relation manner of death
type activity
['male', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?b WHERE { resource:Kasdi_Merbah property:manner_of_death ?b . ?b rdf:type ontology:activity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q149086 Q6426547
P1196
Q502895
USER
Did Kokan Oyadomari die as that activity ?
(Q6426547,P1196,Q149086)
action is_in
entity Q6426547
action find
entity Q149086
relation P1196
['Q6426547', 'P1196', 'Q149086']
ASK WHERE { resource:Q149086 property:P1196 resource:Q6426547 }
homicide Kokan Oyadomari
action is_in
entity Kokan Oyadomari
action find
entity homicide
relation manner of death
['Kokan Oyadomari', 'manner of death', 'homicide']
ASK WHERE { resource:homicide property:manner_of_death resource:Kokan_Oyadomari }
[]
common name
SYSTEM
NO
(Q6426547,P1196,Q149086)
action is_in
entity Q6426547
action find
entity Q149086
relation P1196
[ANSWER]
['Q6426547', 'P1196', 'Q149086']
ASK WHERE { resource:Q149086 property:P1196 resource:Q6426547 }
No
action is_in
entity Kokan Oyadomari
action find
entity homicide
relation manner of death
['Kokan Oyadomari', 'manner of death', 'homicide']
ASK WHERE { resource:homicide property:manner_of_death resource:Kokan_Oyadomari }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q282007 Q262
P27
Q15617994
USER
Is Kasdi Merbah an inhabitant of Algeria ?
(Q282007,P27,Q262)
action is_in
entity Q262
action find
entity Q282007
relation P27
['Q282007', 'P27', 'Q262']
ASK WHERE { resource:Q282007 property:P27 resource:Q262 }
Kasdi Merbah Algeria
action is_in
entity Algeria
action find
entity Kasdi Merbah
relation country of citizenship
['Kasdi Merbah', 'country of citizenship', 'Algeria']
ASK WHERE { resource:Kasdi_Merbah property:country_of_citizenship resource:Algeria }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q282007,P27,Q262)
action is_in
entity Q262
action find
entity Q282007
relation P27
[ANSWER]
['Q282007', 'P27', 'Q262']
ASK WHERE { resource:Q282007 property:P27 resource:Q262 }
Yes
action is_in
entity Algeria
action find
entity Kasdi Merbah
relation country of citizenship
['Kasdi Merbah', 'country of citizenship', 'Algeria']
ASK WHERE { resource:Kasdi_Merbah property:country_of_citizenship resource:Algeria }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q242864
P361
Q1914636 Q13226383 Q1183543
USER
How many activities are greater number of facilities or devices a component of than Bahraini uprising ?
(c(Q13226383)|c(Q1183543),P361,c(Q1914636))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q13226383
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q1183543
action count
action filter_multi_types
action find_reverse
entity Q242864
relation P361
type Q13226383
type Q1183543
[[{'concept': 'Q13226383'}, {'concept': 'Q1183543'}], 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?t ) WHERE { { ?y property:P361 ?q . ?q rdf:type ontology:Q1914636 . ?y rdf:type ontology:Q13226383 } UNION { ?y property:P361 ?q . ?y rdf:type ontology:Q1183543 . ?q rdf:type ontology:Q1914636 } } GROUP BY ?q } . FILTER ( ?t > ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P361 resource:Q242864 . { { ?v rdf:type ontology:Q13226383 } UNION { ?v rdf:type ontology:Q1183543 } } } } }
Bahraini uprising
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type activity
type facility
action find_reverse_tuple_counts
relation part of
type activity
type device
action count
action filter_multi_types
action find_reverse
entity Bahraini uprising
relation part of
type facility
type device
[[{'concept': 'facility'}, {'concept': 'device'}], 'part of', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?t ) WHERE { { ?y property:part_of ?q . ?q rdf:type ontology:activity . ?y rdf:type ontology:facility } UNION { ?y property:part_of ?q . ?y rdf:type ontology:device . ?q rdf:type ontology:activity } } GROUP BY ?q } . FILTER ( ?t > ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:part_of resource:Bahraini_uprising . { { ?v rdf:type ontology:facility } UNION { ?v rdf:type ontology:device } } } } }
[]
activity facility device
SYSTEM
3
Q10979515 Q127050 Q1924397
(c(Q13226383)|c(Q1183543),P361,c(Q1914636))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q13226383
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q1183543
action count
action filter_multi_types
action find_reverse
entity Q242864
relation P361
type Q13226383
type Q1183543
[ANSWER]
[[{'concept': 'Q13226383'}, {'concept': 'Q1183543'}], 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?t ) WHERE { { ?y property:P361 ?q . ?q rdf:type ontology:Q1914636 . ?y rdf:type ontology:Q13226383 } UNION { ?y property:P361 ?q . ?y rdf:type ontology:Q1183543 . ?q rdf:type ontology:Q1914636 } } GROUP BY ?q } . FILTER ( ?t > ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P361 resource:Q242864 . { { ?v rdf:type ontology:Q13226383 } UNION { ?v rdf:type ontology:Q1183543 } } } } }
general economics Manhattan Project measurement technology
3
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type activity
type facility
action find_reverse_tuple_counts
relation part of
type activity
type device
action count
action filter_multi_types
action find_reverse
entity Bahraini uprising
relation part of
type facility
type device
[[{'concept': 'facility'}, {'concept': 'device'}], 'part of', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?t ) WHERE { { ?y property:part_of ?q . ?q rdf:type ontology:activity . ?y rdf:type ontology:facility } UNION { ?y property:part_of ?q . ?y rdf:type ontology:device . ?q rdf:type ontology:activity } } GROUP BY ?q } . FILTER ( ?t > ?b ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:part_of resource:Bahraini_uprising . { { ?v rdf:type ontology:facility } UNION { ?v rdf:type ontology:device } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q949180
P361
Q1914636 Q13226383 Q1183543
USER
And how about financial accounting?
(c(Q13226383)|c(Q1183543),P361,c(Q1914636))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q13226383
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q1183543
action count
action filter_multi_types
action find_reverse
entity Q949180
relation P361
type Q13226383
type Q1183543
[[{'concept': 'Q13226383'}, {'concept': 'Q1183543'}], 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:P361 resource:Q949180 . { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q13226383 ) ( ontology:Q1183543 ) } } } } . FILTER ( ?p > ?m ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?g WHERE { { ?y rdf:type ontology:Q13226383 . ?g rdf:type ontology:Q1914636 . ?y property:P361 ?g } UNION { ?g rdf:type ontology:Q1914636 . ?y rdf:type ontology:Q1183543 . ?y property:P361 ?g } } GROUP BY ?g } }
financial accounting
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type activity
type facility
action find_reverse_tuple_counts
relation part of
type activity
type device
action count
action filter_multi_types
action find_reverse
entity financial accounting
relation part of
type facility
type device
[[{'concept': 'facility'}, {'concept': 'device'}], 'part of', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:part_of resource:financial_accounting . { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:facility ) ( ontology:device ) } } } } . FILTER ( ?p > ?m ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?g WHERE { { ?y rdf:type ontology:facility . ?g rdf:type ontology:activity . ?y property:part_of ?g } UNION { ?g rdf:type ontology:activity . ?y rdf:type ontology:device . ?y property:part_of ?g } } GROUP BY ?g } }
[]
activity facility device
SYSTEM
3
Q10979515 Q127050 Q1924397
(c(Q13226383)|c(Q1183543),P361,c(Q1914636))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q13226383
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q1183543
action count
action filter_multi_types
action find_reverse
entity Q949180
relation P361
type Q13226383
type Q1183543
[ANSWER]
[[{'concept': 'Q13226383'}, {'concept': 'Q1183543'}], 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:P361 resource:Q949180 . { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q13226383 ) ( ontology:Q1183543 ) } } } } . FILTER ( ?p > ?m ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?g WHERE { { ?y rdf:type ontology:Q13226383 . ?g rdf:type ontology:Q1914636 . ?y property:P361 ?g } UNION { ?g rdf:type ontology:Q1914636 . ?y rdf:type ontology:Q1183543 . ?y property:P361 ?g } } GROUP BY ?g } }
general economics Manhattan Project measurement technology
3
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type activity
type facility
action find_reverse_tuple_counts
relation part of
type activity
type device
action count
action filter_multi_types
action find_reverse
entity financial accounting
relation part of
type facility
type device
[[{'concept': 'facility'}, {'concept': 'device'}], 'part of', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:part_of resource:financial_accounting . { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:facility ) ( ontology:device ) } } } } . FILTER ( ?p > ?m ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?g WHERE { { ?y rdf:type ontology:facility . ?g rdf:type ontology:activity . ?y property:part_of ?g } UNION { ?g rdf:type ontology:activity . ?y rdf:type ontology:device . ?y property:part_of ?g } } GROUP BY ?g } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q282007
P19
Q56061
USER
Where was Kasdi Merbah born ?
(Q282007,P19,c(Q56061))
action filter_type
action find
entity Q282007
relation P19
type Q56061
['Q282007', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q282007 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Kasdi Merbah
action filter_type
action find
entity Kasdi Merbah
relation place of birth
type administrative territorial entity
['Kasdi Merbah', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Kasdi_Merbah property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q80985
SYSTEM
Fes
Q80985
(Q282007,P19,c(Q56061))
action filter_type
action find
entity Q282007
relation P19
type Q56061
Kasdi Merbah was born in [ANSWER]
['Q282007', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q282007 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Fes
Kasdi Merbah was born in Fes
Fes
action filter_type
action find
entity Kasdi Merbah
relation place of birth
type administrative territorial entity
['Kasdi Merbah', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Kasdi_Merbah property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q282007
P106
Q12737077
USER
What is the job of Kasdi Merbah ?
(Q282007,P106,c(Q12737077))
action filter_type
action find
entity Q282007
relation P106
type Q12737077
['Q282007', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q282007 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Kasdi Merbah
action filter_type
action find
entity Kasdi Merbah
relation occupation
type occupation
['Kasdi Merbah', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Kasdi_Merbah property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q282007,P106,c(Q12737077))
action filter_type
action find
entity Q282007
relation P106
type Q12737077
The job of Kasdi Merbah is a [ANSWER]
['Q282007', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q282007 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
politician
The job of Kasdi Merbah is a politician
politician
action filter_type
action find
entity Kasdi Merbah
relation occupation
type occupation
['Kasdi Merbah', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Kasdi_Merbah property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q80985
P1376
Q7275
USER
Which states have Fes have their first city ?
(Q80985,P1376,c(Q7275))
action filter_type
action find
entity Q80985
relation P1376
type Q7275
['Q80985', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q80985 property:P1376 ?m . ?m rdf:type ontology:Q7275 }
Fes
action filter_type
action find
entity Fes
relation capital of
type state
['Fes', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:Fes property:capital_of ?m . ?m rdf:type ontology:state }
[]
state
Q582861 Q431575
SYSTEM
Marinid dynasty, Idrisid dynasty
Q582861 Q431575
(Q80985,P1376,c(Q7275))
action filter_type
action find
entity Q80985
relation P1376
type Q7275
[ANSWERS] have Fes have their first city
['Q80985', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q80985 property:P1376 ?m . ?m rdf:type ontology:Q7275 }
Marinid dynasty Idrisid dynasty
Marinid dynasty and Idrisid dynasty have Fes have their first city
Marinid dynasty Idrisid dynasty
action filter_type
action find
entity Fes
relation capital of
type state
['Fes', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:Fes property:capital_of ?m . ?m rdf:type ontology:state }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q80985
P1376
Q56061
USER
Are Fes the capital of those states ?
(Q80985,P1376,Q582861) (Q80985,P1376,Q431575)
action is_in
entity prev_answer
action find
entity Q80985
relation P1376
['Q80985', 'P1376', 'Q582861'] ['Q80985', 'P1376', 'Q431575']
ASK WHERE { VALUES ( ?i ) { ( resource:Q582861 ) ( resource:Q431575 ) } . resource:Q80985 property:P1376 ?i }
Fes
action is_in
entity prev_answer
action find
entity Fes
relation capital of
['Fes', 'capital of', 'Marinid dynasty'] ['Fes', 'capital of', 'Idrisid dynasty']
ASK WHERE { VALUES ( ?i ) { ( resource:Marinid_dynasty ) ( resource:Idrisid_dynasty ) } . resource:Fes property:capital_of ?i }
[]
administrative territorial entity
SYSTEM
YES
(Q80985,P1376,Q582861) (Q80985,P1376,Q431575)
action is_in
entity prev_answer
action find
entity Q80985
relation P1376
[ANSWER]
['Q80985', 'P1376', 'Q582861'] ['Q80985', 'P1376', 'Q431575']
ASK WHERE { VALUES ( ?i ) { ( resource:Q582861 ) ( resource:Q431575 ) } . resource:Q80985 property:P1376 ?i }
Yes
action is_in
entity prev_answer
action find
entity Fes
relation capital of
['Fes', 'capital of', 'Marinid dynasty'] ['Fes', 'capital of', 'Idrisid dynasty']
ASK WHERE { VALUES ( ?i ) { ( resource:Marinid_dynasty ) ( resource:Idrisid_dynasty ) } . resource:Fes property:capital_of ?i }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q17 Q6426547
P27 P1066
Q502895
USER
Which people are a student of Kokan Oyadomari and are a citizen of Japan ?
AND((c(Q502895),P1066,Q6426547), (c(Q502895),P27,Q17))
action filter_type
action intersection
action find_reverse
entity Q6426547
relation P1066
action find_reverse
entity Q17
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1066', 'Q6426547'], [{'concept': 'Q502895'}, 'P27', 'Q17']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . ?j property:P1066 resource:Q6426547 . ?j property:P27 resource:Q17 }
Japan Kokan Oyadomari
action filter_type
action intersection
action find_reverse
entity Kokan Oyadomari
relation student of
action find_reverse
entity Japan
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'student of', 'Kokan Oyadomari'], [{'concept': 'common name'}, 'country of citizenship', 'Japan']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . ?j property:student_of resource:Kokan_Oyadomari . ?j property:country_of_citizenship resource:Japan }
[]
common name
Q2393877
SYSTEM
Chōtoku Kyan
Q2393877
AND((c(Q502895),P1066,Q6426547), (c(Q502895),P27,Q17))
action filter_type
action intersection
action find_reverse
entity Q6426547
relation P1066
action find_reverse
entity Q17
relation P27
type Q502895
[ANSWER] is a student of Kokan Oyadomari and is a citizen of Japan
{'AND': [[{'concept': 'Q502895'}, 'P1066', 'Q6426547'], [{'concept': 'Q502895'}, 'P27', 'Q17']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . ?j property:P1066 resource:Q6426547 . ?j property:P27 resource:Q17 }
Chōtoku Kyan
Chōtoku Kyan is a student of Kokan Oyadomari and is a citizen of Japan
Chōtoku Kyan
action filter_type
action intersection
action find_reverse
entity Kokan Oyadomari
relation student of
action find_reverse
entity Japan
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'student of', 'Kokan Oyadomari'], [{'concept': 'common name'}, 'country of citizenship', 'Japan']]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . ?j property:student_of resource:Kokan_Oyadomari . ?j property:country_of_citizenship resource:Japan }
[]