Simple Question (Direct)
Simple Question
Q5481640
P27
Q7275
USER
Which state is the native country of Francis Knollys ?
(Q5481640,P27,c(Q7275))
action filter_type
action find
entity Q5481640
relation P27
type Q7275
['Q5481640', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?t WHERE { resource:Q5481640 property:P27 ?t . ?t rdf:type ontology:Q7275 }
Francis Knollys
action filter_type
action find
entity Francis Knollys
relation country of citizenship
type state
['Francis Knollys', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?t WHERE { resource:Francis_Knollys property:country_of_citizenship ?t . ?t rdf:type ontology:state }
[]
state
Q179876
SYSTEM
Kingdom of England
Q179876
(Q5481640,P27,c(Q7275))
action filter_type
action find
entity Q5481640
relation P27
type Q7275
[ANSWER] is the native country of Francis Knollys
['Q5481640', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?t WHERE { resource:Q5481640 property:P27 ?t . ?t rdf:type ontology:Q7275 }
Kingdom of England
Kingdom of England is the native country of Francis Knollys
Kingdom of England
action filter_type
action find
entity Francis Knollys
relation country of citizenship
type state
['Francis Knollys', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?t WHERE { resource:Francis_Knollys property:country_of_citizenship ?t . ?t rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5481640
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q179876,P106,c(Q12737077))
action filter_type
action find
entity Q5481640
relation P106
type Q12737077
['Q179876', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q5481640 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Francis Knollys
action filter_type
action find
entity Francis Knollys
relation occupation
type occupation
['Kingdom of England', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Francis_Knollys property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q179876,P106,c(Q12737077))
action filter_type
action find
entity Q5481640
relation P106
type Q12737077
Is [ANSWER] is the profession of that person
['Q179876', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q5481640 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
politician
Is politician is the profession of that person
politician
action filter_type
action find
entity Francis Knollys
relation occupation
type occupation
['Kingdom of England', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Francis_Knollys property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q58198 Q5481640
P39
Q12737077
USER
Which occupations were the positions held by Francis Knollys or Ahmet Davutoğlu ?
OR((Q5481640,P39,c(Q12737077)), (Q58198,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q5481640
relation P39
action find
entity Q58198
relation P39
type Q12737077
{'OR': [['Q5481640', 'P39', {'concept': 'Q12737077'}], ['Q58198', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q5481640 property:P39 ?v } UNION { resource:Q58198 property:P39 ?v } } . ?v rdf:type ontology:Q12737077 }
Ahmet Davutoğlu Francis Knollys
action filter_type
action union
action find
entity Francis Knollys
relation position held
action find
entity Ahmet Davutoğlu
relation position held
type occupation
{'OR': [['Francis Knollys', 'position held', {'concept': 'occupation'}], ['Ahmet Davutoğlu', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Francis_Knollys property:position_held ?v } UNION { resource:Ahmet_Davutoğlu property:position_held ?v } } . ?v rdf:type ontology:occupation }
[]
occupation
Q18018860 Q2430415 Q21030356
SYSTEM
Member of Parliament in the Parliament of England, Prime Minister of Turkey, Member of the Grand National Assembly of Turkey
Q18018860 Q2430415 Q21030356
OR((Q5481640,P39,c(Q12737077)), (Q58198,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q5481640
relation P39
action find
entity Q58198
relation P39
type Q12737077
[ANSWERS] were the positions held by Francis Knollys or Ahmet Davutoğlu
{'OR': [['Q5481640', 'P39', {'concept': 'Q12737077'}], ['Q58198', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q5481640 property:P39 ?v } UNION { resource:Q58198 property:P39 ?v } } . ?v rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of England Prime Minister of Turkey Member of the Grand National Assembly of Turkey
Member of Parliament in the Parliament of England, Prime Minister of Turkey and Member of the Grand National Assembly of Turkey were the positions held by Francis Knollys or Ahmet Davutoğlu
Member of Parliament in the Parliament of England Prime Minister of Turkey Member of the Grand National Assembly of Turkey
action filter_type
action union
action find
entity Francis Knollys
relation position held
action find
entity Ahmet Davutoğlu
relation position held
type occupation
{'OR': [['Francis Knollys', 'position held', {'concept': 'occupation'}], ['Ahmet Davutoğlu', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Francis_Knollys property:position_held ?v } UNION { resource:Ahmet_Davutoğlu property:position_held ?v } } . ?v rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22060799 Q58198
P102
Q7210356
USER
Which political organizations are Ahmet Davutoğlu or Sam Cataldo a member of ?
OR((Q58198,P102,c(Q7210356)), (Q22060799,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q58198
relation P102
action find
entity Q22060799
relation P102
type Q7210356
{'OR': [['Q58198', 'P102', {'concept': 'Q7210356'}], ['Q22060799', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7210356 . { { resource:Q58198 property:P102 ?k } UNION { resource:Q22060799 property:P102 ?k } } }
Sam Cataldo Ahmet Davutoğlu
action filter_type
action union
action find
entity Ahmet Davutoğlu
relation member of political party
action find
entity Sam Cataldo
relation member of political party
type political organization
{'OR': [['Ahmet Davutoğlu', 'member of political party', {'concept': 'political organization'}], ['Sam Cataldo', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_organization . { { resource:Ahmet_Davutoğlu property:member_of_political_party ?k } UNION { resource:Sam_Cataldo property:member_of_political_party ?k } } }
[]
political organization
Q19077 Q29468
SYSTEM
Justice and Development Party, Republican Party
Q19077 Q29468
OR((Q58198,P102,c(Q7210356)), (Q22060799,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q58198
relation P102
action find
entity Q22060799
relation P102
type Q7210356
Party [ANSWERS] are Ahmet Davutoğlu or Sam Cataldo a member of
{'OR': [['Q58198', 'P102', {'concept': 'Q7210356'}], ['Q22060799', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7210356 . { { resource:Q58198 property:P102 ?k } UNION { resource:Q22060799 property:P102 ?k } } }
Justice and Development Party Republican Party
Party Justice and Development Party and Republican Party are Ahmet Davutoğlu or Sam Cataldo a member of
Justice and Development Party Republican Party
action filter_type
action union
action find
entity Ahmet Davutoğlu
relation member of political party
action find
entity Sam Cataldo
relation member of political party
type political organization
{'OR': [['Ahmet Davutoğlu', 'member of political party', {'concept': 'political organization'}], ['Sam Cataldo', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_organization . { { resource:Ahmet_Davutoğlu property:member_of_political_party ?k } UNION { resource:Sam_Cataldo property:member_of_political_party ?k } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2430415
P748
Q12737077
USER
Who was person who apported Prime Minister of Turkey ?
(Q2430415,P748,c(Q12737077))
action filter_type
action find
entity Q2430415
relation P748
type Q12737077
['Q2430415', 'P748', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q2430415 property:P748 ?j . ?j rdf:type ontology:Q12737077 }
Prime Minister of Turkey
action filter_type
action find
entity Prime Minister of Turkey
relation appointed by
type occupation
['Prime Minister of Turkey', 'appointed by', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Prime_Minister_of_Turkey property:appointed_by ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q1922067
SYSTEM
President of Turkey
Q1922067
(Q2430415,P748,c(Q12737077))
action filter_type
action find
entity Q2430415
relation P748
type Q12737077
Was person apported Prime Minister of Turkey [ANSWER]
['Q2430415', 'P748', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q2430415 property:P748 ?j . ?j rdf:type ontology:Q12737077 }
President of Turkey
Was person apported Prime Minister of Turkey President of Turkey
President of Turkey
action filter_type
action find
entity Prime Minister of Turkey
relation appointed by
type occupation
['Prime Minister of Turkey', 'appointed by', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Prime_Minister_of_Turkey property:appointed_by ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3259469
Q12737077
USER
And how about Prime Minister of Poland?
(Q3259469,P748,c(Q12737077))
action filter_type
action find
entity Q3259469
relation P748
type Q12737077
['Q3259469', 'P748', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q3259469 property:P748 ?p . ?p rdf:type ontology:Q12737077 }
Prime Minister of Poland
action filter_type
action find
entity Prime Minister of Poland
relation appointed by
type occupation
['Prime Minister of Poland', 'appointed by', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Prime_Minister_of_Poland property:appointed_by ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q1054799
SYSTEM
President of Poland
Q1054799
(Q3259469,P748,c(Q12737077))
action filter_type
action find
entity Q3259469
relation P748
type Q12737077
[ANSWER]
['Q3259469', 'P748', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q3259469 property:P748 ?p . ?p rdf:type ontology:Q12737077 }
President of Poland
President of Poland
action filter_type
action find
entity Prime Minister of Poland
relation appointed by
type occupation
['Prime Minister of Poland', 'appointed by', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Prime_Minister_of_Poland property:appointed_by ?p . ?p rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1054799
P17
Q15617994
USER
How many administrative territories are President of Poland situated in ?
(Q1054799,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1054799
relation P17
type Q15617994
['Q1054799', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { resource:Q1054799 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
President of Poland
action count
action filter_type
action find
entity President of Poland
relation country
type designation for an administrative territorial entity
['President of Poland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { resource:President_of_Poland property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q36
(Q1054799,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1054799
relation P17
type Q15617994
[ANSWER]
['Q1054799', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { resource:Q1054799 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Poland
1
action count
action filter_type
action find
entity President of Poland
relation country
type designation for an administrative territorial entity
['President of Poland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { resource:President_of_Poland property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q19650997
Q15617994
USER
And what about Westkerke?
(Q19650997,P17,c(Q15617994))
action count
action filter_type
action find
entity Q19650997
relation P17
type Q15617994
['Q19650997', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { resource:Q19650997 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Westkerke
action count
action filter_type
action find
entity Westkerke
relation country
type designation for an administrative territorial entity
['Westkerke', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { resource:Westkerke property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q19650997,P17,c(Q15617994))
action count
action filter_type
action find
entity Q19650997
relation P17
type Q15617994
[ANSWER]
['Q19650997', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { resource:Q19650997 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Westkerke
relation country
type designation for an administrative territorial entity
['Westkerke', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { resource:Westkerke property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19650997
P276
Q56061
USER
Where can that road be found ?
action filter_type
action find
entity Q19650997
relation P276
type Q56061
SELECT DISTINCT ?y WHERE { resource:Q19650997 property:P276 ?y . ?y rdf:type ontology:Q56061 }
Westkerke
action filter_type
action find
entity Westkerke
relation location
type administrative territorial entity
SELECT DISTINCT ?y WHERE { resource:Westkerke property:location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2381830
SYSTEM
Scherpenisse
Q2381830
action filter_type
action find
entity Q19650997
relation P276
type Q56061
That road can be found in [ANSWER]
SELECT DISTINCT ?y WHERE { resource:Q19650997 property:P276 ?y . ?y rdf:type ontology:Q56061 }
Scherpenisse
That road can be found in Scherpenisse
Scherpenisse
action filter_type
action find
entity Westkerke
relation location
type administrative territorial entity
SELECT DISTINCT ?y WHERE { resource:Westkerke property:location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2381830 Q19121467
P276
Q34442
USER
Does Europalaan have its location as that administrative territory ?
(Q19121467,P276,Q2381830)
action is_in
entity Q19121467
action find
entity Q2381830
relation P276
['Q19121467', 'P276', 'Q2381830']
ASK WHERE { resource:Q2381830 property:P276 resource:Q19121467 }
Scherpenisse Europalaan
action is_in
entity Europalaan
action find
entity Scherpenisse
relation location
['Europalaan', 'location', 'Scherpenisse']
ASK WHERE { resource:Scherpenisse property:location resource:Europalaan }
[]
road
SYSTEM
NO
(Q19121467,P276,Q2381830)
action is_in
entity Q19121467
action find
entity Q2381830
relation P276
[ANSWER]
['Q19121467', 'P276', 'Q2381830']
ASK WHERE { resource:Q2381830 property:P276 resource:Q19121467 }
No
action is_in
entity Europalaan
action find
entity Scherpenisse
relation location
['Europalaan', 'location', 'Scherpenisse']
ASK WHERE { resource:Scherpenisse property:location resource:Europalaan }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2381830 Q28179
P19
Q502895
USER
How many people have place of birth as Scherpenisse or Joseon ?
(c(Q502895),P19,Q2381830) (c(Q502895),P19,Q28179)
action count
action union
action filter_type
action find_reverse
entity Q2381830
relation P19
type Q502895
action filter_type
action find_reverse
entity Q28179
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q2381830'] [{'concept': 'Q502895'}, 'P19', 'Q28179']
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?e ) { ( resource:Q2381830 ) ( resource:Q28179 ) } . ?q property:P19 ?e }
Scherpenisse Joseon
action count
action union
action filter_type
action find_reverse
entity Scherpenisse
relation place of birth
type common name
action filter_type
action find_reverse
entity Joseon
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Scherpenisse'] [{'concept': 'common name'}, 'place of birth', 'Joseon']
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?e ) { ( resource:Scherpenisse ) ( resource:Joseon ) } . ?q property:place_of_birth ?e }
[]
common name
SYSTEM
7
Q179935 Q486286 Q128454 Q700957 Q19898945 Q491773 Q489944
(c(Q502895),P19,Q2381830) (c(Q502895),P19,Q28179)
action count
action union
action filter_type
action find_reverse
entity Q2381830
relation P19
type Q502895
action filter_type
action find_reverse
entity Q28179
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q2381830'] [{'concept': 'Q502895'}, 'P19', 'Q28179']
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?e ) { ( resource:Q2381830 ) ( resource:Q28179 ) } . ?q property:P19 ?e }
Paul Chong Hasang Queen Munjeong Empress Sunjeong Jang-geum Jan Trapman Queen Jeonghui Queen Inwon
7
action count
action union
action filter_type
action find_reverse
entity Scherpenisse
relation place of birth
type common name
action filter_type
action find_reverse
entity Joseon
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Scherpenisse'] [{'concept': 'common name'}, 'place of birth', 'Joseon']
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?e ) { ( resource:Scherpenisse ) ( resource:Joseon ) } . ?q property:place_of_birth ?e }
[]