Simple Question (Direct)
Simple Question
Q836769
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Velilla de la Sierra ?
(Q836769,P1313,c(Q12737077))
action filter_type
action find
entity Q836769
relation P1313
type Q12737077
['Q836769', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q836769 property:P1313 ?q }
Velilla de la Sierra
action filter_type
action find
entity Velilla de la Sierra
relation office held by head of government
type occupation
['Velilla de la Sierra', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Velilla_de_la_Sierra property:office_held_by_head_of_government ?q }
[]
occupation
Q26700812
SYSTEM
mayor of Velilla de la Sierra
Q26700812
(Q836769,P1313,c(Q12737077))
action filter_type
action find
entity Q836769
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Velilla de la Sierra
['Q836769', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q836769 property:P1313 ?q }
mayor of Velilla de la Sierra
The mayor of Velilla de la Sierra serves as the political office that is fulfilled by the head of the government of Velilla de la Sierra
mayor of Velilla de la Sierra
action filter_type
action find
entity Velilla de la Sierra
relation office held by head of government
type occupation
['Velilla de la Sierra', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Velilla_de_la_Sierra property:office_held_by_head_of_government ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26700812
P17
Q15617994
USER
Which administrative territory is that occupation situated in ?
(Q26700812,P17,c(Q15617994))
action filter_type
action find
entity Q26700812
relation P17
type Q15617994
['Q26700812', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q26700812 property:P17 ?h }
mayor of Velilla de la Sierra
action filter_type
action find
entity mayor of Velilla de la Sierra
relation country
type designation for an administrative territorial entity
['mayor of Velilla de la Sierra', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor_of_Velilla_de_la_Sierra property:country ?h }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q26700812,P17,c(Q15617994))
action filter_type
action find
entity Q26700812
relation P17
type Q15617994
That occupation is situated in [ANSWER]
['Q26700812', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q26700812 property:P17 ?h }
Spain
That occupation is situated in Spain
Spain
action filter_type
action find
entity mayor of Velilla de la Sierra
relation country
type designation for an administrative territorial entity
['mayor of Velilla de la Sierra', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor_of_Velilla_de_la_Sierra property:country ?h }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q13220204 Q486972 Q1048835
USER
Which political territories are sister town of atleast 1 administrative country subdivisions and human settlements ?
(c(Q1048835),P190,c(Q13220204)|c(Q486972))
action atleast
action union
action find_tuple_counts
relation P190
type Q1048835
type Q13220204
action find_tuple_counts
relation P190
type Q1048835
type Q486972
value 1
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q13220204'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?i WHERE { { ?i property:P190 ?p . ?i rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q486972 } UNION { ?i property:P190 ?p . ?p rdf:type ontology:Q13220204 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?i } . FILTER ( ?j >= 1 ) }
action atleast
action union
action find_tuple_counts
relation sister city
type political territorial entity
type second-level administrative country subdivision
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
value 1
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?i WHERE { { ?i property:sister_city ?p . ?i rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:human_settlement } UNION { ?i property:sister_city ?p . ?p rdf:type ontology:second-level_administrative_country_subdivision . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?i } . FILTER ( ?j >= 1 ) }
[]
second-level administrative country subdivision human settlement political territorial entity
Q436491 Q5826 Q615722
SYSTEM
Altea, Xi'an, Santa Fe
Q5963 Q1628188 Q36947 Q164197 Q667682 Q1312654 Q496588 Q824651 Q12339 Q11746 Q13521 Q694833 Q4970 Q1769167 Q574340 Q140203 Q485129 Q1614754 Q15174 Q740833 Q12587 Q10436 Q748078 Q8184 Q188905 Q7894 Q371748 Q167436 Q170322 Q42956 Q281272 Q436491 Q221749 Q639422 Q1605505 Q615722 Q465085 Q943431 Q695456 Q11720 Q353618 Q10445 Q984821 Q77433 Q28301 Q74881 Q5826 Q203040 Q201149
(c(Q1048835),P190,c(Q13220204)|c(Q486972))
action atleast
action union
action find_tuple_counts
relation P190
type Q1048835
type Q13220204
action find_tuple_counts
relation P190
type Q1048835
type Q486972
value 1
[ANSWERS] are sister town of atleast 1 administrative country subdivisions and human settlements
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q13220204'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?i WHERE { { ?i property:P190 ?p . ?i rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q486972 } UNION { ?i property:P190 ?p . ?p rdf:type ontology:Q13220204 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?i } . FILTER ( ?j >= 1 ) }
Hanover region Cangas Salvador Coslada Peñafiel, Spain Carlet Oñati Parla Sant Joan de les Abadesses Wuhan Sant Feliu de Guíxols Gramado Hangzhou Cigales Las Gabias Zafra Burgo de Osma-Ciudad de Osma Medina de Pomar Shenzhen Santa Maria Santa Susanna Kulmbach Neath Port Talbot County Borough Enz Ouro Preto Schwalm-Eder-Kreis San Lorenzo de El Escorial João Pessoa Qingdao Harbin Linares Altea Torrevieja Pozuelo de Alarcón Celanova Santa Fe Almadén Granadilla de Abona Bailén Shenyang Adeje Forchheim Onda Leganés Olinda Dalian Xi'an El Puerto de Santa María Fife
Altea, Xi'an and Santa Fe are sister town of atleast 1 administrative country subdivisions and human settlements
Altea Xi'an Santa Fe
action atleast
action union
action find_tuple_counts
relation sister city
type political territorial entity
type second-level administrative country subdivision
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
value 1
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?i WHERE { { ?i property:sister_city ?p . ?i rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:human_settlement } UNION { ?i property:sister_city ?p . ?p rdf:type ontology:second-level_administrative_country_subdivision . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?i } . FILTER ( ?j >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3241331 Q615722
P47 P27
Q1048835
USER
Which political territories are bordered by Santa Fe or are the native countriesof Linda Duncan ?
OR((Q615722,P47,c(Q1048835)), (Q3241331,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q615722
relation P47
action find
entity Q3241331
relation P27
type Q1048835
{'OR': [['Q615722', 'P47', {'concept': 'Q1048835'}], ['Q3241331', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q615722 property:P47 ?n } UNION { resource:Q3241331 property:P27 ?n } } . ?n rdf:type ontology:Q1048835 }
Linda Duncan Santa Fe
action filter_type
action union
action find
entity Santa Fe
relation shares border with
action find
entity Linda Duncan
relation country of citizenship
type political territorial entity
{'OR': [['Santa Fe', 'shares border with', {'concept': 'political territorial entity'}], ['Linda Duncan', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Santa_Fe property:shares_border_with ?n } UNION { resource:Linda_Duncan property:country_of_citizenship ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q574340 Q550974 Q574513 Q611199 Q618377 Q555943 Q557953 Q16
SYSTEM
Las Gabias, Atarfe, Fuente Vaqueros, Pinos Puente, Vegas del Genil, Chauchina, Chimeneas, Canada
Q574340 Q550974 Q574513 Q611199 Q618377 Q555943 Q557953 Q16
OR((Q615722,P47,c(Q1048835)), (Q3241331,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q615722
relation P47
action find
entity Q3241331
relation P27
type Q1048835
[ANSWERS] are bordered by Santa Fe or are the native countriesof Linda Duncan
{'OR': [['Q615722', 'P47', {'concept': 'Q1048835'}], ['Q3241331', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q615722 property:P47 ?n } UNION { resource:Q3241331 property:P27 ?n } } . ?n rdf:type ontology:Q1048835 }
Las Gabias Atarfe Fuente Vaqueros Pinos Puente Vegas del Genil Chauchina Chimeneas Canada
Las Gabias, Atarfe, Fuente Vaqueros, Pinos Puente, Vegas del Genil, Chauchina, Chimeneas and Canada are bordered by Santa Fe or are the native countriesof Linda Duncan
Las Gabias Atarfe Fuente Vaqueros Pinos Puente Vegas del Genil Chauchina Chimeneas Canada
action filter_type
action union
action find
entity Santa Fe
relation shares border with
action find
entity Linda Duncan
relation country of citizenship
type political territorial entity
{'OR': [['Santa Fe', 'shares border with', {'concept': 'political territorial entity'}], ['Linda Duncan', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Santa_Fe property:shares_border_with ?n } UNION { resource:Linda_Duncan property:country_of_citizenship ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3241331
P106
Q28640 Q12737077
USER
How many professions or occupations are the professions of Linda Duncan ?
(Q3241331,P106,c(Q28640)) (Q3241331,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q3241331
relation P106
type Q28640
action filter_type
action find
entity Q3241331
relation P106
type Q12737077
['Q3241331', 'P106', {'concept': 'Q28640'}] ['Q3241331', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { resource:Q3241331 property:P106 ?y . ?y rdf:type ontology:Q12737077 } UNION { resource:Q3241331 property:P106 ?y . ?y rdf:type ontology:Q28640 } }
Linda Duncan
action count
action union
action filter_type
action find
entity Linda Duncan
relation occupation
type profession
action filter_type
action find
entity Linda Duncan
relation occupation
type occupation
['Linda Duncan', 'occupation', {'concept': 'profession'}] ['Linda Duncan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { resource:Linda_Duncan property:occupation ?y . ?y rdf:type ontology:occupation } UNION { resource:Linda_Duncan property:occupation ?y . ?y rdf:type ontology:profession } }
[]
profession occupation
SYSTEM
2
Q82955 Q40348
(Q3241331,P106,c(Q28640)) (Q3241331,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q3241331
relation P106
type Q28640
action filter_type
action find
entity Q3241331
relation P106
type Q12737077
[ANSWER]
['Q3241331', 'P106', {'concept': 'Q28640'}] ['Q3241331', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { resource:Q3241331 property:P106 ?y . ?y rdf:type ontology:Q12737077 } UNION { resource:Q3241331 property:P106 ?y . ?y rdf:type ontology:Q28640 } }
politician lawyer
2
action count
action union
action filter_type
action find
entity Linda Duncan
relation occupation
type profession
action filter_type
action find
entity Linda Duncan
relation occupation
type occupation
['Linda Duncan', 'occupation', {'concept': 'profession'}] ['Linda Duncan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { resource:Linda_Duncan property:occupation ?y . ?y rdf:type ontology:occupation } UNION { resource:Linda_Duncan property:occupation ?y . ?y rdf:type ontology:profession } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3241331
P39
Q12737077
USER
What was the position for which that person was appointed ?
action filter_type
action find
entity Q3241331
relation P39
type Q12737077
SELECT DISTINCT ?i WHERE { resource:Q3241331 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Linda Duncan
action filter_type
action find
entity Linda Duncan
relation position held
type occupation
SELECT DISTINCT ?i WHERE { resource:Linda_Duncan property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q15964890
SYSTEM
member of the House of Commons of Canada
Q15964890
action filter_type
action find
entity Q3241331
relation P39
type Q12737077
And [ANSWER]
SELECT DISTINCT ?i WHERE { resource:Q3241331 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
member of the House of Commons of Canada
And member of the House of Commons of Canada
member of the House of Commons of Canada
action filter_type
action find
entity Linda Duncan
relation position held
type occupation
SELECT DISTINCT ?i WHERE { resource:Linda_Duncan property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3241331
P102
Q7210356
USER
Which party does that person belong to ?
(Q15964890,P102,c(Q7210356))
action filter_type
action find
entity Q3241331
relation P102
type Q7210356
['Q15964890', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q3241331 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Linda Duncan
action filter_type
action find
entity Linda Duncan
relation member of political party
type political organization
['member of the House of Commons of Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Linda_Duncan property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q130765
SYSTEM
New Democratic Party
Q130765
(Q15964890,P102,c(Q7210356))
action filter_type
action find
entity Q3241331
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q15964890', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q3241331 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
New Democratic Party
That person belongs to New Democratic Party
New Democratic Party
action filter_type
action find
entity Linda Duncan
relation member of political party
type political organization
['member of the House of Commons of Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Linda_Duncan property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q130765 Q4362375 Q16
P17
Q1048835
USER
Is New Democratic Party situated in Pivnichne and Canada ?
(Q130765,P17,Q4362375) (Q130765,P17,Q16)
action is_in
entity Q130765
action intersection
action find_reverse
entity Q4362375
relation P17
action find_reverse
entity Q16
relation P17
['Q130765', 'P17', 'Q4362375'] ['Q130765', 'P17', 'Q16']
ASK WHERE { resource:Q130765 property:P17 resource:Q4362375 . resource:Q130765 property:P17 resource:Q16 }
New Democratic Party Pivnichne Canada
action is_in
entity New Democratic Party
action intersection
action find_reverse
entity Pivnichne
relation country
action find_reverse
entity Canada
relation country
['New Democratic Party', 'country', 'Pivnichne'] ['New Democratic Party', 'country', 'Canada']
ASK WHERE { resource:New_Democratic_Party property:country resource:Pivnichne . resource:New_Democratic_Party property:country resource:Canada }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q130765,P17,Q4362375) (Q130765,P17,Q16)
action is_in
entity Q130765
action intersection
action find_reverse
entity Q4362375
relation P17
action find_reverse
entity Q16
relation P17
[ANSWER]
['Q130765', 'P17', 'Q4362375'] ['Q130765', 'P17', 'Q16']
ASK WHERE { resource:Q130765 property:P17 resource:Q4362375 . resource:Q130765 property:P17 resource:Q16 }
NO and YES respectively
action is_in
entity New Democratic Party
action intersection
action find_reverse
entity Pivnichne
relation country
action find_reverse
entity Canada
relation country
['New Democratic Party', 'country', 'Pivnichne'] ['New Democratic Party', 'country', 'Canada']
ASK WHERE { resource:New_Democratic_Party property:country resource:Pivnichne . resource:New_Democratic_Party property:country resource:Canada }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q550974 Q29
P17
Q15617994
USER
Is Atarfe present in Spain ?
(Q550974,P17,Q29)
action is_in
entity Q29
action find
entity Q550974
relation P17
['Q550974', 'P17', 'Q29']
ASK WHERE { resource:Q550974 property:P17 resource:Q29 }
Atarfe Spain
action is_in
entity Spain
action find
entity Atarfe
relation country
['Atarfe', 'country', 'Spain']
ASK WHERE { resource:Atarfe property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q550974,P17,Q29)
action is_in
entity Q29
action find
entity Q550974
relation P17
[ANSWER]
['Q550974', 'P17', 'Q29']
ASK WHERE { resource:Q550974 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Atarfe
relation country
['Atarfe', 'country', 'Spain']
ASK WHERE { resource:Atarfe property:country resource:Spain }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q28071 Q555943
P17
Q15617994
USER
Which administrative territories do Chauchina or Bajura District belong to ?
OR((Q555943,P17,c(Q15617994)), (Q28071,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q555943
relation P17
action find
entity Q28071
relation P17
type Q15617994
{'OR': [['Q555943', 'P17', {'concept': 'Q15617994'}], ['Q28071', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?i property:P17 ?n . VALUES ( ?i ) { ( resource:Q555943 ) ( resource:Q28071 ) } } . ?n rdf:type ontology:Q15617994 }
Bajura District Chauchina
action filter_type
action union
action find
entity Chauchina
relation country
action find
entity Bajura District
relation country
type designation for an administrative territorial entity
{'OR': [['Chauchina', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bajura District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?i property:country ?n . VALUES ( ?i ) { ( resource:Chauchina ) ( resource:Bajura_District ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q837
SYSTEM
Spain, Nepal
Q29 Q837
OR((Q555943,P17,c(Q15617994)), (Q28071,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q555943
relation P17
action find
entity Q28071
relation P17
type Q15617994
Chauchina or Bajura District belong to [ANSWERS]
{'OR': [['Q555943', 'P17', {'concept': 'Q15617994'}], ['Q28071', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?i property:P17 ?n . VALUES ( ?i ) { ( resource:Q555943 ) ( resource:Q28071 ) } } . ?n rdf:type ontology:Q15617994 }
Spain Nepal
Chauchina or Bajura District belong to Spain and Nepal
Spain Nepal
action filter_type
action union
action find
entity Chauchina
relation country
action find
entity Bajura District
relation country
type designation for an administrative territorial entity
{'OR': [['Chauchina', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bajura District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?i property:country ?n . VALUES ( ?i ) { ( resource:Chauchina ) ( resource:Bajura_District ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q28071
P17
Q15617994
USER
How many administrative territories are Bajura District located in ?
(Q28071,P17,c(Q15617994))
action count
action filter_type
action find
entity Q28071
relation P17
type Q15617994
['Q28071', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q28071 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Bajura District
action count
action filter_type
action find
entity Bajura District
relation country
type designation for an administrative territorial entity
['Bajura District', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Bajura_District property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q837
(Q28071,P17,c(Q15617994))
action count
action filter_type
action find
entity Q28071
relation P17
type Q15617994
[ANSWER]
['Q28071', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q28071 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Nepal
1
action count
action filter_type
action find
entity Bajura District
relation country
type designation for an administrative territorial entity
['Bajura District', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Bajura_District property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6045022
Q15617994
USER
And also tell me about Daghalian-e Bala?
(Q6045022,P17,c(Q15617994))
action filter_type
action find
entity Q6045022
relation P17
type Q15617994
['Q6045022', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q6045022 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Daghalian-e Bala
action filter_type
action find
entity Daghalian-e Bala
relation country
type designation for an administrative territorial entity
['Daghalian-e Bala', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Daghalian-e_Bala property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q6045022,P17,c(Q15617994))
action filter_type
action find
entity Q6045022
relation P17
type Q15617994
[ANSWER]
['Q6045022', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q6045022 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Iran
Iran
action filter_type
action find
entity Daghalian-e Bala
relation country
type designation for an administrative territorial entity
['Daghalian-e Bala', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Daghalian-e_Bala property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q794 Q15059067 Q566907
P530
Q15617994
USER
Does that administrative territory have diplomatic associations with Sunset, Herefordshire and Hambach ?
(Q794,P530,Q15059067) (Q794,P530,Q566907)
action is_in
entity Q794
action intersection
action find_reverse
entity Q15059067
relation P530
action find_reverse
entity Q566907
relation P530
['Q794', 'P530', 'Q15059067'] ['Q794', 'P530', 'Q566907']
ASK WHERE { resource:Q794 property:P530 resource:Q15059067 . resource:Q794 property:P530 resource:Q566907 }
Iran Sunset, Herefordshire Hambach
action is_in
entity Iran
action intersection
action find_reverse
entity Sunset, Herefordshire
relation diplomatic relation
action find_reverse
entity Hambach
relation diplomatic relation
['Iran', 'diplomatic relation', 'Sunset, Herefordshire'] ['Iran', 'diplomatic relation', 'Hambach']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Sunset,_Herefordshire . resource:Iran property:diplomatic_relation resource:Hambach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q794,P530,Q15059067) (Q794,P530,Q566907)
action is_in
entity Q794
action intersection
action find_reverse
entity Q15059067
relation P530
action find_reverse
entity Q566907
relation P530
[ANSWER]
['Q794', 'P530', 'Q15059067'] ['Q794', 'P530', 'Q566907']
ASK WHERE { resource:Q794 property:P530 resource:Q15059067 . resource:Q794 property:P530 resource:Q566907 }
No
action is_in
entity Iran
action intersection
action find_reverse
entity Sunset, Herefordshire
relation diplomatic relation
action find_reverse
entity Hambach
relation diplomatic relation
['Iran', 'diplomatic relation', 'Sunset, Herefordshire'] ['Iran', 'diplomatic relation', 'Hambach']
ASK WHERE { resource:Iran property:diplomatic_relation resource:Sunset,_Herefordshire . resource:Iran property:diplomatic_relation resource:Hambach }
[]