Simple Question (Direct)
Simple Question
Q2622925
P102
Q7210356
USER
Which party does Michael Cullen belong to ?
(Q2622925,P102,c(Q7210356))
action filter_type
action find
entity Q2622925
relation P102
type Q7210356
['Q2622925', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q2622925 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Michael Cullen
action filter_type
action find
entity Michael Cullen
relation member of political party
type political organization
['Michael Cullen', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Michael_Cullen property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
political organization
Q1048192
SYSTEM
New Zealand Labour Party
Q1048192
(Q2622925,P102,c(Q7210356))
action filter_type
action find
entity Q2622925
relation P102
type Q7210356
Michael Cullen belongs to [ANSWER]
['Q2622925', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q2622925 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
New Zealand Labour Party
Michael Cullen belongs to New Zealand Labour Party
New Zealand Labour Party
action filter_type
action find
entity Michael Cullen
relation member of political party
type political organization
['Michael Cullen', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Michael_Cullen property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2622925
P39
Q12737077
USER
Which occupations were a position held by Michael Cullen ?
(Q2622925,P39,c(Q12737077))
action filter_type
action find
entity Q2622925
relation P39
type Q12737077
['Q2622925', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q2622925 property:P39 ?j }
Michael Cullen
action filter_type
action find
entity Michael Cullen
relation position held
type occupation
['Michael Cullen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Michael_Cullen property:position_held ?j }
[]
occupation
Q18145518 Q6866129 Q5261068
SYSTEM
Member of the New Zealand House of Representatives, New Zealand finance minister, Deputy Prime Minister of New Zealand
Q18145518 Q6866129 Q5261068
(Q2622925,P39,c(Q12737077))
action filter_type
action find
entity Q2622925
relation P39
type Q12737077
The [ANSWERS] were a position held by Michael Cullen
['Q2622925', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q2622925 property:P39 ?j }
Member of the New Zealand House of Representatives New Zealand finance minister Deputy Prime Minister of New Zealand
The Member of the New Zealand House of Representatives, New Zealand finance minister and Deputy Prime Minister of New Zealand were a position held by Michael Cullen
Member of the New Zealand House of Representatives New Zealand finance minister Deputy Prime Minister of New Zealand
action filter_type
action find
entity Michael Cullen
relation position held
type occupation
['Michael Cullen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Michael_Cullen property:position_held ?j }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1509803
Q12737077
USER
And what about Gerald Boland?
(Q1509803,P39,c(Q12737077))
action filter_type
action find
entity Q1509803
relation P39
type Q12737077
['Q1509803', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1509803 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Gerald Boland
action filter_type
action find
entity Gerald Boland
relation position held
type occupation
['Gerald Boland', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Gerald_Boland property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q6865904 Q654291 Q18043391
SYSTEM
Minister for Justice and Equality, Deputy to the Dáil, senator of Ireland
Q11781521 Q6865904 Q654291 Q6865770 Q6866341 Q18043391
(Q1509803,P39,c(Q12737077))
action filter_type
action find
entity Q1509803
relation P39
type Q12737077
[ANSWERS]
['Q1509803', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1509803 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Minister for Posts and Telegraphs Minister for Justice and Equality Deputy to the Dáil Minister for Communications, Energy and Natural Resources Minister of State at the Department of the Taoiseach senator of Ireland
Minister for Justice and Equality Deputy to the Dáil senator of Ireland
action filter_type
action find
entity Gerald Boland
relation position held
type occupation
['Gerald Boland', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Gerald_Boland property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21545450
P39
Q502895
USER
Were Pietro Matranga responsible for occupying the position of those occupations ?
(Q21545450,P39,Q6865904) (Q21545450,P39,Q654291) (Q21545450,P39,Q18043391)
action is_in
entity prev_answer
action find
entity Q21545450
relation P39
['Q21545450', 'P39', 'Q6865904'] ['Q21545450', 'P39', 'Q654291'] ['Q21545450', 'P39', 'Q18043391']
ASK WHERE { VALUES ( ?d ) { ( resource:Q11781521 ) ( resource:Q6865904 ) ( resource:Q654291 ) } . resource:Q21545450 property:P39 ?d }
Pietro Matranga
action is_in
entity prev_answer
action find
entity Pietro Matranga
relation position held
['Pietro Matranga', 'position held', 'Minister for Justice and Equality'] ['Pietro Matranga', 'position held', 'Deputy to the Dáil'] ['Pietro Matranga', 'position held', 'senator of Ireland']
ASK WHERE { VALUES ( ?d ) { ( resource:Minister_for_Posts_and_Telegraphs ) ( resource:Minister_for_Justice_and_Equality ) ( resource:Deputy_to_the_Dáil ) } . resource:Pietro_Matranga property:position_held ?d }
[]
common name
SYSTEM
NO
(Q21545450,P39,Q6865904) (Q21545450,P39,Q654291) (Q21545450,P39,Q18043391)
action is_in
entity prev_answer
action find
entity Q21545450
relation P39
[ANSWER]
['Q21545450', 'P39', 'Q6865904'] ['Q21545450', 'P39', 'Q654291'] ['Q21545450', 'P39', 'Q18043391']
ASK WHERE { VALUES ( ?d ) { ( resource:Q11781521 ) ( resource:Q6865904 ) ( resource:Q654291 ) } . resource:Q21545450 property:P39 ?d }
No
action is_in
entity prev_answer
action find
entity Pietro Matranga
relation position held
['Pietro Matranga', 'position held', 'Minister for Justice and Equality'] ['Pietro Matranga', 'position held', 'Deputy to the Dáil'] ['Pietro Matranga', 'position held', 'senator of Ireland']
ASK WHERE { VALUES ( ?d ) { ( resource:Minister_for_Posts_and_Telegraphs ) ( resource:Minister_for_Justice_and_Equality ) ( resource:Deputy_to_the_Dáil ) } . resource:Pietro_Matranga property:position_held ?d }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3413301 Q6865904
P17
Q15617994
USER
Which administrative territories are Minister for Justice and Equality or Chaumala located in ?
OR((Q6865904,P17,c(Q15617994)), (Q3413301,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6865904
relation P17
action find
entity Q3413301
relation P17
type Q15617994
{'OR': [['Q6865904', 'P17', {'concept': 'Q15617994'}], ['Q3413301', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q6865904 property:P17 ?z } UNION { resource:Q3413301 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Chaumala Minister for Justice and Equality
action filter_type
action union
action find
entity Minister for Justice and Equality
relation country
action find
entity Chaumala
relation country
type designation for an administrative territorial entity
{'OR': [['Minister for Justice and Equality', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Chaumala', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Minister_for_Justice_and_Equality property:country ?z } UNION { resource:Chaumala property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q837 Q27
SYSTEM
Nepal, Ireland
Q837 Q27
OR((Q6865904,P17,c(Q15617994)), (Q3413301,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6865904
relation P17
action find
entity Q3413301
relation P17
type Q15617994
Minister for Justice and Equality or Chaumala are located in [ANSWERS]
{'OR': [['Q6865904', 'P17', {'concept': 'Q15617994'}], ['Q3413301', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q6865904 property:P17 ?z } UNION { resource:Q3413301 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Nepal Ireland
Minister for Justice and Equality or Chaumala are located in Nepal and Ireland
Nepal Ireland
action filter_type
action union
action find
entity Minister for Justice and Equality
relation country
action find
entity Chaumala
relation country
type designation for an administrative territorial entity
{'OR': [['Minister for Justice and Equality', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Chaumala', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Minister_for_Justice_and_Equality property:country ?z } UNION { resource:Chaumala property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q285986 Q2622925
P19
Q56061
USER
Which administrative territories were Michael Cullen or Iván Marcano born at ?
OR((Q2622925,P19,c(Q56061)), (Q285986,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2622925
relation P19
action find
entity Q285986
relation P19
type Q56061
{'OR': [['Q2622925', 'P19', {'concept': 'Q56061'}], ['Q285986', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:P19 ?b . VALUES ( ?n ) { ( resource:Q2622925 ) ( resource:Q285986 ) } } . ?b rdf:type ontology:Q56061 }
Iván Marcano Michael Cullen
action filter_type
action union
action find
entity Michael Cullen
relation place of birth
action find
entity Iván Marcano
relation place of birth
type administrative territorial entity
{'OR': [['Michael Cullen', 'place of birth', {'concept': 'administrative territorial entity'}], ['Iván Marcano', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:place_of_birth ?b . VALUES ( ?n ) { ( resource:Michael_Cullen ) ( resource:Iván_Marcano ) } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84 Q12233
SYSTEM
London, Santander
Q84 Q12233
OR((Q2622925,P19,c(Q56061)), (Q285986,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2622925
relation P19
action find
entity Q285986
relation P19
type Q56061
Michael Cullen or Iván Marcano were born in [ANSWERS]
{'OR': [['Q2622925', 'P19', {'concept': 'Q56061'}], ['Q285986', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:P19 ?b . VALUES ( ?n ) { ( resource:Q2622925 ) ( resource:Q285986 ) } } . ?b rdf:type ontology:Q56061 }
London Santander
Michael Cullen or Iván Marcano were born in London and Santander
London Santander
action filter_type
action union
action find
entity Michael Cullen
relation place of birth
action find
entity Iván Marcano
relation place of birth
type administrative territorial entity
{'OR': [['Michael Cullen', 'place of birth', {'concept': 'administrative territorial entity'}], ['Iván Marcano', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:place_of_birth ?b . VALUES ( ?n ) { ( resource:Michael_Cullen ) ( resource:Iván_Marcano ) } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q84 Q12233
P17
Q15617994
USER
Which administrative territories are London and Santander located in ?
(Q84,P17,c(Q15617994)) (Q12233,P17,c(Q15617994))
action union
action filter_type
action find
entity Q84
relation P17
type Q15617994
action filter_type
action find
entity Q12233
relation P17
type Q15617994
['Q84', 'P17', {'concept': 'Q15617994'}] ['Q12233', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?u ) { ( resource:Q12233 ) ( resource:Q84 ) } . ?u property:P17 ?w }
London Santander
action union
action filter_type
action find
entity London
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Santander
relation country
type designation for an administrative territorial entity
['London', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Santander', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?u ) { ( resource:Santander ) ( resource:London ) } . ?u property:country ?w }
[]
designation for an administrative territorial entity
Q145 Q29
SYSTEM
United Kingdom, Spain
Q145 Q29
(Q84,P17,c(Q15617994)) (Q12233,P17,c(Q15617994))
action union
action filter_type
action find
entity Q84
relation P17
type Q15617994
action filter_type
action find
entity Q12233
relation P17
type Q15617994
London and Santander are located in [ANSWERS]
['Q84', 'P17', {'concept': 'Q15617994'}] ['Q12233', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?u ) { ( resource:Q12233 ) ( resource:Q84 ) } . ?u property:P17 ?w }
United Kingdom Spain
London and Santander are located in United Kingdom and Spain
United Kingdom Spain
action union
action filter_type
action find
entity London
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Santander
relation country
type designation for an administrative territorial entity
['London', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Santander', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?u ) { ( resource:Santander ) ( resource:London ) } . ?u property:country ?w }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q145 Q29
P47
Q15617994
USER
Which administrative territories have a shared border with those ones ?
(Q145,P47,c(Q15617994)) (Q29,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
['Q145', 'P47', {'concept': 'Q15617994'}] ['Q29', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?z property:P47 ?m . ?m rdf:type ontology:Q15617994 . VALUES ( ?z ) { ( resource:Q145 ) ( resource:Q29 ) } }
United Kingdom Spain
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?z property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?z ) { ( resource:United_Kingdom ) ( resource:Spain ) } }
[]
designation for an administrative territorial entity
Q142 Q142 Q45
SYSTEM
France for 1st, 2nd, Portugal for 3rd
Q142 Q717 Q27 Q142 Q45 Q1028 Q1025 Q228
(Q145,P47,c(Q15617994)) (Q29,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS]
['Q145', 'P47', {'concept': 'Q15617994'}] ['Q29', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?z property:P47 ?m . ?m rdf:type ontology:Q15617994 . VALUES ( ?z ) { ( resource:Q145 ) ( resource:Q29 ) } }
France Venezuela Ireland France Portugal Morocco Mauritania Andorra
France, France and Portugal have a shared border with those ones
France France Portugal
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?z property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?z ) { ( resource:United_Kingdom ) ( resource:Spain ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q45
P35
Q502895
USER
Who are the heads of state of that administrative territory ?
(Q45,P35,c(Q502895))
action filter_type
action find
entity Q45
relation P35
type Q502895
['Q45', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q45 property:P35 ?m . ?m rdf:type ontology:Q502895 }
Portugal
action filter_type
action find
entity Portugal
relation head of state
type common name
['Portugal', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Portugal property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q45
SYSTEM
Did you mean Portugal ?
Q142 Q142 Q45
(Q142,P35,c(Q502895)) (Q142,P35,c(Q502895)) (Q45,P35,c(Q502895))
[ANSWER]
['Q142', 'P35', {'concept': 'Q502895'}] ['Q142', 'P35', {'concept': 'Q502895'}] ['Q45', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q45 property:P35 ?m . ?m rdf:type ontology:Q502895 }
France France Portugal
Did you mean Portugal ?
Portugal
['France', 'head of state', {'concept': 'common name'}] ['France', 'head of state', {'concept': 'common name'}] ['Portugal', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Portugal property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q45,P35,c(Q502895))
['Q45', 'P35', {'concept': 'Q502895'}]
['Portugal', 'head of state', {'concept': 'common name'}]
[]
Q57398 Q156781 Q156780
SYSTEM
Aníbal Cavaco Silva, Mário Soares, Jorge Sampaio
Q57398 Q156781 Q6756617 Q156780
(Q45,P35,c(Q502895))
action filter_type
action find
entity Q45
relation P35
type Q502895
The heads of state of that administrative territory are [ANSWERS]
['Q45', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q45 property:P35 ?m . ?m rdf:type ontology:Q502895 }
Aníbal Cavaco Silva Mário Soares Marcelo Rebelo de Sousa Jorge Sampaio
The heads of state of that administrative territory are Aníbal Cavaco Silva, Mário Soares and Jorge Sampaio
Aníbal Cavaco Silva Mário Soares Jorge Sampaio
action filter_type
action find
entity Portugal
relation head of state
type common name
['Portugal', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Portugal property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]