Simple Question (Direct)
Simple Question
Q847130
P47
Q1048835
USER
Which political territories have a shared border with Beasain ?
(Q847130,P47,c(Q1048835))
action filter_type
action find
entity Q847130
relation P47
type Q1048835
['Q847130', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q847130 property:P47 ?j . ?j rdf:type ontology:Q1048835 }
Beasain
action filter_type
action find
entity Beasain
relation shares border with
type political territorial entity
['Beasain', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Beasain property:shares_border_with ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q180611 Q1619118 Q672483
SYSTEM
Azpeitia, Idiazabal, Ordizia
Q1110918 Q180611 Q1625906 Q1639397 Q932808 Q932872 Q1619118 Q1618340 Q672483 Q670498
(Q847130,P47,c(Q1048835))
action filter_type
action find
entity Q847130
relation P47
type Q1048835
[ANSWERS] have a shared border with Beasain
['Q847130', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q847130 property:P47 ?j . ?j rdf:type ontology:Q1048835 }
Ezkio-Itsaso Azpeitia Beizama Itsasondo Ormaiztegi Lazkao Idiazabal Olaberria Ordizia Bidania-Goiatz
Azpeitia, Idiazabal and Ordizia have a shared border with Beasain
Azpeitia Idiazabal Ordizia
action filter_type
action find
entity Beasain
relation shares border with
type political territorial entity
['Beasain', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Beasain property:shares_border_with ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q672483
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that political territory ?
(Q672483,P1313,c(Q12737077))
action filter_type
action find
entity Q672483
relation P1313
type Q12737077
['Q672483', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q672483 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
Ordizia
action filter_type
action find
entity Ordizia
relation office held by head of government
type occupation
['Ordizia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Ordizia property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q1619118
SYSTEM
Did you mean Idiazabal ?
Q180611 Q1619118 Q672483
(Q180611,P1313,c(Q12737077)) (Q1619118,P1313,c(Q12737077)) (Q672483,P1313,c(Q12737077))
[ANSWER]
['Q180611', 'P1313', {'concept': 'Q12737077'}] ['Q1619118', 'P1313', {'concept': 'Q12737077'}] ['Q672483', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q672483 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
Azpeitia Idiazabal Ordizia
Did you mean Idiazabal ?
Idiazabal
['Azpeitia', 'office held by head of government', {'concept': 'occupation'}] ['Idiazabal', 'office held by head of government', {'concept': 'occupation'}] ['Ordizia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Ordizia property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Ordizia. Could you tell me the answer for that?
(Q672483,P1313,c(Q12737077))
Q672483
['Q672483', 'P1313', {'concept': 'Q12737077'}]
['Ordizia', 'office held by head of government', {'concept': 'occupation'}]
[]
Q26699571
SYSTEM
mayor of Ordicia
Q26699571
(Q672483,P1313,c(Q12737077))
action filter_type
action find
entity Q672483
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that political territory
['Q672483', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q672483 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
mayor of Ordicia
The mayor of Ordicia serves as the political office that is fulfilled by the head of the government of that political territory
mayor of Ordicia
action filter_type
action find
entity Ordizia
relation office held by head of government
type occupation
['Ordizia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Ordizia property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q26699571 Q29
P17
Q15617994
USER
Is that occupation a part of Spain ?
(Q26699571,P17,Q29)
action is_in
entity Q29
action find
entity Q26699571
relation P17
['Q26699571', 'P17', 'Q29']
ASK WHERE { resource:Q26699571 property:P17 resource:Q29 }
mayor of Ordicia Spain
action is_in
entity Spain
action find
entity mayor of Ordicia
relation country
['mayor of Ordicia', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Ordicia property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q26699571,P17,Q29)
action is_in
entity Q29
action find
entity Q26699571
relation P17
[ANSWER]
['Q26699571', 'P17', 'Q29']
ASK WHERE { resource:Q26699571 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity mayor of Ordicia
relation country
['mayor of Ordicia', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Ordicia property:country resource:Spain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q672483
P190
Q56061 Q1048835
USER
How many administrative territories and political territories are twin town of Ordizia ?
(c(Q56061),P190,Q672483) (c(Q1048835),P190,Q672483)
action count
action union
action filter_type
action find_reverse
entity Q672483
relation P190
type Q56061
action filter_type
action find_reverse
entity Q672483
relation P190
type Q1048835
[{'concept': 'Q56061'}, 'P190', 'Q672483'] [{'concept': 'Q1048835'}, 'P190', 'Q672483']
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } . ?s rdf:type ?m }
Ordizia
action count
action union
action filter_type
action find_reverse
entity Ordizia
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Ordizia
relation sister city
type political territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Ordizia'] [{'concept': 'political territorial entity'}, 'sister city', 'Ordizia']
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } . ?s rdf:type ?m }
[]
administrative territorial entity political territorial entity
SYSTEM
2 administrative territories and 1 political territories
Q1407143 Q324489 Q81398
(c(Q56061),P190,Q672483) (c(Q1048835),P190,Q672483)
action count
action union
action filter_type
action find_reverse
entity Q672483
relation P190
type Q56061
action filter_type
action find_reverse
entity Q672483
relation P190
type Q1048835
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q672483'] [{'concept': 'Q1048835'}, 'P190', 'Q672483']
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } . ?s rdf:type ?m }
Santa Amalia Trujillo Acapulco
2 administrative territories and 1 political territories
action count
action union
action filter_type
action find_reverse
entity Ordizia
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Ordizia
relation sister city
type political territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Ordizia'] [{'concept': 'political territorial entity'}, 'sister city', 'Ordizia']
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } . ?s rdf:type ?m }
[]