Simple Question (Direct)
Simple Question
Q5293312
P106
Q12737077
USER
Which occupation has Don Perata as his/her 's career ?
(Q5293312,P106,c(Q12737077))
action filter_type
action find
entity Q5293312
relation P106
type Q12737077
['Q5293312', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q5293312 property:P106 ?b }
Don Perata
action filter_type
action find
entity Don Perata
relation occupation
type occupation
['Don Perata', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Don_Perata property:occupation ?b }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5293312,P106,c(Q12737077))
action filter_type
action find
entity Q5293312
relation P106
type Q12737077
The [ANSWER] has Don Perata as his/her 's career
['Q5293312', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q5293312 property:P106 ?b }
politician
The politician has Don Perata as his/her 's career
politician
action filter_type
action find
entity Don Perata
relation occupation
type occupation
['Don Perata', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Don_Perata property:occupation ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5293312
P39
Q12737077
USER
Which occupations were a position held by that person ?
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q5293312
relation P39
type Q12737077
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q5293312 property:P39 ?s }
Don Perata
action filter_type
action find
entity Don Perata
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Don_Perata property:position_held ?s }
[]
occupation
Q19690441 Q18180908
SYSTEM
member of the State Senate of California, member of the California State Assembly
Q19690441 Q18180908
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q5293312
relation P39
type Q12737077
A [ANSWERS] were a position held by that person
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q5293312 property:P39 ?s }
member of the State Senate of California member of the California State Assembly
A member of the State Senate of California and member of the California State Assembly were a position held by that person
member of the State Senate of California member of the California State Assembly
action filter_type
action find
entity Don Perata
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Don_Perata property:position_held ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5293312
P102
Q7210356
USER
Which political organization is Don Perata a member of ?
(Q5293312,P102,c(Q7210356))
action filter_type
action find
entity Q5293312
relation P102
type Q7210356
['Q5293312', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q5293312 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Don Perata
action filter_type
action find
entity Don Perata
relation member of political party
type political organization
['Don Perata', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Don_Perata property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q5293312,P102,c(Q7210356))
action filter_type
action find
entity Q5293312
relation P102
type Q7210356
The [ANSWER] is Don Perata a member of
['Q5293312', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q5293312 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Democratic Party
The Democratic Party is Don Perata a member of
Democratic Party
action filter_type
action find
entity Don Perata
relation member of political party
type political organization
['Don Perata', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Don_Perata property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6989217
Q7210356
USER
And what about Neil Riser?
(Q6989217,P102,c(Q7210356))
action filter_type
action find
entity Q6989217
relation P102
type Q7210356
['Q6989217', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q6989217 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Neil Riser
action filter_type
action find
entity Neil Riser
relation member of political party
type political organization
['Neil Riser', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Neil_Riser property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q6989217,P102,c(Q7210356))
action filter_type
action find
entity Q6989217
relation P102
type Q7210356
[ANSWER]
['Q6989217', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q6989217 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Republican Party
Republican Party
action filter_type
action find
entity Neil Riser
relation member of political party
type political organization
['Neil Riser', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Neil_Riser property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q29468 Q61 Q7684740
P159
Q56061
USER
Does Republican Party have its HQ location at Washington, D.C. and Tapouenta ?
(Q29468,P159,Q61) (Q29468,P159,Q7684740)
action is_in
entity Q29468
action intersection
action find_reverse
entity Q61
relation P159
action find_reverse
entity Q7684740
relation P159
['Q29468', 'P159', 'Q61'] ['Q29468', 'P159', 'Q7684740']
ASK WHERE { resource:Q29468 property:P159 resource:Q61 . resource:Q29468 property:P159 resource:Q7684740 }
Republican Party Washington, D.C. Tapouenta
action is_in
entity Republican Party
action intersection
action find_reverse
entity Washington, D.C.
relation headquarters location
action find_reverse
entity Tapouenta
relation headquarters location
['Republican Party', 'headquarters location', 'Washington, D.C.'] ['Republican Party', 'headquarters location', 'Tapouenta']
ASK WHERE { resource:Republican_Party property:headquarters_location resource:Washington,_D.C. . resource:Republican_Party property:headquarters_location resource:Tapouenta }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q29468,P159,Q61) (Q29468,P159,Q7684740)
action is_in
entity Q29468
action intersection
action find_reverse
entity Q61
relation P159
action find_reverse
entity Q7684740
relation P159
[ANSWER]
['Q29468', 'P159', 'Q61'] ['Q29468', 'P159', 'Q7684740']
ASK WHERE { resource:Q29468 property:P159 resource:Q61 . resource:Q29468 property:P159 resource:Q7684740 }
YES and NO respectively
action is_in
entity Republican Party
action intersection
action find_reverse
entity Washington, D.C.
relation headquarters location
action find_reverse
entity Tapouenta
relation headquarters location
['Republican Party', 'headquarters location', 'Washington, D.C.'] ['Republican Party', 'headquarters location', 'Tapouenta']
ASK WHERE { resource:Republican_Party property:headquarters_location resource:Washington,_D.C. . resource:Republican_Party property:headquarters_location resource:Tapouenta }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9015776 Q6989217
P27
Q15617994
USER
Which administrative territories are Neil Riser or Juan Martagón Romero an inhabitant of ?
OR((Q6989217,P27,c(Q15617994)), (Q9015776,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6989217
relation P27
action find
entity Q9015776
relation P27
type Q15617994
{'OR': [['Q6989217', 'P27', {'concept': 'Q15617994'}], ['Q9015776', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?b ) { ( resource:Q9015776 ) ( resource:Q6989217 ) } . ?b property:P27 ?p } . ?p rdf:type ontology:Q15617994 }
Juan Martagón Romero Neil Riser
action filter_type
action union
action find
entity Neil Riser
relation country of citizenship
action find
entity Juan Martagón Romero
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Neil Riser', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Juan Martagón Romero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?b ) { ( resource:Juan_Martagón_Romero ) ( resource:Neil_Riser ) } . ?b property:country_of_citizenship ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q30
SYSTEM
Spain, United States of America
Q29 Q30
OR((Q6989217,P27,c(Q15617994)), (Q9015776,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6989217
relation P27
action find
entity Q9015776
relation P27
type Q15617994
[ANSWERS] are Neil Riser or Juan Martagón Romero an inhabitant of
{'OR': [['Q6989217', 'P27', {'concept': 'Q15617994'}], ['Q9015776', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?b ) { ( resource:Q9015776 ) ( resource:Q6989217 ) } . ?b property:P27 ?p } . ?p rdf:type ontology:Q15617994 }
Spain United States of America
Spain and United States of America are Neil Riser or Juan Martagón Romero an inhabitant of
Spain United States of America
action filter_type
action union
action find
entity Neil Riser
relation country of citizenship
action find
entity Juan Martagón Romero
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Neil Riser', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Juan Martagón Romero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?b ) { ( resource:Juan_Martagón_Romero ) ( resource:Neil_Riser ) } . ?b property:country_of_citizenship ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10280936 Q5293312
P27
Q15617994
USER
Which administrative territories do Don Perata or Feliciano José Rodrigues de Araújo Prates belong to ?
OR((Q5293312,P27,c(Q15617994)), (Q10280936,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5293312
relation P27
action find
entity Q10280936
relation P27
type Q15617994
{'OR': [['Q5293312', 'P27', {'concept': 'Q15617994'}], ['Q10280936', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q5293312 property:P27 ?z } UNION { resource:Q10280936 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Feliciano José Rodrigues de Araújo Prates Don Perata
action filter_type
action union
action find
entity Don Perata
relation country of citizenship
action find
entity Feliciano José Rodrigues de Araújo Prates
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Don Perata', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Feliciano José Rodrigues de Araújo Prates', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Don_Perata property:country_of_citizenship ?z } UNION { resource:Feliciano_José_Rodrigues_de_Araújo_Prates property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q30
SYSTEM
Brazil, United States of America
Q155 Q30
OR((Q5293312,P27,c(Q15617994)), (Q10280936,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5293312
relation P27
action find
entity Q10280936
relation P27
type Q15617994
[ANSWERS] Don Perata or Feliciano José Rodrigues de Araújo Prates belong to
{'OR': [['Q5293312', 'P27', {'concept': 'Q15617994'}], ['Q10280936', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q5293312 property:P27 ?z } UNION { resource:Q10280936 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Brazil United States of America
Brazil and United States of America Don Perata or Feliciano José Rodrigues de Araújo Prates belong to
Brazil United States of America
action filter_type
action union
action find
entity Don Perata
relation country of citizenship
action find
entity Feliciano José Rodrigues de Araújo Prates
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Don Perata', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Feliciano José Rodrigues de Araújo Prates', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Don_Perata property:country_of_citizenship ?z } UNION { resource:Feliciano_José_Rodrigues_de_Araújo_Prates property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16939909
P27
Q502895
USER
Are Cleodes Maria Piazza Julio Ribeiro a native of those administrative territories ?
(Q16939909,P27,Q155) (Q16939909,P27,Q30)
action is_in
entity prev_answer
action find
entity Q16939909
relation P27
['Q16939909', 'P27', 'Q155'] ['Q16939909', 'P27', 'Q30']
ASK WHERE { VALUES ( ?c ) { ( resource:Q155 ) ( resource:Q30 ) } . resource:Q16939909 property:P27 ?c }
Cleodes Maria Piazza Julio Ribeiro
action is_in
entity prev_answer
action find
entity Cleodes Maria Piazza Julio Ribeiro
relation country of citizenship
['Cleodes Maria Piazza Julio Ribeiro', 'country of citizenship', 'Brazil'] ['Cleodes Maria Piazza Julio Ribeiro', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?c ) { ( resource:Brazil ) ( resource:United_States_of_America ) } . resource:Cleodes_Maria_Piazza_Julio_Ribeiro property:country_of_citizenship ?c }
[]
common name
SYSTEM
NO
(Q16939909,P27,Q155) (Q16939909,P27,Q30)
action is_in
entity prev_answer
action find
entity Q16939909
relation P27
[ANSWER]
['Q16939909', 'P27', 'Q155'] ['Q16939909', 'P27', 'Q30']
ASK WHERE { VALUES ( ?c ) { ( resource:Q155 ) ( resource:Q30 ) } . resource:Q16939909 property:P27 ?c }
No
action is_in
entity prev_answer
action find
entity Cleodes Maria Piazza Julio Ribeiro
relation country of citizenship
['Cleodes Maria Piazza Julio Ribeiro', 'country of citizenship', 'Brazil'] ['Cleodes Maria Piazza Julio Ribeiro', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?c ) { ( resource:Brazil ) ( resource:United_States_of_America ) } . resource:Cleodes_Maria_Piazza_Julio_Ribeiro property:country_of_citizenship ?c }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q184 Q6989217
P530 P27
Q15617994
USER
Which administrative territories are the native countriesof Neil Riser and have diplomatic relations with Belarus ?
AND((Q6989217,P27,c(Q15617994)), (Q184,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6989217
relation P27
action find
entity Q184
relation P530
type Q15617994
{'AND': [['Q6989217', 'P27', {'concept': 'Q15617994'}], ['Q184', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q6989217 property:P27 ?p . resource:Q184 property:P530 ?p . ?p rdf:type ontology:Q15617994 }
Belarus Neil Riser
action filter_type
action intersection
action find
entity Neil Riser
relation country of citizenship
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Neil Riser', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Neil_Riser property:country_of_citizenship ?p . resource:Belarus property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q6989217,P27,c(Q15617994)), (Q184,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6989217
relation P27
action find
entity Q184
relation P530
type Q15617994
[ANSWER] is the native countriesof Neil Riser and have diplomatic relations with Belarus
{'AND': [['Q6989217', 'P27', {'concept': 'Q15617994'}], ['Q184', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q6989217 property:P27 ?p . resource:Q184 property:P530 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
United States of America is the native countriesof Neil Riser and have diplomatic relations with Belarus
United States of America
action filter_type
action intersection
action find
entity Neil Riser
relation country of citizenship
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Neil Riser', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:Neil_Riser property:country_of_citizenship ?p . resource:Belarus property:diplomatic_relation ?p . ?p 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
Q30 Q9696 Q11477863
P6
Q502895
USER
Does that administrative territory have John F. Kennedy and Akira Kawahara as its administrative leader ?
(Q30,P6,Q9696) (Q30,P6,Q11477863)
action is_in
entity Q30
action intersection
action find_reverse
entity Q9696
relation P6
action find_reverse
entity Q11477863
relation P6
['Q30', 'P6', 'Q9696'] ['Q30', 'P6', 'Q11477863']
ASK WHERE { resource:Q30 property:P6 resource:Q11477863 . resource:Q30 property:P6 resource:Q9696 }
United States of America John F. Kennedy Akira Kawahara
action is_in
entity United States of America
action intersection
action find_reverse
entity John F. Kennedy
relation head of government
action find_reverse
entity Akira Kawahara
relation head of government
['United States of America', 'head of government', 'John F. Kennedy'] ['United States of America', 'head of government', 'Akira Kawahara']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Akira_Kawahara . resource:United_States_of_America property:head_of_government resource:John_F._Kennedy }
[]
common name
SYSTEM
YES and NO respectively
(Q30,P6,Q9696) (Q30,P6,Q11477863)
action is_in
entity Q30
action intersection
action find_reverse
entity Q9696
relation P6
action find_reverse
entity Q11477863
relation P6
[ANSWER]
['Q30', 'P6', 'Q9696'] ['Q30', 'P6', 'Q11477863']
ASK WHERE { resource:Q30 property:P6 resource:Q11477863 . resource:Q30 property:P6 resource:Q9696 }
YES and NO respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity John F. Kennedy
relation head of government
action find_reverse
entity Akira Kawahara
relation head of government
['United States of America', 'head of government', 'John F. Kennedy'] ['United States of America', 'head of government', 'Akira Kawahara']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Akira_Kawahara . resource:United_States_of_America property:head_of_government resource:John_F._Kennedy }
[]