Simple Question (Direct)
Simple Question
Q2076700
P7
Q502895
USER
Who is the brother of William Ashurst ?
(Q2076700,P7,c(Q502895))
action filter_type
action find
entity Q2076700
relation P7
type Q502895
['Q2076700', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2076700 property:P7 ?j . ?j rdf:type ontology:Q502895 }
William Ashurst
action filter_type
action find
entity William Ashurst
relation brother
type common name
['William Ashurst', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:William_Ashurst property:brother ?j . ?j rdf:type ontology:common_name }
[]
common name
Q5360163
SYSTEM
Eli Ashurst
Q5360163
(Q2076700,P7,c(Q502895))
action filter_type
action find
entity Q2076700
relation P7
type Q502895
The brother of William Ashurst is named [ANSWER]
['Q2076700', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2076700 property:P7 ?j . ?j rdf:type ontology:Q502895 }
Eli Ashurst
The brother of William Ashurst is named Eli Ashurst
Eli Ashurst
action filter_type
action find
entity William Ashurst
relation brother
type common name
['William Ashurst', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:William_Ashurst property:brother ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5360163
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q5360163,P20,c(Q56061))
action filter_type
action find
entity Q5360163
relation P20
type Q56061
['Q5360163', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q5360163 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Eli Ashurst
action filter_type
action find
entity Eli Ashurst
relation place of death
type administrative territorial entity
['Eli Ashurst', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Eli_Ashurst property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1613441
SYSTEM
Willington, County Durham
Q1613441
(Q5360163,P20,c(Q56061))
action filter_type
action find
entity Q5360163
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q5360163', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q5360163 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Willington, County Durham
Willington, County Durham is the place of death of that person
Willington, County Durham
action filter_type
action find
entity Eli Ashurst
relation place of death
type administrative territorial entity
['Eli Ashurst', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Eli_Ashurst property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q14087682 Q5360163
P20
Q56061
USER
Or Philippe Vandenberg?
OR((Q5360163,P20,c(Q56061)), (Q14087682,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5360163
relation P20
action find
entity Q14087682
relation P20
type Q56061
{'OR': [['Q5360163', 'P20', {'concept': 'Q56061'}], ['Q14087682', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?n ) { ( resource:Q5360163 ) ( resource:Q14087682 ) } . ?n property:P20 ?o } . ?o rdf:type ontology:Q56061 }
Philippe Vandenberg Eli Ashurst
action filter_type
action union
action find
entity Eli Ashurst
relation place of death
action find
entity Philippe Vandenberg
relation place of death
type administrative territorial entity
{'OR': [['Eli Ashurst', 'place of death', {'concept': 'administrative territorial entity'}], ['Philippe Vandenberg', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?n ) { ( resource:Eli_Ashurst ) ( resource:Philippe_Vandenberg ) } . ?n property:place_of_death ?o } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1613441 Q239
SYSTEM
Willington, County Durham, Brussels
Q1613441 Q239
OR((Q5360163,P20,c(Q56061)), (Q14087682,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5360163
relation P20
action find
entity Q14087682
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q5360163', 'P20', {'concept': 'Q56061'}], ['Q14087682', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?n ) { ( resource:Q5360163 ) ( resource:Q14087682 ) } . ?n property:P20 ?o } . ?o rdf:type ontology:Q56061 }
Willington, County Durham Brussels
Willington, County Durham Brussels
action filter_type
action union
action find
entity Eli Ashurst
relation place of death
action find
entity Philippe Vandenberg
relation place of death
type administrative territorial entity
{'OR': [['Eli Ashurst', 'place of death', {'concept': 'administrative territorial entity'}], ['Philippe Vandenberg', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?n ) { ( resource:Eli_Ashurst ) ( resource:Philippe_Vandenberg ) } . ?n property:place_of_death ?o } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1613441 Q239
P17
Q15617994
USER
Which administrative territories are Willington, County Durham and Brussels located in ?
(Q1613441,P17,c(Q15617994)) (Q239,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1613441
relation P17
type Q15617994
action filter_type
action find
entity Q239
relation P17
type Q15617994
['Q1613441', 'P17', {'concept': 'Q15617994'}] ['Q239', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?v property:P17 ?u . VALUES ( ?v ) { ( resource:Q239 ) ( resource:Q1613441 ) } }
Willington, County Durham Brussels
action union
action filter_type
action find
entity Willington, County Durham
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Brussels
relation country
type designation for an administrative territorial entity
['Willington, County Durham', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brussels', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?v property:country ?u . VALUES ( ?v ) { ( resource:Brussels ) ( resource:Willington,_County_Durham ) } }
[]
designation for an administrative territorial entity
Q145 Q31
SYSTEM
United Kingdom, Belgium
Q145 Q31
(Q1613441,P17,c(Q15617994)) (Q239,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1613441
relation P17
type Q15617994
action filter_type
action find
entity Q239
relation P17
type Q15617994
Willington , County Durham and Brussels are located in [ANSWERS]
['Q1613441', 'P17', {'concept': 'Q15617994'}] ['Q239', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?v property:P17 ?u . VALUES ( ?v ) { ( resource:Q239 ) ( resource:Q1613441 ) } }
United Kingdom Belgium
Willington , County Durham and Brussels are located in United Kingdom and Belgium
United Kingdom Belgium
action union
action filter_type
action find
entity Willington, County Durham
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Brussels
relation country
type designation for an administrative territorial entity
['Willington, County Durham', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brussels', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?v property:country ?u . VALUES ( ?v ) { ( resource:Brussels ) ( resource:Willington,_County_Durham ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q31
P47
Q15617994
USER
Which administrative territories are adjacent to that one ?
(Q31,P47,c(Q15617994))
action filter_type
action find
entity Q31
relation P47
type Q15617994
['Q31', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q31 property:P47 ?s }
Belgium
action filter_type
action find
entity Belgium
relation shares border with
type designation for an administrative territorial entity
['Belgium', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belgium property:shares_border_with ?s }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q31
SYSTEM
Did you mean Belgium ?
Q145 Q31
(Q145,P47,c(Q15617994)) (Q31,P47,c(Q15617994))
[ANSWER]
['Q145', 'P47', {'concept': 'Q15617994'}] ['Q31', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q31 property:P47 ?s }
United Kingdom Belgium
Did you mean Belgium ?
Belgium
['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Belgium', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belgium property:shares_border_with ?s }
[]
Simple Question (Coreferenced)
USER
Yes
(Q31,P47,c(Q15617994))
['Q31', 'P47', {'concept': 'Q15617994'}]
['Belgium', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142 Q32 Q29999
SYSTEM
France, Luxembourg, Kingdom of the Netherlands
Q142 Q32 Q29999
(Q31,P47,c(Q15617994))
action filter_type
action find
entity Q31
relation P47
type Q15617994
[ANSWERS] are adjacent to that one
['Q31', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q31 property:P47 ?s }
France Luxembourg Kingdom of the Netherlands
France, Luxembourg and Kingdom of the Netherlands are adjacent to that one
France Luxembourg Kingdom of the Netherlands
action filter_type
action find
entity Belgium
relation shares border with
type designation for an administrative territorial entity
['Belgium', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belgium property:shares_border_with ?s }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q458
P112
Q56061
USER
Were European Union started by those administrative territories ?
(Q458,P112,Q142) (Q458,P112,Q32) (Q458,P112,Q29999)
action is_in
entity prev_answer
action find
entity Q458
relation P112
['Q458', 'P112', 'Q142'] ['Q458', 'P112', 'Q32'] ['Q458', 'P112', 'Q29999']
ASK WHERE { VALUES ( ?y ) { ( resource:Q142 ) ( resource:Q32 ) ( resource:Q29999 ) } . resource:Q458 property:P112 ?y }
European Union
action is_in
entity prev_answer
action find
entity European Union
relation founder
['European Union', 'founder', 'France'] ['European Union', 'founder', 'Luxembourg'] ['European Union', 'founder', 'Kingdom of the Netherlands']
ASK WHERE { VALUES ( ?y ) { ( resource:France ) ( resource:Luxembourg ) ( resource:Kingdom_of_the_Netherlands ) } . resource:European_Union property:founder ?y }
[]
administrative territorial entity
SYSTEM
YES
(Q458,P112,Q142) (Q458,P112,Q32) (Q458,P112,Q29999)
action is_in
entity prev_answer
action find
entity Q458
relation P112
[ANSWER]
['Q458', 'P112', 'Q142'] ['Q458', 'P112', 'Q32'] ['Q458', 'P112', 'Q29999']
ASK WHERE { VALUES ( ?y ) { ( resource:Q142 ) ( resource:Q32 ) ( resource:Q29999 ) } . resource:Q458 property:P112 ?y }
Yes
action is_in
entity prev_answer
action find
entity European Union
relation founder
['European Union', 'founder', 'France'] ['European Union', 'founder', 'Luxembourg'] ['European Union', 'founder', 'Kingdom of the Netherlands']
ASK WHERE { VALUES ( ?y ) { ( resource:France ) ( resource:Luxembourg ) ( resource:Kingdom_of_the_Netherlands ) } . resource:European_Union property:founder ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q32 Q183
P530
Q1048835
USER
Does Germany have diplomatic relations with Luxembourg ?
(Q32,P530,Q183)
action is_in
entity Q183
action find
entity Q32
relation P530
['Q32', 'P530', 'Q183']
ASK WHERE { resource:Q32 property:P530 resource:Q183 }
Luxembourg Germany
action is_in
entity Germany
action find
entity Luxembourg
relation diplomatic relation
['Luxembourg', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Luxembourg property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q32,P530,Q183)
action is_in
entity Q183
action find
entity Q32
relation P530
[ANSWER]
['Q32', 'P530', 'Q183']
ASK WHERE { resource:Q32 property:P530 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Luxembourg
relation diplomatic relation
['Luxembourg', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Luxembourg property:diplomatic_relation resource:Germany }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q490
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories have greater number of holidays or people as their patron saint than Milan ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q490
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?g WHERE { { ?g property:P417 ?t . ?g rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 } UNION { ?g property:P417 ?t . ?g rdf:type ontology:Q56061 . ?t rdf:type ontology:Q1445650 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Q490 property:P417 ?f . { ?f rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } } } . FILTER ( ?w > ?q ) }
Milan
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Milan
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?g WHERE { { ?g property:patron_saint ?t . ?g rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name } UNION { ?g property:patron_saint ?t . ?g rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:holiday } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Milan property:patron_saint ?f . { ?f rdf:type ?x . VALUES ( ?x ) { ( ontology:holiday ) ( ontology:common_name ) } } } } . FILTER ( ?w > ?q ) }
[]
holiday common name administrative territorial entity
Q39519 Q220
SYSTEM
Brinzio, Rome
Q39519 Q220
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q490
relation P417
type Q1445650
type Q502895
[ANSWERS] have greater number of holidays or people as their patron saint than Milan
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?g WHERE { { ?g property:P417 ?t . ?g rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 } UNION { ?g property:P417 ?t . ?g rdf:type ontology:Q56061 . ?t rdf:type ontology:Q1445650 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Q490 property:P417 ?f . { ?f rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } } } . FILTER ( ?w > ?q ) }
Brinzio Rome
Brinzio and Rome have greater number of holidays or people as their patron saint than Milan
Brinzio Rome
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Milan
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?g WHERE { { ?g property:patron_saint ?t . ?g rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name } UNION { ?g property:patron_saint ?t . ?g rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:holiday } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Milan property:patron_saint ?f . { ?f rdf:type ?x . VALUES ( ?x ) { ( ontology:holiday ) ( ontology:common_name ) } } } } . FILTER ( ?w > ?q ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q39519 Q220
P47
Q15617994
USER
Which administrative territories do those administrative territories share a border with ?
(c(Q15617994),P47,Q39519) (c(Q15617994),P47,Q220)
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q39519'] [{'concept': 'Q15617994'}, 'P47', 'Q220']
SELECT DISTINCT ?s WHERE { ?k property:P47 ?s . VALUES ( ?k ) { ( resource:Q39519 ) ( resource:Q220 ) } . ?s rdf:type ontology:Q15617994 }
Brinzio Rome
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Brinzio'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Rome']
SELECT DISTINCT ?s WHERE { ?k property:shares_border_with ?s . VALUES ( ?k ) { ( resource:Brinzio ) ( resource:Rome ) } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q242703 Q243133 Q242926
SYSTEM
Grottaferrata, Palestrina, Marino, Lazio
Q40911 Q39505 Q40229 Q40768 Q40525 Q241911 Q242645 Q243133 Q242661 Q243172 Q243168 Q140255 Q242942 Q242105 Q242513 Q242965 Q242558 Q242926 Q242703 Q242998 Q243497 Q243188 Q191115 Q159605 Q243311 Q242120 Q243364 Q19326 Q241733 Q190963 Q241693 Q242710 Q242637
(c(Q15617994),P47,Q39519) (c(Q15617994),P47,Q220)
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P47', 'Q39519'] [{'concept': 'Q15617994'}, 'P47', 'Q220']
SELECT DISTINCT ?s WHERE { ?k property:P47 ?s . VALUES ( ?k ) { ( resource:Q39519 ) ( resource:Q220 ) } . ?s rdf:type ontology:Q15617994 }
Bedero Valcuvia Castello Cabiaglio Induno Olona Valganna Rancio Valcuvia Campagnano di Roma Formello Palestrina Gallicano nel Lazio Pomezia Poli, Lazio Zagarolo Mentana Castel Gandolfo Ciampino Monte Porzio Catone Colonna, Lazio Marino, Lazio Grottaferrata Monterotondo Trevignano Romano Riano, Lazio Albano Laziale Tivoli Sacrofano Castel San Pietro Romano San Gregorio da Sassola Fiumicino Ardea Frascati Anguillara Sabazia Guidonia Montecelio Fonte Nuova
Those administrative territories share a border with Grottaferrata, Palestrina and Marino, Lazio
Grottaferrata Palestrina Marino, Lazio
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Brinzio'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Rome']
SELECT DISTINCT ?s WHERE { ?k property:shares_border_with ?s . VALUES ( ?k ) { ( resource:Brinzio ) ( resource:Rome ) } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q242703 Q243133 Q242926
P47
Q15617994
USER
Which administrative territories are adjacent to those ones ?
(Q242703,P47,c(Q15617994)) (Q243133,P47,c(Q15617994)) (Q242926,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
['Q242703', 'P47', {'concept': 'Q15617994'}] ['Q243133', 'P47', {'concept': 'Q15617994'}] ['Q242926', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . VALUES ( ?u ) { ( resource:Q40911 ) ( resource:Q39505 ) ( resource:Q40229 ) } . ?u property:P47 ?z }
Grottaferrata Palestrina Marino, Lazio
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Grottaferrata', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Palestrina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Marino, Lazio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?u ) { ( resource:Bedero_Valcuvia ) ( resource:Castello_Cabiaglio ) ( resource:Induno_Olona ) } . ?u property:shares_border_with ?z }
[]
designation for an administrative territorial entity
Q242703 Q243228 Q243228
SYSTEM
Rocca di Papa for 2nd, 3rd, Grottaferrata for 1st
Q242926 Q190963 Q242965 Q242105 Q242513 Q243228 Q243346 Q242779 Q140255 Q243220 Q243210 Q241770 Q177726 Q242661 Q242120 Q243228 Q242513 Q242703 Q242105
(Q242703,P47,c(Q15617994)) (Q243133,P47,c(Q15617994)) (Q242926,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS]
['Q242703', 'P47', {'concept': 'Q15617994'}] ['Q243133', 'P47', {'concept': 'Q15617994'}] ['Q242926', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . VALUES ( ?u ) { ( resource:Q40911 ) ( resource:Q39505 ) ( resource:Q40229 ) } . ?u property:P47 ?z }
Marino, Lazio Frascati Monte Porzio Catone Castel Gandolfo Ciampino Rocca di Papa San Cesareo Labico Zagarolo Rocca di Cave Rocca Priora Artena Cave Gallicano nel Lazio Castel San Pietro Romano Rocca di Papa Ciampino Grottaferrata Castel Gandolfo
Grottaferrata, Rocca di Papa and Rocca di Papa are adjacent to those ones
Grottaferrata Rocca di Papa Rocca di Papa
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Grottaferrata', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Palestrina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Marino, Lazio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?u ) { ( resource:Bedero_Valcuvia ) ( resource:Castello_Cabiaglio ) ( resource:Induno_Olona ) } . ?u property:shares_border_with ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q243228
P190
Q1048835
USER
Which political territory is twin city of that administrative territory ?
(Q243228,P190,c(Q1048835))
action filter_type
action find
entity Q243228
relation P190
type Q1048835
['Q243228', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q243228 property:P190 ?r . ?r rdf:type ontology:Q1048835 }
Rocca di Papa
action filter_type
action find
entity Rocca di Papa
relation sister city
type political territorial entity
['Rocca di Papa', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Rocca_di_Papa property:sister_city ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q243228
SYSTEM
Did you mean Rocca di Papa ?
Q242703 Q243228 Q243228
(Q242703,P190,c(Q1048835)) (Q243228,P190,c(Q1048835)) (Q243228,P190,c(Q1048835))
[ANSWER]
['Q242703', 'P190', {'concept': 'Q1048835'}] ['Q243228', 'P190', {'concept': 'Q1048835'}] ['Q243228', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q243228 property:P190 ?r . ?r rdf:type ontology:Q1048835 }
Grottaferrata Rocca di Papa Rocca di Papa
Did you mean Rocca di Papa ?
Rocca di Papa
['Grottaferrata', 'sister city', {'concept': 'political territorial entity'}] ['Rocca di Papa', 'sister city', {'concept': 'political territorial entity'}] ['Rocca di Papa', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Rocca_di_Papa property:sister_city ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q243228,P190,c(Q1048835))
['Q243228', 'P190', {'concept': 'Q1048835'}]
['Rocca di Papa', 'sister city', {'concept': 'political territorial entity'}]
[]
Q254699
SYSTEM
Alanís
Q254699
(Q243228,P190,c(Q1048835))
action filter_type
action find
entity Q243228
relation P190
type Q1048835
[ANSWER] is twin city of that administrative territory
['Q243228', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q243228 property:P190 ?r . ?r rdf:type ontology:Q1048835 }
Alanís
Alanís is twin city of that administrative territory
Alanís
action filter_type
action find
entity Rocca di Papa
relation sister city
type political territorial entity
['Rocca di Papa', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Rocca_di_Papa property:sister_city ?r . ?r rdf:type ontology:political_territorial_entity }
[]