Simple Question (Direct)
Simple Question
Q11587488
P102
Q7210356
USER
Which political organization is Shigemasa Sunada a member of ?
(Q11587488,P102,c(Q7210356))
action filter_type
action find
entity Q11587488
relation P102
type Q7210356
['Q11587488', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q11587488 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Shigemasa Sunada
action filter_type
action find
entity Shigemasa Sunada
relation member of political party
type political organization
['Shigemasa Sunada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Shigemasa_Sunada property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
political organization
Q232595
SYSTEM
Liberal Democratic Party
Q232595
(Q11587488,P102,c(Q7210356))
action filter_type
action find
entity Q11587488
relation P102
type Q7210356
Party [ANSWER] is Shigemasa Sunada a member of
['Q11587488', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q11587488 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Liberal Democratic Party
Party Liberal Democratic Party is Shigemasa Sunada a member of
Liberal Democratic Party
action filter_type
action find
entity Shigemasa Sunada
relation member of political party
type political organization
['Shigemasa Sunada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Shigemasa_Sunada property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q232595 Q17
P17
Q15617994
USER
Is that political organization present in Japan ?
(Q232595,P17,Q17)
action is_in
entity Q17
action find
entity Q232595
relation P17
['Q232595', 'P17', 'Q17']
ASK WHERE { resource:Q232595 property:P17 resource:Q17 }
Liberal Democratic Party Japan
action is_in
entity Japan
action find
entity Liberal Democratic Party
relation country
['Liberal Democratic Party', 'country', 'Japan']
ASK WHERE { resource:Liberal_Democratic_Party property:country resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q232595,P17,Q17)
action is_in
entity Q17
action find
entity Q232595
relation P17
[ANSWER]
['Q232595', 'P17', 'Q17']
ASK WHERE { resource:Q232595 property:P17 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity Liberal Democratic Party
relation country
['Liberal Democratic Party', 'country', 'Japan']
ASK WHERE { resource:Liberal_Democratic_Party property:country resource:Japan }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q232595
P1142
Q1047113
USER
Which special field is the political ideology of Liberal Democratic Party ?
(Q232595,P1142,c(Q1047113))
action filter_type
action find
entity Q232595
relation P1142
type Q1047113
['Q232595', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q232595 property:P1142 ?x . ?x rdf:type ontology:Q1047113 }
Liberal Democratic Party
action filter_type
action find
entity Liberal Democratic Party
relation political ideology
type special field
['Liberal Democratic Party', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:Liberal_Democratic_Party property:political_ideology ?x . ?x rdf:type ontology:special_field }
[]
special field
Q7169
SYSTEM
conservatism
Q7169
(Q232595,P1142,c(Q1047113))
action filter_type
action find
entity Q232595
relation P1142
type Q1047113
Party [ANSWER] is the political ideology of Liberal Democratic Party
['Q232595', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q232595 property:P1142 ?x . ?x rdf:type ontology:Q1047113 }
conservatism
Party conservatism is the political ideology of Liberal Democratic Party
conservatism
action filter_type
action find
entity Liberal Democratic Party
relation political ideology
type special field
['Liberal Democratic Party', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:Liberal_Democratic_Party property:political_ideology ?x . ?x rdf:type ontology:special_field }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1641143
Q1047113
USER
And how about Freedom Egypt Party?
(Q1641143,P1142,c(Q1047113))
action filter_type
action find
entity Q1641143
relation P1142
type Q1047113
['Q1641143', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1047113 . resource:Q1641143 property:P1142 ?f }
Freedom Egypt Party
action filter_type
action find
entity Freedom Egypt Party
relation political ideology
type special field
['Freedom Egypt Party', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:special_field . resource:Freedom_Egypt_Party property:political_ideology ?f }
[]
special field
Q6216
SYSTEM
liberalism
Q6216
(Q1641143,P1142,c(Q1047113))
action filter_type
action find
entity Q1641143
relation P1142
type Q1047113
[ANSWER]
['Q1641143', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1047113 . resource:Q1641143 property:P1142 ?f }
liberalism
liberalism
action filter_type
action find
entity Freedom Egypt Party
relation political ideology
type special field
['Freedom Egypt Party', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:special_field . resource:Freedom_Egypt_Party property:political_ideology ?f }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P101
Q1047113 Q43229
USER
How many special fields are the area of less number of organizations than that special field ?
(c(Q43229),P101,c(Q1047113))
action count
action less
action find_tuple_counts
relation P101
type Q1047113
type Q43229
action count
action filter_type
action find
entity Q6216
relation P101
type Q1047113
[{'concept': 'Q43229'}, 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?l ) WHERE { ?a property:P101 ?q . ?a rdf:type ontology:Q1047113 . ?q rdf:type ontology:Q43229 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Q6216 property:P101 ?r . ?r rdf:type ontology:Q1047113 } } . FILTER ( ?l < ?k ) }
action count
action less
action find_tuple_counts
relation field of work
type special field
type organization
action count
action filter_type
action find
entity liberalism
relation field of work
type special field
[{'concept': 'organization'}, 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?l ) WHERE { ?a property:field_of_work ?q . ?a rdf:type ontology:special_field . ?q rdf:type ontology:organization } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:liberalism property:field_of_work ?r . ?r rdf:type ontology:special_field } } . FILTER ( ?l < ?k ) }
[]
special field organization
SYSTEM
0
(c(Q43229),P101,c(Q1047113))
action count
action less
action find_tuple_counts
relation P101
type Q1047113
type Q43229
action count
action filter_type
action find
entity Q6216
relation P101
type Q1047113
[ANSWER]
[{'concept': 'Q43229'}, 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?l ) WHERE { ?a property:P101 ?q . ?a rdf:type ontology:Q1047113 . ?q rdf:type ontology:Q43229 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Q6216 property:P101 ?r . ?r rdf:type ontology:Q1047113 } } . FILTER ( ?l < ?k ) }
0
action count
action less
action find_tuple_counts
relation field of work
type special field
type organization
action count
action filter_type
action find
entity liberalism
relation field of work
type special field
[{'concept': 'organization'}, 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?l ) WHERE { ?a property:field_of_work ?q . ?a rdf:type ontology:special_field . ?q rdf:type ontology:organization } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:liberalism property:field_of_work ?r . ?r rdf:type ontology:special_field } } . FILTER ( ?l < ?k ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q232595 Q647543
P17
Q15617994
USER
How many administrative territories do Liberal Democratic Party or Arrecife belong to ?
(Q232595,P17,c(Q15617994)) (Q647543,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q232595
relation P17
type Q15617994
action filter_type
action find
entity Q647543
relation P17
type Q15617994
['Q232595', 'P17', {'concept': 'Q15617994'}] ['Q647543', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { VALUES ( ?k ) { ( resource:Q232595 ) ( resource:Q647543 ) } . ?k property:P17 ?x }
Liberal Democratic Party Arrecife
action count
action union
action filter_type
action find
entity Liberal Democratic Party
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Arrecife
relation country
type designation for an administrative territorial entity
['Liberal Democratic Party', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Arrecife', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { VALUES ( ?k ) { ( resource:Liberal_Democratic_Party ) ( resource:Arrecife ) } . ?k property:country ?x }
[]
designation for an administrative territorial entity
SYSTEM
2
Q29 Q17
(Q232595,P17,c(Q15617994)) (Q647543,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q232595
relation P17
type Q15617994
action filter_type
action find
entity Q647543
relation P17
type Q15617994
[ANSWER]
['Q232595', 'P17', {'concept': 'Q15617994'}] ['Q647543', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { VALUES ( ?k ) { ( resource:Q232595 ) ( resource:Q647543 ) } . ?k property:P17 ?x }
Spain Japan
2
action count
action union
action filter_type
action find
entity Liberal Democratic Party
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Arrecife
relation country
type designation for an administrative territorial entity
['Liberal Democratic Party', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Arrecife', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { VALUES ( ?k ) { ( resource:Liberal_Democratic_Party ) ( resource:Arrecife ) } . ?k property:country ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11587488
P21
Q290
USER
What is the sex of Shigemasa Sunada ?
(Q11587488,P21,c(Q290))
action filter_type
action find
entity Q11587488
relation P21
type Q290
['Q11587488', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q11587488 property:P21 ?z . ?z rdf:type ontology:Q290 }
Shigemasa Sunada
action filter_type
action find
entity Shigemasa Sunada
relation gender
type sex
['Shigemasa Sunada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Shigemasa_Sunada property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11587488,P21,c(Q290))
action filter_type
action find
entity Q11587488
relation P21
type Q290
The sex of Shigemasa Sunada is the [ANSWER]
['Q11587488', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q11587488 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
The sex of Shigemasa Sunada is the male
male
action filter_type
action find
entity Shigemasa Sunada
relation gender
type sex
['Shigemasa Sunada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Shigemasa_Sunada property:gender ?z . ?z rdf:type ontology:sex }
[]