Simple Question (Direct)
Simple Question
Q1228102
P39
Q12737077
USER
What was the position for which Dirk Sterckx was appointed ?
(Q1228102,P39,c(Q12737077))
action filter_type
action find
entity Q1228102
relation P39
type Q12737077
['Q1228102', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q1228102 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Dirk Sterckx
action filter_type
action find
entity Dirk Sterckx
relation position held
type occupation
['Dirk Sterckx', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Dirk_Sterckx property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q27169
SYSTEM
member of the European Parliament
Q27169
(Q1228102,P39,c(Q12737077))
action filter_type
action find
entity Q1228102
relation P39
type Q12737077
[ANSWER]
['Q1228102', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q1228102 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
member of the European Parliament
Member of the European Parliament
member of the European Parliament
action filter_type
action find
entity Dirk Sterckx
relation position held
type occupation
['Dirk Sterckx', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Dirk_Sterckx property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1228102
P106
Q12737077
USER
What are the professions of Dirk Sterckx ?
(Q1228102,P106,c(Q12737077))
action filter_type
action find
entity Q1228102
relation P106
type Q12737077
['Q1228102', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q1228102 property:P106 ?g }
Dirk Sterckx
action filter_type
action find
entity Dirk Sterckx
relation occupation
type occupation
['Dirk Sterckx', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Dirk_Sterckx property:occupation ?g }
[]
occupation
Q1930187 Q82955
SYSTEM
journalist, politician
Q1930187 Q82955
(Q1228102,P106,c(Q12737077))
action filter_type
action find
entity Q1228102
relation P106
type Q12737077
The professions of Dirk Sterckx are a [ANSWERS]
['Q1228102', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q1228102 property:P106 ?g }
journalist politician
The professions of Dirk Sterckx are a journalist and politician
journalist politician
action filter_type
action find
entity Dirk Sterckx
relation occupation
type occupation
['Dirk Sterckx', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Dirk_Sterckx property:occupation ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q305054
Q12737077
USER
And also tell me about Géza Maróczy?
(Q305054,P106,c(Q12737077))
action filter_type
action find
entity Q305054
relation P106
type Q12737077
['Q305054', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q305054 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Géza Maróczy
action filter_type
action find
entity Géza Maróczy
relation occupation
type occupation
['Géza Maróczy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Géza_Maróczy property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q15980158 Q10873124
SYSTEM
non-fiction writer, chess player
Q15980158 Q10873124
(Q305054,P106,c(Q12737077))
action filter_type
action find
entity Q305054
relation P106
type Q12737077
[ANSWERS]
['Q305054', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q305054 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
non-fiction writer chess player
non-fiction writer chess player
action filter_type
action find
entity Géza Maróczy
relation occupation
type occupation
['Géza Maróczy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Géza_Maróczy property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q305054
P641
Q31629
USER
Which type of sport was that person a part of ?
(Q15980158,P641,c(Q31629)) (Q10873124,P641,c(Q31629))
action filter_type
action find
entity Q305054
relation P641
type Q31629
['Q15980158', 'P641', {'concept': 'Q31629'}] ['Q10873124', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?t WHERE { resource:Q305054 property:P641 ?t . ?t rdf:type ontology:Q31629 }
Géza Maróczy
action filter_type
action find
entity Géza Maróczy
relation sport
type type of sport
['non-fiction writer', 'sport', {'concept': 'type of sport'}] ['chess player', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?t WHERE { resource:Géza_Maróczy property:sport ?t . ?t rdf:type ontology:type_of_sport }
[]
type of sport
Q718
SYSTEM
chess
Q718
(Q15980158,P641,c(Q31629)) (Q10873124,P641,c(Q31629))
action filter_type
action find
entity Q305054
relation P641
type Q31629
Playing [ANSWER] was that person a part of
['Q15980158', 'P641', {'concept': 'Q31629'}] ['Q10873124', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?t WHERE { resource:Q305054 property:P641 ?t . ?t rdf:type ontology:Q31629 }
chess
Playing chess was that person a part of
chess
action filter_type
action find
entity Géza Maróczy
relation sport
type type of sport
['non-fiction writer', 'sport', {'concept': 'type of sport'}] ['chess player', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?t WHERE { resource:Géza_Maróczy property:sport ?t . ?t rdf:type ontology:type_of_sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q305054
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q718,P27,c(Q15617994))
action filter_type
action find
entity Q305054
relation P27
type Q15617994
['Q718', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q305054 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Géza Maróczy
action filter_type
action find
entity Géza Maróczy
relation country of citizenship
type designation for an administrative territorial entity
['chess', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Géza_Maróczy property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q718,P27,c(Q15617994))
action filter_type
action find
entity Q305054
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q718', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q305054 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Hungary
The Hungary is the native country of that person
Hungary
action filter_type
action find
entity Géza Maróczy
relation country of citizenship
type designation for an administrative territorial entity
['chess', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Géza_Maróczy property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q28 Q214
P47
Q15617994
USER
Does Slovakia have a shared border with that one ?
(Q28,P47,Q214)
action is_in
entity Q214
action find
entity Q28
relation P47
['Q28', 'P47', 'Q214']
ASK WHERE { resource:Q28 property:P47 resource:Q214 }
Hungary Slovakia
action is_in
entity Slovakia
action find
entity Hungary
relation shares border with
['Hungary', 'shares border with', 'Slovakia']
ASK WHERE { resource:Hungary property:shares_border_with resource:Slovakia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q28,P47,Q214)
action is_in
entity Q214
action find
entity Q28
relation P47
[ANSWER]
['Q28', 'P47', 'Q214']
ASK WHERE { resource:Q28 property:P47 resource:Q214 }
Yes
action is_in
entity Slovakia
action find
entity Hungary
relation shares border with
['Hungary', 'shares border with', 'Slovakia']
ASK WHERE { resource:Hungary property:shares_border_with resource:Slovakia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with atleast 38 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 38
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { FILTER ( ?b >= 38 ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?b ) WHERE { ?p property:P530 ?n . ?p rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?p } }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 38
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { FILTER ( ?b >= 38 ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?b ) WHERE { ?p property:diplomatic_relation ?n . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
3
Q155 Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 38
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { FILTER ( ?b >= 38 ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?b ) WHERE { ?p property:P530 ?n . ?p rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?p } }
Brazil Italy Georgia
3
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 38
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { FILTER ( ?b >= 38 ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?b ) WHERE { ?p property:diplomatic_relation ?n . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q28
P463
Q56061 Q43229
USER
How many administrative territories and organizations had Hungary as their member ?
(Q28,P463,c(Q56061)) (Q28,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q28
relation P463
type Q56061
action filter_type
action find
entity Q28
relation P463
type Q43229
['Q28', 'P463', {'concept': 'Q56061'}] ['Q28', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { resource:Q28 property:P463 ?v . ?v rdf:type ontology:Q56061 } UNION { resource:Q28 property:P463 ?v . ?v rdf:type ontology:Q43229 } }
Hungary
action count
action union
action filter_type
action find
entity Hungary
relation member of
type administrative territorial entity
action filter_type
action find
entity Hungary
relation member of
type organization
['Hungary', 'member of', {'concept': 'administrative territorial entity'}] ['Hungary', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { resource:Hungary property:member_of ?v . ?v rdf:type ontology:administrative_territorial_entity } UNION { resource:Hungary property:member_of ?v . ?v rdf:type ontology:organization } }
[]
administrative territorial entity organization
SYSTEM
1 administrative territories and 6 organizations
Q191384 Q899770 Q41550 Q656801 Q7825 Q458 Q827525
(Q28,P463,c(Q56061)) (Q28,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q28
relation P463
type Q56061
action filter_type
action find
entity Q28
relation P463
type Q43229
[ANSWER]
['Q28', 'P463', {'concept': 'Q56061'}] ['Q28', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { resource:Q28 property:P463 ?v . ?v rdf:type ontology:Q56061 } UNION { resource:Q28 property:P463 ?v . ?v rdf:type ontology:Q43229 } }
International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development International Finance Corporation World Trade Organization European Union International Development Association
1 administrative territories and 6 organizations
action count
action union
action filter_type
action find
entity Hungary
relation member of
type administrative territorial entity
action filter_type
action find
entity Hungary
relation member of
type organization
['Hungary', 'member of', {'concept': 'administrative territorial entity'}] ['Hungary', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { resource:Hungary property:member_of ?v . ?v rdf:type ontology:administrative_territorial_entity } UNION { resource:Hungary property:member_of ?v . ?v rdf:type ontology:organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28
P20
Q502895
USER
Which people expired at Hungary ?
(c(Q502895),P20,Q28)
action filter_type
action find_reverse
entity Q28
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q28']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q28 . ?q rdf:type ontology:Q502895 }
Hungary
action filter_type
action find_reverse
entity Hungary
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Hungary']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Hungary . ?q rdf:type ontology:common_name }
[]
common name
Q526603 Q61978 Q453056
SYSTEM
Andy Mate, Judith of Schweinfurt, Bořivoj II, Duke of Bohemia
Q61978 Q21140779 Q590355 Q21665368 Q122849 Q2619069 Q329234 Q4024171 Q349598 Q16990476 Q5345409 Q369755 Q2359853 Q7983520 Q1698323 Q526603 Q753680 Q841729 Q662236 Q453056 Q327877 Q4527699 Q5505002 Q4106182 Q19902310 Q1001715 Q4722756 Q175954 Q932218 Q5371367 Q1111695 Q3716774 Q744333 Q1105358 Q951404 Q97935 Q1696767 Q1714807 Q12018693 Q1298652
(c(Q502895),P20,Q28)
action filter_type
action find_reverse
entity Q28
relation P20
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P20', 'Q28']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q28 . ?q rdf:type ontology:Q502895 }
Judith of Schweinfurt Imre Farkaszinski Karl Sudrich Paul Theer Hans Schlenck François Baron de Tott Lajos Kada Zeno Vendler Alajos Szokolyi Giulio Foscolo Joachim Carl von Prehn Beloš Vukanović Aleksander Małecki Werner Wolff Johannes Schele Andy Mate Catherine of Hungary József Vágó Bálint Alsáni Bořivoj II, Duke of Bohemia Nicholas the Small Kurt Schumacher Fritz Rentrop Mirza Valiyev George Hay, 5th Earl of Kinnoull Lajos Fischer Alfred Großrock Johannes de Stokem László Vadnay Emil Martonffy Gyula Kiss Dušan Popović László Lachos Gábor Kaszás Gábor Obitz Ludwig Scharf Johann von Bucka János Reismann Géza Borovszky Sieghard VII.
Andy Mate, Judith of Schweinfurt and Bořivoj II, Duke of Bohemia expired at Hungary
Andy Mate Judith of Schweinfurt Bořivoj II, Duke of Bohemia
action filter_type
action find_reverse
entity Hungary
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Hungary']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Hungary . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q526603 Q61978 Q453056
P21
Q290
USER
Which sexes do those people have ?
(Q526603,P21,c(Q290)) (Q61978,P21,c(Q290)) (Q453056,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q526603', 'P21', {'concept': 'Q290'}] ['Q61978', 'P21', {'concept': 'Q290'}] ['Q453056', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?r ) { ( resource:Q61978 ) ( resource:Q21140779 ) ( resource:Q590355 ) } . ?h rdf:type ontology:Q290 . ?r property:P21 ?h }
Andy Mate Judith of Schweinfurt Bořivoj II, Duke of Bohemia
action filter_type
action find
entity prev_answer
relation gender
type sex
['Andy Mate', 'gender', {'concept': 'sex'}] ['Judith of Schweinfurt', 'gender', {'concept': 'sex'}] ['Bořivoj II, Duke of Bohemia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?r ) { ( resource:Judith_of_Schweinfurt ) ( resource:Imre_Farkaszinski ) ( resource:Karl_Sudrich ) } . ?h rdf:type ontology:sex . ?r property:gender ?h }
[]
sex
Q6581097 Q6581072 Q6581097
SYSTEM
male for 1st, 3rd, female for 2nd
Q6581097 Q6581072 Q6581097
(Q526603,P21,c(Q290)) (Q61978,P21,c(Q290)) (Q453056,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q526603', 'P21', {'concept': 'Q290'}] ['Q61978', 'P21', {'concept': 'Q290'}] ['Q453056', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?r ) { ( resource:Q61978 ) ( resource:Q21140779 ) ( resource:Q590355 ) } . ?h rdf:type ontology:Q290 . ?r property:P21 ?h }
male female male
Those people have a male, female and male
male female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Andy Mate', 'gender', {'concept': 'sex'}] ['Judith of Schweinfurt', 'gender', {'concept': 'sex'}] ['Bořivoj II, Duke of Bohemia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?r ) { ( resource:Judith_of_Schweinfurt ) ( resource:Imre_Farkaszinski ) ( resource:Karl_Sudrich ) } . ?h rdf:type ontology:sex . ?r property:gender ?h }
[]
Clarification
Simple Question|Single Entity|Indirect
Q526603
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q526603,P19,c(Q56061))
action filter_type
action find
entity Q526603
relation P19
type Q56061
['Q526603', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q526603 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Andy Mate
action filter_type
action find
entity Andy Mate
relation place of birth
type administrative territorial entity
['Andy Mate', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Andy_Mate property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q526603
SYSTEM
Did you mean Andy Mate ?
Q6581097 Q6581072 Q6581097
(Q6581097,P19,c(Q56061)) (Q6581072,P19,c(Q56061)) (Q6581097,P19,c(Q56061))
[ANSWER]
['Q6581097', 'P19', {'concept': 'Q56061'}] ['Q6581072', 'P19', {'concept': 'Q56061'}] ['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q526603 property:P19 ?c . ?c rdf:type ontology:Q56061 }
male female male
Did you mean Andy Mate ?
Andy Mate
['male', 'place of birth', {'concept': 'administrative territorial entity'}] ['female', 'place of birth', {'concept': 'administrative territorial entity'}] ['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Andy_Mate property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q526603,P19,c(Q56061))
['Q526603', 'P19', {'concept': 'Q56061'}]
['Andy Mate', 'place of birth', {'concept': 'administrative territorial entity'}]
[]
Q1781
SYSTEM
Budapest
Q1781
(Q526603,P19,c(Q56061))
action filter_type
action find
entity Q526603
relation P19
type Q56061
That person was born in [ANSWER]
['Q526603', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q526603 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Budapest
That person was born in Budapest
Budapest
action filter_type
action find
entity Andy Mate
relation place of birth
type administrative territorial entity
['Andy Mate', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Andy_Mate property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]