Simple Question (Direct)
Simple Question
Q743326
P1313
Q12737077
USER
What is the occupation held by Tolox ?
(Q743326,P1313,c(Q12737077))
action filter_type
action find
entity Q743326
relation P1313
type Q12737077
['Q743326', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q743326 property:P1313 ?v . ?v rdf:type ontology:Q12737077 }
Tolox
action filter_type
action find
entity Tolox
relation office held by head of government
type occupation
['Tolox', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Tolox property:office_held_by_head_of_government ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q26699819
SYSTEM
mayor of Tolox
Q26699819
(Q743326,P1313,c(Q12737077))
action filter_type
action find
entity Q743326
relation P1313
type Q12737077
The occupation held by Tolox is the [ANSWER]
['Q743326', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q743326 property:P1313 ?v . ?v rdf:type ontology:Q12737077 }
mayor of Tolox
The occupation held by Tolox is the mayor of Tolox
mayor of Tolox
action filter_type
action find
entity Tolox
relation office held by head of government
type occupation
['Tolox', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Tolox property:office_held_by_head_of_government ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q743326
P47
Q1048835
USER
Which political territories are adjacent to that one ?
(Q26699819,P47,c(Q1048835))
action filter_type
action find
entity Q743326
relation P47
type Q1048835
['Q26699819', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q743326 property:P47 ?l . ?l rdf:type ontology:Q1048835 }
Tolox
action filter_type
action find
entity Tolox
relation shares border with
type political territorial entity
['mayor of Tolox', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Tolox property:shares_border_with ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1630188 Q1630419 Q1647764
SYSTEM
Parauta, Istán, Yunquera
Q1647764 Q1630188 Q1630419 Q1650442 Q1630229 Q1624023
(Q26699819,P47,c(Q1048835))
action filter_type
action find
entity Q743326
relation P47
type Q1048835
[ANSWERS] are adjacent to that one
['Q26699819', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q743326 property:P47 ?l . ?l rdf:type ontology:Q1048835 }
Yunquera Parauta Istán Guaro Alozaina Monda
Parauta, Istán and Yunquera are adjacent to that one
Parauta Istán Yunquera
action filter_type
action find
entity Tolox
relation shares border with
type political territorial entity
['mayor of Tolox', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Tolox property:shares_border_with ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1630188
P17
Q15617994
USER
Which administrative territory is Parauta situated in ?
(Q1630188,P17,c(Q15617994))
action filter_type
action find
entity Q1630188
relation P17
type Q15617994
['Q1630188', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q1630188 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Parauta
action filter_type
action find
entity Parauta
relation country
type designation for an administrative territorial entity
['Parauta', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Parauta property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1630188,P17,c(Q15617994))
action filter_type
action find
entity Q1630188
relation P17
type Q15617994
Parauta is situated in [ANSWER]
['Q1630188', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q1630188 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Spain
Parauta is situated in Spain
Spain
action filter_type
action find
entity Parauta
relation country
type designation for an administrative territorial entity
['Parauta', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Parauta property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7692058
Q15617994
USER
And what about Tebhapadar?
(Q7692058,P17,c(Q15617994))
action filter_type
action find
entity Q7692058
relation P17
type Q15617994
['Q7692058', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q7692058 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Tebhapadar
action filter_type
action find
entity Tebhapadar
relation country
type designation for an administrative territorial entity
['Tebhapadar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Tebhapadar property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q7692058,P17,c(Q15617994))
action filter_type
action find
entity Q7692058
relation P17
type Q15617994
[ANSWER]
['Q7692058', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q7692058 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
India
India
action filter_type
action find
entity Tebhapadar
relation country
type designation for an administrative territorial entity
['Tebhapadar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Tebhapadar property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q668 Q15952 Q6037
P530
Q1048835
USER
Does India have diplomatic associations with La Llacuna and Osterode ?
(Q668,P530,Q15952) (Q668,P530,Q6037)
action is_in
entity Q668
action intersection
action find_reverse
entity Q15952
relation P530
action find_reverse
entity Q6037
relation P530
['Q668', 'P530', 'Q15952'] ['Q668', 'P530', 'Q6037']
ASK WHERE { resource:Q668 property:P530 resource:Q15952 . resource:Q668 property:P530 resource:Q6037 }
India La Llacuna Osterode
action is_in
entity India
action intersection
action find_reverse
entity La Llacuna
relation diplomatic relation
action find_reverse
entity Osterode
relation diplomatic relation
['India', 'diplomatic relation', 'La Llacuna'] ['India', 'diplomatic relation', 'Osterode']
ASK WHERE { resource:India property:diplomatic_relation resource:La_Llacuna . resource:India property:diplomatic_relation resource:Osterode }
[]
political territorial entity
SYSTEM
NO
(Q668,P530,Q15952) (Q668,P530,Q6037)
action is_in
entity Q668
action intersection
action find_reverse
entity Q15952
relation P530
action find_reverse
entity Q6037
relation P530
[ANSWER]
['Q668', 'P530', 'Q15952'] ['Q668', 'P530', 'Q6037']
ASK WHERE { resource:Q668 property:P530 resource:Q15952 . resource:Q668 property:P530 resource:Q6037 }
No
action is_in
entity India
action intersection
action find_reverse
entity La Llacuna
relation diplomatic relation
action find_reverse
entity Osterode
relation diplomatic relation
['India', 'diplomatic relation', 'La Llacuna'] ['India', 'diplomatic relation', 'Osterode']
ASK WHERE { resource:India property:diplomatic_relation resource:La_Llacuna . resource:India property:diplomatic_relation resource:Osterode }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q26699819 Q29
P17
Q15617994
USER
Does mayor of Tolox belong to Spain ?
(Q26699819,P17,Q29)
action is_in
entity Q29
action find
entity Q26699819
relation P17
['Q26699819', 'P17', 'Q29']
ASK WHERE { resource:Q26699819 property:P17 resource:Q29 }
mayor of Tolox Spain
action is_in
entity Spain
action find
entity mayor of Tolox
relation country
['mayor of Tolox', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Tolox property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q26699819,P17,Q29)
action is_in
entity Q29
action find
entity Q26699819
relation P17
[ANSWER]
['Q26699819', 'P17', 'Q29']
ASK WHERE { resource:Q26699819 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity mayor of Tolox
relation country
['mayor of Tolox', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Tolox property:country resource:Spain }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26699819
P1001
Q1048835
USER
Which political territory is linked to that occupation ?
action filter_type
action find
entity Q26699819
relation P1001
type Q1048835
SELECT DISTINCT ?u WHERE { resource:Q26699819 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
mayor of Tolox
action filter_type
action find
entity mayor of Tolox
relation applies to jurisdiction
type political territorial entity
SELECT DISTINCT ?u WHERE { resource:mayor_of_Tolox property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q743326
SYSTEM
Tolox
Q743326
action filter_type
action find
entity Q26699819
relation P1001
type Q1048835
[ANSWER] is linked to that occupation
SELECT DISTINCT ?u WHERE { resource:Q26699819 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
Tolox
Tolox is linked to that occupation
Tolox
action filter_type
action find
entity mayor of Tolox
relation applies to jurisdiction
type political territorial entity
SELECT DISTINCT ?u WHERE { resource:mayor_of_Tolox property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q1048835 Q515 Q486972
USER
How many political territories have atleast 2 cities and human settlements as their capital ?
(c(Q515)|c(Q486972),P1376,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
value 2
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { FILTER ( ?d >= 2 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?i WHERE { ?b rdf:type ?x . VALUES ( ?x ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?i } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
value 2
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { FILTER ( ?d >= 2 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?i WHERE { ?b rdf:type ?x . VALUES ( ?x ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?i } }
[]
political territorial entity city human settlement
SYSTEM
2
Q22880 Q5455586
(c(Q515)|c(Q486972),P1376,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
value 2
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { FILTER ( ?d >= 2 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?i WHERE { ?b rdf:type ?x . VALUES ( ?x ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?i } }
Electoral Palatinate Fitzcarrald
2
action count
action atleast
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
value 2
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { FILTER ( ?d >= 2 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?i WHERE { ?b rdf:type ?x . VALUES ( ?x ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?i } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6373039 Q668
P47 P27
Q15617994
USER
Which administrative territories share border with India or are the countries of citizenship of Karol Hanke ?
OR((Q668,P47,c(Q15617994)), (Q6373039,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q668
relation P47
action find
entity Q6373039
relation P27
type Q15617994
{'OR': [['Q668', 'P47', {'concept': 'Q15617994'}], ['Q6373039', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q668 property:P47 ?h } UNION { resource:Q6373039 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
Karol Hanke India
action filter_type
action union
action find
entity India
relation shares border with
action find
entity Karol Hanke
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['India', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Karol Hanke', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:India property:shares_border_with ?h } UNION { resource:Karol_Hanke property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q836 Q837 Q843 Q148 Q36 Q902 Q917
SYSTEM
Myanmar, Nepal, Pakistan, People's Republic of China, Poland, Bangladesh, Bhutan
Q836 Q837 Q843 Q148 Q36 Q902 Q917
OR((Q668,P47,c(Q15617994)), (Q6373039,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q668
relation P47
action find
entity Q6373039
relation P27
type Q15617994
[ANSWERS] share border with India or are the countries of citizenship of Karol Hanke
{'OR': [['Q668', 'P47', {'concept': 'Q15617994'}], ['Q6373039', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q668 property:P47 ?h } UNION { resource:Q6373039 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
Myanmar Nepal Pakistan People's Republic of China Poland Bangladesh Bhutan
Myanmar, Nepal, Pakistan, People's Republic of China, Poland, Bangladesh and Bhutan share border with India or are the countries of citizenship of Karol Hanke
Myanmar Nepal Pakistan People's Republic of China Poland Bangladesh Bhutan
action filter_type
action union
action find
entity India
relation shares border with
action find
entity Karol Hanke
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['India', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Karol Hanke', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:India property:shares_border_with ?h } UNION { resource:Karol_Hanke property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q148
P35
Q502895
USER
Which people have the highest formal authority in that administrative territory ?
(Q148,P35,c(Q502895))
action filter_type
action find
entity Q148
relation P35
type Q502895
['Q148', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q148 property:P35 ?g . ?g rdf:type ontology:Q502895 }
People's Republic of China
action filter_type
action find
entity People's Republic of China
relation head of state
type common name
["People's Republic of China", 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:People's_Republic_of_China property:head_of_state ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q36
SYSTEM
Did you mean Poland ?
Q836 Q837 Q843 Q148 Q36 Q902 Q917
(Q836,P35,c(Q502895)) (Q837,P35,c(Q502895)) (Q843,P35,c(Q502895)) (Q148,P35,c(Q502895)) (Q36,P35,c(Q502895)) (Q902,P35,c(Q502895)) (Q917,P35,c(Q502895))
[ANSWER]
['Q836', 'P35', {'concept': 'Q502895'}] ['Q837', 'P35', {'concept': 'Q502895'}] ['Q843', 'P35', {'concept': 'Q502895'}] ['Q148', 'P35', {'concept': 'Q502895'}] ['Q36', 'P35', {'concept': 'Q502895'}] ['Q902', 'P35', {'concept': 'Q502895'}] ['Q917', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q148 property:P35 ?g . ?g rdf:type ontology:Q502895 }
Myanmar Nepal Pakistan People's Republic of China Poland Bangladesh Bhutan
Did you mean Poland ?
Poland
['Myanmar', 'head of state', {'concept': 'common name'}] ['Nepal', 'head of state', {'concept': 'common name'}] ['Pakistan', 'head of state', {'concept': 'common name'}] ["People's Republic of China", 'head of state', {'concept': 'common name'}] ['Poland', 'head of state', {'concept': 'common name'}] ['Bangladesh', 'head of state', {'concept': 'common name'}] ['Bhutan', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:People's_Republic_of_China property:head_of_state ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant People's Republic of China. Could you tell me the answer for that?
(Q148,P35,c(Q502895))
Q148
['Q148', 'P35', {'concept': 'Q502895'}]
["People's Republic of China", 'head of state', {'concept': 'common name'}]
[]
Q17132 Q5816 Q15031
SYSTEM
Soong Ching-ling, Mao Zedong, Xi Jinping
Q311413 Q15029 Q377935 Q17132 Q15031 Q16597 Q968038 Q16988 Q22513 Q504372 Q5816
(Q148,P35,c(Q502895))
action filter_type
action find
entity Q148
relation P35
type Q502895
[ANSWERS] have the highest formal authority in that administrative territory
['Q148', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q148 property:P35 ?g . ?g rdf:type ontology:Q502895 }
Li Xiannian Hu Jintao Yang Shangkun Soong Ching-ling Xi Jinping Jiang Zemin Dong Biwu Liu Shaoqi Zhu De Ye Jianying Mao Zedong
Soong Ching-ling, Mao Zedong and Xi Jinping have the highest formal authority in that administrative territory
Soong Ching-ling Mao Zedong Xi Jinping
action filter_type
action find
entity People's Republic of China
relation head of state
type common name
["People's Republic of China", 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:People's_Republic_of_China property:head_of_state ?g . ?g rdf:type ontology:common_name }
[]