Simple Question (Direct)
Simple Question
Q88846
P106
Q12737077
USER
Which occupation is the profession of Barbara Weiler ?
(Q88846,P106,c(Q12737077))
action filter_type
action find
entity Q88846
relation P106
type Q12737077
['Q88846', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q88846 property:P106 ?z }
Barbara Weiler
action filter_type
action find
entity Barbara Weiler
relation occupation
type occupation
['Barbara Weiler', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Barbara_Weiler property:occupation ?z }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q88846,P106,c(Q12737077))
action filter_type
action find
entity Q88846
relation P106
type Q12737077
The [ANSWER] is the profession of Barbara Weiler
['Q88846', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q88846 property:P106 ?z }
politician
The politician is the profession of Barbara Weiler
politician
action filter_type
action find
entity Barbara Weiler
relation occupation
type occupation
['Barbara Weiler', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Barbara_Weiler property:occupation ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q88846
P102
Q7278
USER
Which political party is Barbara Weiler a member of ?
(Q88846,P102,c(Q7278))
action filter_type
action find
entity Q88846
relation P102
type Q7278
['Q88846', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?d WHERE { resource:Q88846 property:P102 ?d . ?d rdf:type ontology:Q7278 }
Barbara Weiler
action filter_type
action find
entity Barbara Weiler
relation member of political party
type political party
['Barbara Weiler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?d WHERE { resource:Barbara_Weiler property:member_of_political_party ?d . ?d rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q88846,P102,c(Q7278))
action filter_type
action find
entity Q88846
relation P102
type Q7278
Party [ANSWER] is Barbara Weiler a member of
['Q88846', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?d WHERE { resource:Q88846 property:P102 ?d . ?d rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Barbara Weiler a member of
Social Democratic Party of Germany
action filter_type
action find
entity Barbara Weiler
relation member of political party
type political party
['Barbara Weiler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?d WHERE { resource:Barbara_Weiler property:member_of_political_party ?d . ?d rdf:type ontology:political_party }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19501966
Q7278
USER
And how about Annegret Kerp-Esche?
(Q19501966,P102,c(Q7278))
action filter_type
action find
entity Q19501966
relation P102
type Q7278
['Q19501966', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?i WHERE { resource:Q19501966 property:P102 ?i . ?i rdf:type ontology:Q7278 }
Annegret Kerp-Esche
action filter_type
action find
entity Annegret Kerp-Esche
relation member of political party
type political party
['Annegret Kerp-Esche', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?i WHERE { resource:Annegret_Kerp-Esche property:member_of_political_party ?i . ?i rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q19501966,P102,c(Q7278))
action filter_type
action find
entity Q19501966
relation P102
type Q7278
[ANSWER]
['Q19501966', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?i WHERE { resource:Q19501966 property:P102 ?i . ?i rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Social Democratic Party of Germany
action filter_type
action find
entity Annegret Kerp-Esche
relation member of political party
type political party
['Annegret Kerp-Esche', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?i WHERE { resource:Annegret_Kerp-Esche property:member_of_political_party ?i . ?i rdf:type ontology:political_party }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q49768
P488
Q502895
USER
How many people served as the chairperson of Social Democratic Party of Germany ?
(Q49768,P488,c(Q502895))
action count
action filter_type
action find
entity Q49768
relation P488
type Q502895
['Q49768', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:Q502895 . resource:Q49768 property:P488 ?n }
Social Democratic Party of Germany
action count
action filter_type
action find
entity Social Democratic Party of Germany
relation chairperson
type common name
['Social Democratic Party of Germany', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:common_name . resource:Social_Democratic_Party_of_Germany property:chairperson ?n }
[]
common name
SYSTEM
14
Q160902 Q110719 Q2530 Q58609 Q2514 Q76658 Q61321 Q57682 Q57465 Q62185 Q2551 Q62279 Q65109 Q552483
(Q49768,P488,c(Q502895))
action count
action filter_type
action find
entity Q49768
relation P488
type Q502895
[ANSWER]
['Q49768', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:Q502895 . resource:Q49768 property:P488 ?n }
Sigmar Gabriel Oskar Lafontaine Gerhard Schröder Franz Müntefering Willy Brandt Frank-Walter Steinmeier Rudolf Scharping Matthias Platzeck Kurt Schumacher Erich Ollenhauer Johannes Rau Björn Engholm Kurt Beck Hans-Jochen Vogel
14
action count
action filter_type
action find
entity Social Democratic Party of Germany
relation chairperson
type common name
['Social Democratic Party of Germany', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:common_name . resource:Social_Democratic_Party_of_Germany property:chairperson ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q152096
P488
Q502895
USER
And also tell me about Sainsbury's?
(Q152096,P488,c(Q502895))
action count
action filter_type
action find
entity Q152096
relation P488
type Q502895
['Q152096', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w rdf:type ontology:Q502895 . resource:Q152096 property:P488 ?w }
Sainsbury's
action count
action filter_type
action find
entity Sainsbury's
relation chairperson
type common name
["Sainsbury's", 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w rdf:type ontology:common_name . resource:Sainsbury's property:chairperson ?w }
[]
common name
SYSTEM
1
Q5240548
(Q152096,P488,c(Q502895))
action count
action filter_type
action find
entity Q152096
relation P488
type Q502895
[ANSWER]
['Q152096', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w rdf:type ontology:Q502895 . resource:Q152096 property:P488 ?w }
David Tyler
1
action count
action filter_type
action find
entity Sainsbury's
relation chairperson
type common name
["Sainsbury's", 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w rdf:type ontology:common_name . resource:Sainsbury's property:chairperson ?w }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q11085933
Q502895
USER
And how about Polish Esperanto Youth?
(Q11085933,P488,c(Q502895))
action count
action filter_type
action find
entity Q11085933
relation P488
type Q502895
['Q11085933', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g rdf:type ontology:Q502895 . resource:Q11085933 property:P488 ?g }
Polish Esperanto Youth
action count
action filter_type
action find
entity Polish Esperanto Youth
relation chairperson
type common name
['Polish Esperanto Youth', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g rdf:type ontology:common_name . resource:Polish_Esperanto_Youth property:chairperson ?g }
[]
common name
SYSTEM
4
(Q11085933,P488,c(Q502895))
action count
action filter_type
action find
entity Q11085933
relation P488
type Q502895
[ANSWER]
['Q11085933', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g rdf:type ontology:Q502895 . resource:Q11085933 property:P488 ?g }
4
action count
action filter_type
action find
entity Polish Esperanto Youth
relation chairperson
type common name
['Polish Esperanto Youth', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g rdf:type ontology:common_name . resource:Polish_Esperanto_Youth property:chairperson ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q88846
P937
Q56061
USER
Which are the work locations of Barbara Weiler ?
(Q88846,P937,c(Q56061))
action filter_type
action find
entity Q88846
relation P937
type Q56061
['Q88846', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q88846 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Barbara Weiler
action filter_type
action find
entity Barbara Weiler
relation work location
type administrative territorial entity
['Barbara Weiler', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Barbara_Weiler property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586 Q239
SYSTEM
Bonn, Brussels
Q586 Q239
(Q88846,P937,c(Q56061))
action filter_type
action find
entity Q88846
relation P937
type Q56061
The work locations of Barbara Weiler are in [ANSWERS]
['Q88846', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q88846 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Bonn Brussels
The work locations of Barbara Weiler are in Bonn and Brussels
Bonn Brussels
action filter_type
action find
entity Barbara Weiler
relation work location
type administrative territorial entity
['Barbara Weiler', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Barbara_Weiler property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q586 Q239
P159
Q43229
USER
Which organizations have headquarters located at those administrative territories ?
(c(Q43229),P159,Q586) (c(Q43229),P159,Q239)
action filter_type
action find_reverse
entity prev_answer
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q586'] [{'concept': 'Q43229'}, 'P159', 'Q239']
SELECT DISTINCT ?w WHERE { VALUES ( ?x ) { ( resource:Q586 ) ( resource:Q239 ) } . ?w property:P159 ?x . ?w rdf:type ontology:Q43229 }
Bonn Brussels
action filter_type
action find_reverse
entity prev_answer
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Bonn'] [{'concept': 'organization'}, 'headquarters location', 'Brussels']
SELECT DISTINCT ?w WHERE { VALUES ( ?x ) { ( resource:Bonn ) ( resource:Brussels ) } . ?w property:headquarters_location ?x . ?w rdf:type ontology:organization }
[]
organization
Q338433 Q1377852 Q327634
SYSTEM
Friedrich Naumann Foundation, European Trade Union Confederation, T-Mobile International
Q338433 Q278496 Q5266289 Q2088529 Q2043781 Q708835 Q474230 Q152186 Q21995447 Q489815 Q506252 Q935929 Q442345 Q514108 Q317269 Q327634 Q2401704 Q1325684 Q163307 Q880962 Q570372 Q555122 Q317106 Q5205027 Q1008826 Q986530 Q1427264 Q5426562 Q325096 Q795364 Q883529 Q1617690 Q323329 Q658270 Q7830825 Q1371077 Q1416207 Q2541420 Q1131131 Q701027 Q10278302 Q1071706 Q2561760 Q19839273 Q1376640 Q1512800 Q2383524 Q2373470 Q14911971 Q1377852 Q2139719 Q1072857 Q833362 Q3487558 Q6027461
(c(Q43229),P159,Q586) (c(Q43229),P159,Q239)
action filter_type
action find_reverse
entity prev_answer
relation P159
type Q43229
[ANSWERS] have headquarters located at those administrative territories
[{'concept': 'Q43229'}, 'P159', 'Q586'] [{'concept': 'Q43229'}, 'P159', 'Q239']
SELECT DISTINCT ?w WHERE { VALUES ( ?x ) { ( resource:Q586 ) ( resource:Q239 ) } . ?w property:P159 ?x . ?w rdf:type ontology:Q43229 }
Friedrich Naumann Foundation A.W. Andernach Deutsche Post Phoenix Reisen factoring Deutsche Postbank DHL Supply Chain Stadtwerke Bonn Working Group of German breeders DHL Express Vapiano SE Rhein-Sieg-Eisenbahn Simon-Kucher & Partners DHL Global Forwarding Institute for the Study of Labor T-Mobile International Telekom Deutschland SUPRENUM Center of Advanced European Studies and Research Verpoorten SolarWorld Klais Orgelbau IVG Immobilien DHL Freight Bundesverband Deutscher Liebhaberorchester FLO-Cert OroVerde – Die Tropenwaldstiftung FLO International World Wind Energy Association BAD Gesundheitsvorsorge und Sicherheitstechnik Deutsche Stiftung Denkmalschutz High-Tech Gründerfonds DHL Aviation KfW Toyota Motor Europe Etex Group Financial Services and Markets Authority Proximus Skynet Elia System Operator BDO International European Logistics Association International Trade Union Confederation European Banking Federation Eurostation EFQM Société Générale de Belgique Bank Brussel Lambert Stagg Music Beobank European Trade Union Confederation Belgian Export Credit Agency International Crisis Group Fortis Société Anonyme la Métallurgique IndustriALL European Trade Union
Friedrich Naumann Foundation, European Trade Union Confederation and T-Mobile International have headquarters located at those administrative territories
Friedrich Naumann Foundation European Trade Union Confederation T-Mobile International
action filter_type
action find_reverse
entity prev_answer
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Bonn'] [{'concept': 'organization'}, 'headquarters location', 'Brussels']
SELECT DISTINCT ?w WHERE { VALUES ( ?x ) { ( resource:Bonn ) ( resource:Brussels ) } . ?w property:headquarters_location ?x . ?w rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q338433 Q1377852 Q327634
P159
Q56061
USER
Which administrative territories are the head offices of those organizations ?
(Q338433,P159,c(Q56061)) (Q1377852,P159,c(Q56061)) (Q327634,P159,c(Q56061))
action filter_type
action find
entity prev_answer
relation P159
type Q56061
['Q338433', 'P159', {'concept': 'Q56061'}] ['Q1377852', 'P159', {'concept': 'Q56061'}] ['Q327634', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . ?j property:P159 ?w . VALUES ( ?j ) { ( resource:Q338433 ) ( resource:Q278496 ) ( resource:Q5266289 ) } }
Friedrich Naumann Foundation European Trade Union Confederation T-Mobile International
action filter_type
action find
entity prev_answer
relation headquarters location
type administrative territorial entity
['Friedrich Naumann Foundation', 'headquarters location', {'concept': 'administrative territorial entity'}] ['European Trade Union Confederation', 'headquarters location', {'concept': 'administrative territorial entity'}] ['T-Mobile International', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . ?j property:headquarters_location ?w . VALUES ( ?j ) { ( resource:Friedrich_Naumann_Foundation ) ( resource:A.W._Andernach ) ( resource:Deutsche_Post ) } }
[]
administrative territorial entity
Q586 Q239 Q586
SYSTEM
Bonn for 1st, 3rd, Brussels for 2nd
Q586 Q239 Q586
(Q338433,P159,c(Q56061)) (Q1377852,P159,c(Q56061)) (Q327634,P159,c(Q56061))
action filter_type
action find
entity prev_answer
relation P159
type Q56061
[ANSWERS]
['Q338433', 'P159', {'concept': 'Q56061'}] ['Q1377852', 'P159', {'concept': 'Q56061'}] ['Q327634', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . ?j property:P159 ?w . VALUES ( ?j ) { ( resource:Q338433 ) ( resource:Q278496 ) ( resource:Q5266289 ) } }
Bonn Brussels Bonn
Bonn, Brussels and Bonn are the head offices of those organizations
Bonn Brussels Bonn
action filter_type
action find
entity prev_answer
relation headquarters location
type administrative territorial entity
['Friedrich Naumann Foundation', 'headquarters location', {'concept': 'administrative territorial entity'}] ['European Trade Union Confederation', 'headquarters location', {'concept': 'administrative territorial entity'}] ['T-Mobile International', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . ?j property:headquarters_location ?w . VALUES ( ?j ) { ( resource:Friedrich_Naumann_Foundation ) ( resource:A.W._Andernach ) ( resource:Deutsche_Post ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q338433
P108
Q502895
USER
Which person works for that organization ?
(c(Q502895),P108,Q338433)
action filter_type
action find_reverse
entity Q338433
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q338433']
SELECT DISTINCT ?l WHERE { ?l property:P108 resource:Q338433 . ?l rdf:type ontology:Q502895 }
Friedrich Naumann Foundation
action filter_type
action find_reverse
entity Friedrich Naumann Foundation
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Friedrich Naumann Foundation']
SELECT DISTINCT ?l WHERE { ?l property:employer resource:Friedrich_Naumann_Foundation . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q338433
SYSTEM
Did you mean Friedrich Naumann Foundation ?
Q586 Q239 Q586
(c(Q502895),P108,Q586) (c(Q502895),P108,Q239) (c(Q502895),P108,Q586)
[ANSWER]
[{'concept': 'Q502895'}, 'P108', 'Q586'] [{'concept': 'Q502895'}, 'P108', 'Q239'] [{'concept': 'Q502895'}, 'P108', 'Q586']
SELECT DISTINCT ?l WHERE { ?l property:P108 resource:Q338433 . ?l rdf:type ontology:Q502895 }
Bonn Brussels Bonn
Did you mean Friedrich Naumann Foundation ?
Friedrich Naumann Foundation
[{'concept': 'common name'}, 'employer', 'Bonn'] [{'concept': 'common name'}, 'employer', 'Brussels'] [{'concept': 'common name'}, 'employer', 'Bonn']
SELECT DISTINCT ?l WHERE { ?l property:employer resource:Friedrich_Naumann_Foundation . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P108,Q338433)
[{'concept': 'Q502895'}, 'P108', 'Q338433']
[{'concept': 'common name'}, 'employer', 'Friedrich Naumann Foundation']
[]
Q18287206
SYSTEM
Ewald Grothe
Q18287206
(c(Q502895),P108,Q338433)
action filter_type
action find_reverse
entity Q338433
relation P108
type Q502895
[ANSWER] works for that organization
[{'concept': 'Q502895'}, 'P108', 'Q338433']
SELECT DISTINCT ?l WHERE { ?l property:P108 resource:Q338433 . ?l rdf:type ontology:Q502895 }
Ewald Grothe
Ewald Grothe works for that organization
Ewald Grothe
action filter_type
action find_reverse
entity Friedrich Naumann Foundation
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Friedrich Naumann Foundation']
SELECT DISTINCT ?l WHERE { ?l property:employer resource:Friedrich_Naumann_Foundation . ?l rdf:type ontology:common_name }
[]