Simple Question (Direct)
Simple Question
Q6130192
P102
Q7210356
USER
Which party does James Breen belong to ?
(Q6130192,P102,c(Q7210356))
action filter_type
action find
entity Q6130192
relation P102
type Q7210356
['Q6130192', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q6130192 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
James Breen
action filter_type
action find
entity James Breen
relation member of political party
type political organization
['James Breen', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:James_Breen property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q216517
SYSTEM
Fianna Fáil
Q216517
(Q6130192,P102,c(Q7210356))
action filter_type
action find
entity Q6130192
relation P102
type Q7210356
James Breen belongs to [ANSWER]
['Q6130192', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q6130192 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Fianna Fáil
James Breen belongs to Fianna Fáil
Fianna Fáil
action filter_type
action find
entity James Breen
relation member of political party
type political organization
['James Breen', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:James_Breen property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q216517
P17
Q15617994
USER
Which administrative territory is that political organization a part of ?
(Q216517,P17,c(Q15617994))
action filter_type
action find
entity Q216517
relation P17
type Q15617994
['Q216517', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q216517 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Fianna Fáil
action filter_type
action find
entity Fianna Fáil
relation country
type designation for an administrative territorial entity
['Fianna Fáil', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Fianna_Fáil property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q27
SYSTEM
Ireland
Q27
(Q216517,P17,c(Q15617994))
action filter_type
action find
entity Q216517
relation P17
type Q15617994
[ANSWER] is that political organization a part of
['Q216517', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q216517 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Ireland
Ireland is that political organization a part of
Ireland
action filter_type
action find
entity Fianna Fáil
relation country
type designation for an administrative territorial entity
['Fianna Fáil', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Fianna_Fáil property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q27 Q12308857
P27
Q502895
USER
Is Dorte Fals a citizen of that administrative territory ?
(Q12308857,P27,Q27)
action is_in
entity Q12308857
action find
entity Q27
relation P27
['Q12308857', 'P27', 'Q27']
ASK WHERE { resource:Q27 property:P27 resource:Q12308857 }
Ireland Dorte Fals
action is_in
entity Dorte Fals
action find
entity Ireland
relation country of citizenship
['Dorte Fals', 'country of citizenship', 'Ireland']
ASK WHERE { resource:Ireland property:country_of_citizenship resource:Dorte_Fals }
[]
common name
SYSTEM
NO
(Q12308857,P27,Q27)
action is_in
entity Q12308857
action find
entity Q27
relation P27
[ANSWER]
['Q12308857', 'P27', 'Q27']
ASK WHERE { resource:Q27 property:P27 resource:Q12308857 }
No
action is_in
entity Dorte Fals
action find
entity Ireland
relation country of citizenship
['Dorte Fals', 'country of citizenship', 'Ireland']
ASK WHERE { resource:Ireland property:country_of_citizenship resource:Dorte_Fals }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q216517 Q1761 Q461020
P159
Q515
USER
Does Fianna Fáil have headquarters located at Dublin and Imabari ?
(Q216517,P159,Q1761) (Q216517,P159,Q461020)
action is_in
entity Q216517
action intersection
action find_reverse
entity Q1761
relation P159
action find_reverse
entity Q461020
relation P159
['Q216517', 'P159', 'Q1761'] ['Q216517', 'P159', 'Q461020']
ASK WHERE { resource:Q216517 property:P159 resource:Q1761 . resource:Q216517 property:P159 resource:Q461020 }
Fianna Fáil Dublin Imabari
action is_in
entity Fianna Fáil
action intersection
action find_reverse
entity Dublin
relation headquarters location
action find_reverse
entity Imabari
relation headquarters location
['Fianna Fáil', 'headquarters location', 'Dublin'] ['Fianna Fáil', 'headquarters location', 'Imabari']
ASK WHERE { resource:Fianna_Fáil property:headquarters_location resource:Dublin . resource:Fianna_Fáil property:headquarters_location resource:Imabari }
[]
city
SYSTEM
YES and NO respectively
(Q216517,P159,Q1761) (Q216517,P159,Q461020)
action is_in
entity Q216517
action intersection
action find_reverse
entity Q1761
relation P159
action find_reverse
entity Q461020
relation P159
[ANSWER]
['Q216517', 'P159', 'Q1761'] ['Q216517', 'P159', 'Q461020']
ASK WHERE { resource:Q216517 property:P159 resource:Q1761 . resource:Q216517 property:P159 resource:Q461020 }
YES and NO respectively
action is_in
entity Fianna Fáil
action intersection
action find_reverse
entity Dublin
relation headquarters location
action find_reverse
entity Imabari
relation headquarters location
['Fianna Fáil', 'headquarters location', 'Dublin'] ['Fianna Fáil', 'headquarters location', 'Imabari']
ASK WHERE { resource:Fianna_Fáil property:headquarters_location resource:Dublin . resource:Fianna_Fáil property:headquarters_location resource:Imabari }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q27
P1001
Q12737077
USER
Which occupations have control over the jurisdiction of Ireland ?
(c(Q12737077),P1001,Q27)
action filter_type
action find_reverse
entity Q27
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q27']
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q27 . ?c rdf:type ontology:Q12737077 }
Ireland
action filter_type
action find_reverse
entity Ireland
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Ireland']
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:Ireland . ?c rdf:type ontology:occupation }
[]
occupation
Q1052201 Q4294945 Q6865816
SYSTEM
Ceann Comhairle, Minister for Finance, Minister for Education and Skills
Q6866004 Q7557767 Q6865816 Q6865958 Q932991 Q6865853 Q6865750 Q213702 Q467926 Q1052201 Q1146214 Q2962019 Q6865981 Q191827 Q6866337 Q6865904 Q6866339 Q6866014 Q6865902 Q6865764 Q6865864 Q5096840 Q654291 Q23308552 Q4294945 Q6866341 Q6866369 Q18043391 Q6865781 Q6508580
(c(Q12737077),P1001,Q27)
action filter_type
action find_reverse
entity Q27
relation P1001
type Q12737077
[ANSWERS] have control over the jurisdiction of Ireland
[{'concept': 'Q12737077'}, 'P1001', 'Q27']
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q27 . ?c rdf:type ontology:Q12737077 }
Minister for the Environment, Community and Local Government Solicitor-General for Ireland Minister for Education and Skills Minister for Social Protection Minister for Labour Minister for Foreign Affairs and Trade Minister for Agriculture, Food and the Marine President of Ireland Cathaoirleach Ceann Comhairle Tánaiste Leader of the Opposition Minister for Transport, Tourism and Sport Taoiseach Minister of State at the Department of Finance Minister for Justice and Equality Minister of State for Children Minister for the Public Service Minister for Jobs, Enterprise and Innovation Minister for Communications Minister for Health Chief Medical Officer Deputy to the Dáil Minister of State for Housing and Planning Minister for Finance Minister of State at the Department of the Taoiseach Minister of State for Overseas Development senator of Ireland Minister for Defence Leader of the Seanad
Ceann Comhairle, Minister for Finance and Minister for Education and Skills have control over the jurisdiction of Ireland
Ceann Comhairle Minister for Finance Minister for Education and Skills
action filter_type
action find_reverse
entity Ireland
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Ireland']
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:Ireland . ?c rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4294945
P39
Q502895
USER
Who held the position of that occupation ?
(c(Q502895),P39,Q4294945)
action filter_type
action find_reverse
entity Q4294945
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q4294945']
SELECT DISTINCT ?u WHERE { ?u property:P39 resource:Q4294945 . ?u rdf:type ontology:Q502895 }
Minister for Finance
action filter_type
action find_reverse
entity Minister for Finance
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Minister for Finance']
SELECT DISTINCT ?u WHERE { ?u property:position_held resource:Minister_for_Finance . ?u rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1052201
SYSTEM
Did you mean Ceann Comhairle ?
Q1052201 Q4294945 Q6865816
(c(Q502895),P39,Q1052201) (c(Q502895),P39,Q4294945) (c(Q502895),P39,Q6865816)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q1052201'] [{'concept': 'Q502895'}, 'P39', 'Q4294945'] [{'concept': 'Q502895'}, 'P39', 'Q6865816']
SELECT DISTINCT ?u WHERE { ?u property:P39 resource:Q4294945 . ?u rdf:type ontology:Q502895 }
Ceann Comhairle Minister for Finance Minister for Education and Skills
Did you mean Ceann Comhairle ?
Ceann Comhairle
[{'concept': 'common name'}, 'position held', 'Ceann Comhairle'] [{'concept': 'common name'}, 'position held', 'Minister for Finance'] [{'concept': 'common name'}, 'position held', 'Minister for Education and Skills']
SELECT DISTINCT ?u WHERE { ?u property:position_held resource:Minister_for_Finance . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Minister for Finance. Could you tell me the answer for that?
(c(Q502895),P39,Q4294945)
Q4294945
[{'concept': 'Q502895'}, 'P39', 'Q4294945']
[{'concept': 'common name'}, 'position held', 'Minister for Finance']
[]
Q333735 Q964365 Q173196
SYSTEM
Charles Haughey, Seán MacEntee, Michael Collins
Q1501385 Q1356246 Q964365 Q1346298 Q454149 Q1390688 Q303304 Q333735 Q185272 Q380182 Q173196 Q2038800 Q1510184 Q333701 Q1388454 Q381681 Q1507132 Q202245
(c(Q502895),P39,Q4294945)
action filter_type
action find_reverse
entity Q4294945
relation P39
type Q502895
[ANSWERS] held the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q4294945']
SELECT DISTINCT ?u WHERE { ?u property:P39 resource:Q4294945 . ?u rdf:type ontology:Q502895 }
Gene Fitzgerald Ernest Blythe Seán MacEntee Eoin MacNeill Alan Dukes Michael Noonan Charlie McCreevy Charles Haughey Brian Cowen Albert Reynolds Michael Collins Ruairi Quinn Gerard Sweetman John Bruton Ray MacSharry Jack Lynch George Colley James Ryan
Charles Haughey, Seán MacEntee and Michael Collins held the position of that occupation
Charles Haughey Seán MacEntee Michael Collins
action filter_type
action find_reverse
entity Minister for Finance
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Minister for Finance']
SELECT DISTINCT ?u WHERE { ?u property:position_held resource:Minister_for_Finance . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P825
Q502895 Q7725634 Q207628
USER
Which people are around 1 literary works and musical compositions dedicated to ?
(c(Q7725634)|c(Q207628),P825,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
value 1
[[{'concept': 'Q7725634'}, {'concept': 'Q207628'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?t ) WHERE { { ?b rdf:type ontology:Q502895 . ?p rdf:type ontology:Q7725634 . ?p property:P825 ?b } UNION { ?p property:P825 ?b . ?p rdf:type ontology:Q207628 . ?b rdf:type ontology:Q502895 } } GROUP BY ?b } . FILTER ( ?t = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
value 1
[[{'concept': 'literary work'}, {'concept': 'musical composition'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?t ) WHERE { { ?b rdf:type ontology:common_name . ?p rdf:type ontology:literary_work . ?p property:dedicated_to ?b } UNION { ?p property:dedicated_to ?b . ?p rdf:type ontology:musical_composition . ?b rdf:type ontology:common_name } } GROUP BY ?b } . FILTER ( ?t = 1 ) }
[]
common name literary work musical composition
Q8023 Q392 Q41309
SYSTEM
Nelson Mandela, Bob Dylan, Franz Liszt
Q392 Q85210 Q183126 Q150767 Q1948037 Q2959955 Q44039 Q460876 Q8023 Q170726 Q160257 Q454840 Q51056 Q20757530 Q2360522 Q354519 Q457433 Q472635 Q92467 Q538335 Q163366 Q503886 Q179858 Q41309
(c(Q7725634)|c(Q207628),P825,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
value 1
[ANSWERS]
[[{'concept': 'Q7725634'}, {'concept': 'Q207628'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?t ) WHERE { { ?b rdf:type ontology:Q502895 . ?p rdf:type ontology:Q7725634 . ?p property:P825 ?b } UNION { ?p property:P825 ?b . ?p rdf:type ontology:Q207628 . ?b rdf:type ontology:Q502895 } } GROUP BY ?b } . FILTER ( ?t = 1 ) }
Bob Dylan Karl Ritter von Stremayr Ramakrishna Benjamin Britten Moritz Reichsgraf von Fries Charles Panzéra Ludwig II of Bavaria Lenny Bruce Nelson Mandela Enrico Caruso Wanda Landowska William Cullen Bryant Franz Joseph I of Austria Madame Autard de Bragard Anna Petrovna Kern Charley Patton Sara Dylan Gustav, Prince of Vasa Theodor Avé-Lallemant Marianne Kirchgessner Ezra Pound Sterling Morrison Urho Kekkonen Franz Liszt
Which people are around 1 literary works and musical compositions dedicated to
Nelson Mandela Bob Dylan Franz Liszt
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
value 1
[[{'concept': 'literary work'}, {'concept': 'musical composition'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?t ) WHERE { { ?b rdf:type ontology:common_name . ?p rdf:type ontology:literary_work . ?p property:dedicated_to ?b } UNION { ?p property:dedicated_to ?b . ?p rdf:type ontology:musical_composition . ?b rdf:type ontology:common_name } } GROUP BY ?b } . FILTER ( ?t = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q6865816
P39 P21
Q502895
USER
Which people held the position of Minister for Education and Skills and have male as the sex ?
AND((c(Q502895),P39,Q6865816), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q6865816
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q6865816'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?e WHERE { ?e property:P21 resource:Q6581097 . ?e property:P39 resource:Q6865816 . ?e rdf:type ontology:Q502895 }
male Minister for Education and Skills
action filter_type
action intersection
action find_reverse
entity Minister for Education and Skills
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'Minister for Education and Skills'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?e WHERE { ?e property:gender resource:male . ?e property:position_held resource:Minister_for_Education_and_Skills . ?e rdf:type ontology:common_name }
[]
common name
Q968439 Q2073804 Q310994 Q2038800 Q1242028 Q1995359 Q1346298 Q381681 Q920403 Q1655204
SYSTEM
Some of them are Seán Moylan, Peter Barry, Patrick Hillery, Ruairi Quinn, Donogh O'Malley, Noel Davern, Eoin MacNeill, Jack Lynch, Micheál Martin, Séamus Brennan
Q1346298 Q1995359 Q995633 Q310994 Q2073804 Q920403 Q1655204 Q2038800 Q968439 Q380312 Q1242028 Q381681 Q560499
AND((c(Q502895),P39,Q6865816), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q6865816
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] held the position of Minister for Education and Skills and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q6865816'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?e WHERE { ?e property:P21 resource:Q6581097 . ?e property:P39 resource:Q6865816 . ?e rdf:type ontology:Q502895 }
Eoin MacNeill Noel Davern Michael Woods Patrick Hillery Peter Barry Micheál Martin Séamus Brennan Ruairi Quinn Seán Moylan Noel Dempsey Donogh O'Malley Jack Lynch Richard Mulcahy
Seán Moylan, Peter Barry, Patrick Hillery, Ruairi Quinn, Donogh O'Malley, Noel Davern, Eoin MacNeill, Jack Lynch, Micheál Martin and Séamus Brennan held the position of Minister for Education and Skills and have male as the sex
Seán Moylan Peter Barry Patrick Hillery Ruairi Quinn Donogh O'Malley Noel Davern Eoin MacNeill Jack Lynch Micheál Martin Séamus Brennan
action filter_type
action intersection
action find_reverse
entity Minister for Education and Skills
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'Minister for Education and Skills'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?e WHERE { ?e property:gender resource:male . ?e property:position_held resource:Minister_for_Education_and_Skills . ?e rdf:type ontology:common_name }
[]