Simple Question (Direct)
Simple Question
Q3749608
P136
Q15198957
USER
Which genre does Francesco Basili belong to ?
(Q3749608,P136,c(Q15198957))
action filter_type
action find
entity Q3749608
relation P136
type Q15198957
['Q3749608', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?g WHERE { resource:Q3749608 property:P136 ?g . ?g rdf:type ontology:Q15198957 }
Francesco Basili
action filter_type
action find
entity Francesco Basili
relation genre
type aspect of music
['Francesco Basili', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?g WHERE { resource:Francesco_Basili property:genre ?g . ?g rdf:type ontology:aspect_of_music }
[]
aspect of music
Q1344
SYSTEM
opera
Q1344
(Q3749608,P136,c(Q15198957))
action filter_type
action find
entity Q3749608
relation P136
type Q15198957
Francesco Basili belongs to [ANSWER]
['Q3749608', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?g WHERE { resource:Q3749608 property:P136 ?g . ?g rdf:type ontology:Q15198957 }
opera
Francesco Basili belongs to opera
opera
action filter_type
action find
entity Francesco Basili
relation genre
type aspect of music
['Francesco Basili', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?g WHERE { resource:Francesco_Basili property:genre ?g . ?g rdf:type ontology:aspect_of_music }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3749608
P21
Q290
USER
What is the sex of Francesco Basili ?
(Q3749608,P21,c(Q290))
action filter_type
action find
entity Q3749608
relation P21
type Q290
['Q3749608', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q3749608 property:P21 ?f . ?f rdf:type ontology:Q290 }
Francesco Basili
action filter_type
action find
entity Francesco Basili
relation gender
type sex
['Francesco Basili', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Francesco_Basili property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3749608,P21,c(Q290))
action filter_type
action find
entity Q3749608
relation P21
type Q290
The sex of Francesco Basili is the [ANSWER]
['Q3749608', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q3749608 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
The sex of Francesco Basili is the male
male
action filter_type
action find
entity Francesco Basili
relation gender
type sex
['Francesco Basili', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Francesco_Basili property:gender ?f . ?f rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q12054206
P21
Q502895
USER
Is Paul Capdevielle a that sex ?
(Q12054206,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q12054206
relation P21
['Q12054206', 'P21', 'Q6581097']
ASK WHERE { resource:Q12054206 property:P21 resource:Q6581097 }
male Paul Capdevielle
action is_in
entity male
action find
entity Paul Capdevielle
relation gender
['Paul Capdevielle', 'gender', 'male']
ASK WHERE { resource:Paul_Capdevielle property:gender resource:male }
[]
common name
SYSTEM
YES
(Q12054206,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q12054206
relation P21
[ANSWER]
['Q12054206', 'P21', 'Q6581097']
ASK WHERE { resource:Q12054206 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Paul Capdevielle
relation gender
['Paul Capdevielle', 'gender', 'male']
ASK WHERE { resource:Paul_Capdevielle property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16090524 Q3749608
P937
Q56061
USER
Which administrative territories are the work locations of Francesco Basili or Wayne Knox ?
OR((Q3749608,P937,c(Q56061)), (Q16090524,P937,c(Q56061)))
action filter_type
action union
action find
entity Q3749608
relation P937
action find
entity Q16090524
relation P937
type Q56061
{'OR': [['Q3749608', 'P937', {'concept': 'Q56061'}], ['Q16090524', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q3749608 property:P937 ?q } UNION { resource:Q16090524 property:P937 ?q } } . ?q rdf:type ontology:Q56061 }
Wayne Knox Francesco Basili
action filter_type
action union
action find
entity Francesco Basili
relation work location
action find
entity Wayne Knox
relation work location
type administrative territorial entity
{'OR': [['Francesco Basili', 'work location', {'concept': 'administrative territorial entity'}], ['Wayne Knox', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Francesco_Basili property:work_location ?q } UNION { resource:Wayne_Knox property:work_location ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q16554
SYSTEM
Berlin, Denver
Q64 Q16554
OR((Q3749608,P937,c(Q56061)), (Q16090524,P937,c(Q56061)))
action filter_type
action union
action find
entity Q3749608
relation P937
action find
entity Q16090524
relation P937
type Q56061
[ANSWERS] are the work locations of Francesco Basili or Wayne Knox
{'OR': [['Q3749608', 'P937', {'concept': 'Q56061'}], ['Q16090524', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q3749608 property:P937 ?q } UNION { resource:Q16090524 property:P937 ?q } } . ?q rdf:type ontology:Q56061 }
Berlin Denver
Berlin and Denver are the work locations of Francesco Basili or Wayne Knox
Berlin Denver
action filter_type
action union
action find
entity Francesco Basili
relation work location
action find
entity Wayne Knox
relation work location
type administrative territorial entity
{'OR': [['Francesco Basili', 'work location', {'concept': 'administrative territorial entity'}], ['Wayne Knox', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Francesco_Basili property:work_location ?q } UNION { resource:Wayne_Knox property:work_location ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4374189 Q16090524
P102
Q7210356
USER
Which political organizations do Wayne Knox or Zaruhi Postanjyan belong to ?
OR((Q16090524,P102,c(Q7210356)), (Q4374189,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q16090524
relation P102
action find
entity Q4374189
relation P102
type Q7210356
{'OR': [['Q16090524', 'P102', {'concept': 'Q7210356'}], ['Q4374189', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?y ) { ( resource:Q16090524 ) ( resource:Q4374189 ) } . ?y property:P102 ?j } . ?j rdf:type ontology:Q7210356 }
Zaruhi Postanjyan Wayne Knox
action filter_type
action union
action find
entity Wayne Knox
relation member of political party
action find
entity Zaruhi Postanjyan
relation member of political party
type political organization
{'OR': [['Wayne Knox', 'member of political party', {'concept': 'political organization'}], ['Zaruhi Postanjyan', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?y ) { ( resource:Wayne_Knox ) ( resource:Zaruhi_Postanjyan ) } . ?y property:member_of_political_party ?j } . ?j rdf:type ontology:political_organization }
[]
political organization
Q29552 Q1348278
SYSTEM
Democratic Party, Heritage
Q29552 Q1348278
OR((Q16090524,P102,c(Q7210356)), (Q4374189,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q16090524
relation P102
action find
entity Q4374189
relation P102
type Q7210356
Wayne Knox or Zaruhi Postanjyan belong to the [ANSWERS]
{'OR': [['Q16090524', 'P102', {'concept': 'Q7210356'}], ['Q4374189', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?y ) { ( resource:Q16090524 ) ( resource:Q4374189 ) } . ?y property:P102 ?j } . ?j rdf:type ontology:Q7210356 }
Democratic Party Heritage
Wayne Knox or Zaruhi Postanjyan belong to the Democratic Party and Heritage
Democratic Party Heritage
action filter_type
action union
action find
entity Wayne Knox
relation member of political party
action find
entity Zaruhi Postanjyan
relation member of political party
type political organization
{'OR': [['Wayne Knox', 'member of political party', {'concept': 'political organization'}], ['Zaruhi Postanjyan', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?y ) { ( resource:Wayne_Knox ) ( resource:Zaruhi_Postanjyan ) } . ?y property:member_of_political_party ?j } . ?j rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q29552 Q1348278
P488
Q502895
USER
Which people were the chairpersons of Democratic Party and Heritage ?
(Q29552,P488,c(Q502895)) (Q1348278,P488,c(Q502895))
action union
action filter_type
action find
entity Q29552
relation P488
type Q502895
action filter_type
action find
entity Q1348278
relation P488
type Q502895
['Q29552', 'P488', {'concept': 'Q502895'}] ['Q1348278', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?v ) { ( resource:Q29552 ) ( resource:Q1348278 ) } . ?v property:P488 ?i }
Democratic Party Heritage
action union
action filter_type
action find
entity Democratic Party
relation chairperson
type common name
action filter_type
action find
entity Heritage
relation chairperson
type common name
['Democratic Party', 'chairperson', {'concept': 'common name'}] ['Heritage', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?v ) { ( resource:Democratic_Party ) ( resource:Heritage ) } . ?v property:chairperson ?i }
[]
common name
Q50104 Q2389114
SYSTEM
Debbie Wasserman Schultz, Raffi Hovannisian
Q50104 Q2389114
(Q29552,P488,c(Q502895)) (Q1348278,P488,c(Q502895))
action union
action filter_type
action find
entity Q29552
relation P488
type Q502895
action filter_type
action find
entity Q1348278
relation P488
type Q502895
[ANSWERS] were the chairpersons of Democratic Party and Heritage
['Q29552', 'P488', {'concept': 'Q502895'}] ['Q1348278', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?v ) { ( resource:Q29552 ) ( resource:Q1348278 ) } . ?v property:P488 ?i }
Debbie Wasserman Schultz Raffi Hovannisian
Debbie Wasserman Schultz and Raffi Hovannisian were the chairpersons of Democratic Party and Heritage
Debbie Wasserman Schultz Raffi Hovannisian
action union
action filter_type
action find
entity Democratic Party
relation chairperson
type common name
action filter_type
action find
entity Heritage
relation chairperson
type common name
['Democratic Party', 'chairperson', {'concept': 'common name'}] ['Heritage', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?v ) { ( resource:Democratic_Party ) ( resource:Heritage ) } . ?v property:chairperson ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29552
P1142
Q7257
USER
Which ideologies are the political ideologies of Democratic Party ?
(Q29552,P1142,c(Q7257))
action filter_type
action find
entity Q29552
relation P1142
type Q7257
['Q29552', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?h WHERE { resource:Q29552 property:P1142 ?h . ?h rdf:type ontology:Q7257 }
Democratic Party
action filter_type
action find
entity Democratic Party
relation political ideology
type ideology
['Democratic Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?h WHERE { resource:Democratic_Party property:political_ideology ?h . ?h rdf:type ontology:ideology }
[]
ideology
Q201712 Q821102
SYSTEM
social liberalism, progressivism
Q201712 Q821102
(Q29552,P1142,c(Q7257))
action filter_type
action find
entity Q29552
relation P1142
type Q7257
Party [ANSWERS] are the political ideologies of Democratic Party
['Q29552', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?h WHERE { resource:Q29552 property:P1142 ?h . ?h rdf:type ontology:Q7257 }
social liberalism progressivism
Party social liberalism and progressivism are the political ideologies of Democratic Party
social liberalism progressivism
action filter_type
action find
entity Democratic Party
relation political ideology
type ideology
['Democratic Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?h WHERE { resource:Democratic_Party property:political_ideology ?h . ?h rdf:type ontology:ideology }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2003166
Q7257
USER
And what about People's Party?
(Q2003166,P1142,c(Q7257))
action filter_type
action find
entity Q2003166
relation P1142
type Q7257
['Q2003166', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?a WHERE { resource:Q2003166 property:P1142 ?a . ?a rdf:type ontology:Q7257 }
People's Party
action filter_type
action find
entity People's Party
relation political ideology
type ideology
["People's Party", 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?a WHERE { resource:People's_Party property:political_ideology ?a . ?a rdf:type ontology:ideology }
[]
ideology
Q492050
SYSTEM
agrarianism
Q492050
(Q2003166,P1142,c(Q7257))
action filter_type
action find
entity Q2003166
relation P1142
type Q7257
[ANSWER]
['Q2003166', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?a WHERE { resource:Q2003166 property:P1142 ?a . ?a rdf:type ontology:Q7257 }
agrarianism
agrarianism
action filter_type
action find
entity People's Party
relation political ideology
type ideology
["People's Party", 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?a WHERE { resource:People's_Party property:political_ideology ?a . ?a rdf:type ontology:ideology }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2003166
P17
Q15617994
USER
Which administrative territory is that political organization located in ?
(Q492050,P17,c(Q15617994))
action filter_type
action find
entity Q2003166
relation P17
type Q15617994
['Q492050', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q2003166 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
People's Party
action filter_type
action find
entity People's Party
relation country
type designation for an administrative territorial entity
['agrarianism', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:People's_Party property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212
SYSTEM
Ukraine
Q212
(Q492050,P17,c(Q15617994))
action filter_type
action find
entity Q2003166
relation P17
type Q15617994
That political organization is located in [ANSWER]
['Q492050', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q2003166 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Ukraine
That political organization is located in Ukraine
Ukraine
action filter_type
action find
entity People's Party
relation country
type designation for an administrative territorial entity
['agrarianism', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:People's_Party property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q212 Q5921796 Q46796
P47
Q15617994
USER
Is that administrative territory next to the border of Howell Township Public Schools and Rosenbach ?
(Q212,P47,Q5921796) (Q212,P47,Q46796)
action is_in
entity Q212
action intersection
action find_reverse
entity Q5921796
relation P47
action find_reverse
entity Q46796
relation P47
['Q212', 'P47', 'Q5921796'] ['Q212', 'P47', 'Q46796']
ASK WHERE { resource:Q212 property:P47 resource:Q5921796 . resource:Q212 property:P47 resource:Q46796 }
Ukraine Howell Township Public Schools Rosenbach
action is_in
entity Ukraine
action intersection
action find_reverse
entity Howell Township Public Schools
relation shares border with
action find_reverse
entity Rosenbach
relation shares border with
['Ukraine', 'shares border with', 'Howell Township Public Schools'] ['Ukraine', 'shares border with', 'Rosenbach']
ASK WHERE { resource:Ukraine property:shares_border_with resource:Howell_Township_Public_Schools . resource:Ukraine property:shares_border_with resource:Rosenbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q212,P47,Q5921796) (Q212,P47,Q46796)
action is_in
entity Q212
action intersection
action find_reverse
entity Q5921796
relation P47
action find_reverse
entity Q46796
relation P47
[ANSWER]
['Q212', 'P47', 'Q5921796'] ['Q212', 'P47', 'Q46796']
ASK WHERE { resource:Q212 property:P47 resource:Q5921796 . resource:Q212 property:P47 resource:Q46796 }
No
action is_in
entity Ukraine
action intersection
action find_reverse
entity Howell Township Public Schools
relation shares border with
action find_reverse
entity Rosenbach
relation shares border with
['Ukraine', 'shares border with', 'Howell Township Public Schools'] ['Ukraine', 'shares border with', 'Rosenbach']
ASK WHERE { resource:Ukraine property:shares_border_with resource:Howell_Township_Public_Schools . resource:Ukraine property:shares_border_with resource:Rosenbach }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q212
P194
Q35749
USER
Which parliament is the representative body for Ukraine ?
action filter_type
action find
entity Q212
relation P194
type Q35749
SELECT DISTINCT ?q WHERE { resource:Q212 property:P194 ?q . ?q rdf:type ontology:Q35749 }
Ukraine
action filter_type
action find
entity Ukraine
relation legislative body
type parliament
SELECT DISTINCT ?q WHERE { resource:Ukraine property:legislative_body ?q . ?q rdf:type ontology:parliament }
[]
parliament
Q176296
SYSTEM
Verkhovna Rada
Q176296
action filter_type
action find
entity Q212
relation P194
type Q35749
Rada [ANSWER] is the representative body for Ukraine
SELECT DISTINCT ?q WHERE { resource:Q212 property:P194 ?q . ?q rdf:type ontology:Q35749 }
Verkhovna Rada
Rada Verkhovna Rada is the representative body for Ukraine
Verkhovna Rada
action filter_type
action find
entity Ukraine
relation legislative body
type parliament
SELECT DISTINCT ?q WHERE { resource:Ukraine property:legislative_body ?q . ?q rdf:type ontology:parliament }
[]