Simple Question (Direct)
Simple Question
Q517446
P19
Q56061
USER
Which administrative territory was Vincenzo Monaldi born at ?
(Q517446,P19,c(Q56061))
action filter_type
action find
entity Q517446
relation P19
type Q56061
['Q517446', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q517446 property:P19 ?s }
Vincenzo Monaldi
action filter_type
action find
entity Vincenzo Monaldi
relation place of birth
type administrative territorial entity
['Vincenzo Monaldi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Vincenzo_Monaldi property:place_of_birth ?s }
[]
administrative territorial entity
Q59263
SYSTEM
Monte Vidon Combatte
Q59263
(Q517446,P19,c(Q56061))
action filter_type
action find
entity Q517446
relation P19
type Q56061
Vincenzo Monaldi was born in [ANSWER]
['Q517446', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q517446 property:P19 ?s }
Monte Vidon Combatte
Vincenzo Monaldi was born in Monte Vidon Combatte
Monte Vidon Combatte
action filter_type
action find
entity Vincenzo Monaldi
relation place of birth
type administrative territorial entity
['Vincenzo Monaldi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Vincenzo_Monaldi property:place_of_birth ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q59263
P47
Q15617994
USER
Which administrative territories are bordered by that administrative territory ?
(c(Q15617994),P47,Q59263)
action filter_type
action find
entity Q59263
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q59263']
SELECT DISTINCT ?y WHERE { resource:Q59263 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Monte Vidon Combatte
action filter_type
action find
entity Monte Vidon Combatte
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Monte Vidon Combatte']
SELECT DISTINCT ?y WHERE { resource:Monte_Vidon_Combatte property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q59270 Q56035 Q59282
SYSTEM
Montottone, Carassai, Petritoli
Q59241 Q59275 Q59270 Q56035 Q59282
(c(Q15617994),P47,Q59263)
action filter_type
action find
entity Q59263
relation P47
type Q15617994
[ANSWERS] are bordered by that administrative territory
[{'concept': 'Q15617994'}, 'P47', 'Q59263']
SELECT DISTINCT ?y WHERE { resource:Q59263 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Monte Giberto Ortezzano Montottone Carassai Petritoli
Montottone, Carassai and Petritoli are bordered by that administrative territory
Montottone Carassai Petritoli
action filter_type
action find
entity Monte Vidon Combatte
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Monte Vidon Combatte']
SELECT DISTINCT ?y WHERE { resource:Monte_Vidon_Combatte property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q56035
P17
Q15617994
USER
Which administrative territory does that one belong to ?
(Q56035,P17,c(Q15617994))
action filter_type
action find
entity Q56035
relation P17
type Q15617994
['Q56035', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q56035 property:P17 ?f }
Carassai
action filter_type
action find
entity Carassai
relation country
type designation for an administrative territorial entity
['Carassai', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Carassai property:country ?f }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q59282
SYSTEM
Did you mean Petritoli ?
Q59270 Q56035 Q59282
(Q59270,P17,c(Q15617994)) (Q56035,P17,c(Q15617994)) (Q59282,P17,c(Q15617994))
[ANSWER]
['Q59270', 'P17', {'concept': 'Q15617994'}] ['Q56035', 'P17', {'concept': 'Q15617994'}] ['Q59282', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q56035 property:P17 ?f }
Montottone Carassai Petritoli
Did you mean Petritoli ?
Petritoli
['Montottone', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Carassai', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Petritoli', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Carassai property:country ?f }
[]
Simple Question (Coreferenced)
USER
No, I meant Carassai. Could you tell me the answer for that?
(Q56035,P17,c(Q15617994))
Q56035
['Q56035', 'P17', {'concept': 'Q15617994'}]
['Carassai', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q56035,P17,c(Q15617994))
action filter_type
action find
entity Q56035
relation P17
type Q15617994
That one belongs to the [ANSWER]
['Q56035', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q56035 property:P17 ?f }
Italy
That one belongs to the Italy
Italy
action filter_type
action find
entity Carassai
relation country
type designation for an administrative territorial entity
['Carassai', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Carassai property:country ?f }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q56035
P47
Q56061 Q15617994
USER
How many administrative territories and administrative territories are next to the border of Carassai ?
(c(Q56061),P47,Q56035) (c(Q15617994),P47,Q56035)
action count
action union
action filter_type
action find_reverse
entity Q56035
relation P47
type Q56061
action filter_type
action find_reverse
entity Q56035
relation P47
type Q15617994
[{'concept': 'Q56061'}, 'P47', 'Q56035'] [{'concept': 'Q15617994'}, 'P47', 'Q56035']
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { ?b property:P47 resource:Q56035 . ?b rdf:type ontology:Q56061 } UNION { ?b rdf:type ontology:Q15617994 . ?b property:P47 resource:Q56035 } }
Carassai
action count
action union
action filter_type
action find_reverse
entity Carassai
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Carassai
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Carassai'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Carassai']
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { ?b property:shares_border_with resource:Carassai . ?b rdf:type ontology:administrative_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:shares_border_with resource:Carassai } }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
7
Q56078 Q56080 Q56086 Q56053 Q59282 Q59263 Q59275
(c(Q56061),P47,Q56035) (c(Q15617994),P47,Q56035)
action count
action union
action filter_type
action find_reverse
entity Q56035
relation P47
type Q56061
action filter_type
action find_reverse
entity Q56035
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q56035'] [{'concept': 'Q15617994'}, 'P47', 'Q56035']
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { ?b property:P47 resource:Q56035 . ?b rdf:type ontology:Q56061 } UNION { ?b rdf:type ontology:Q15617994 . ?b property:P47 resource:Q56035 } }
Montalto delle Marche Montefiore dell'Aso Ripatransone Cossignano Petritoli Monte Vidon Combatte Ortezzano
7
action count
action union
action filter_type
action find_reverse
entity Carassai
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Carassai
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Carassai'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Carassai']
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { ?b property:shares_border_with resource:Carassai . ?b rdf:type ontology:administrative_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:shares_border_with resource:Carassai } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1016 Q56035
P47
Q15617994
USER
Which administrative territories have a shared border with Carassai or Libya ?
OR((Q56035,P47,c(Q15617994)), (Q1016,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q56035
relation P47
action find
entity Q1016
relation P47
type Q15617994
{'OR': [['Q56035', 'P47', {'concept': 'Q15617994'}], ['Q1016', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?k property:P47 ?n . VALUES ( ?k ) { ( resource:Q1016 ) ( resource:Q56035 ) } } . ?n rdf:type ontology:Q15617994 }
Libya Carassai
action filter_type
action union
action find
entity Carassai
relation shares border with
action find
entity Libya
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Carassai', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Libya', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?k property:shares_border_with ?n . VALUES ( ?k ) { ( resource:Libya ) ( resource:Carassai ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q56078 Q1049 Q262 Q657 Q59282 Q79 Q1032 Q948 Q56086 Q56053
SYSTEM
Some of them are Montalto delle Marche, Sudan, Algeria, Chad, Petritoli, Egypt, Niger, Tunisia, Ripatransone, Cossignano
Q948 Q1032 Q79 Q262 Q59282 Q56080 Q56086 Q56053 Q56078 Q59275 Q657 Q1049
OR((Q56035,P47,c(Q15617994)), (Q1016,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q56035
relation P47
action find
entity Q1016
relation P47
type Q15617994
[ANSWERS] have a shared border with Carassai or Libya
{'OR': [['Q56035', 'P47', {'concept': 'Q15617994'}], ['Q1016', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?k property:P47 ?n . VALUES ( ?k ) { ( resource:Q1016 ) ( resource:Q56035 ) } } . ?n rdf:type ontology:Q15617994 }
Tunisia Niger Egypt Algeria Petritoli Montefiore dell'Aso Ripatransone Cossignano Montalto delle Marche Ortezzano Chad Sudan
Montalto delle Marche, Sudan, Algeria, Chad, Petritoli, Egypt, Niger, Tunisia, Ripatransone and Cossignano have a shared border with Carassai or Libya
Montalto delle Marche Sudan Algeria Chad Petritoli Egypt Niger Tunisia Ripatransone Cossignano
action filter_type
action union
action find
entity Carassai
relation shares border with
action find
entity Libya
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Carassai', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Libya', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?k property:shares_border_with ?n . VALUES ( ?k ) { ( resource:Libya ) ( resource:Carassai ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q56078 Q1049 Q262 Q657 Q59282 Q79 Q1032 Q948 Q56086 Q56053
P17
Q15617994
USER
Which administrative territories do those ones belong to ?
(Q56078,P17,c(Q15617994)) (Q1049,P17,c(Q15617994)) (Q262,P17,c(Q15617994)) (Q657,P17,c(Q15617994)) (Q59282,P17,c(Q15617994)) (Q79,P17,c(Q15617994)) (Q1032,P17,c(Q15617994)) (Q948,P17,c(Q15617994)) (Q56086,P17,c(Q15617994)) (Q56053,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q56078', 'P17', {'concept': 'Q15617994'}] ['Q1049', 'P17', {'concept': 'Q15617994'}] ['Q262', 'P17', {'concept': 'Q15617994'}] ['Q657', 'P17', {'concept': 'Q15617994'}] ['Q59282', 'P17', {'concept': 'Q15617994'}] ['Q79', 'P17', {'concept': 'Q15617994'}] ['Q1032', 'P17', {'concept': 'Q15617994'}] ['Q948', 'P17', {'concept': 'Q15617994'}] ['Q56086', 'P17', {'concept': 'Q15617994'}] ['Q56053', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?g ) { ( resource:Q948 ) ( resource:Q1032 ) ( resource:Q79 ) } . ?g property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Montalto delle Marche Sudan Algeria Chad Petritoli Egypt Niger Tunisia Ripatransone Cossignano
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Montalto delle Marche', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sudan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Algeria', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Chad', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Petritoli', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Egypt', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Niger', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tunisia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ripatransone', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cossignano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?g ) { ( resource:Tunisia ) ( resource:Niger ) ( resource:Egypt ) } . ?g property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q38 Q38
SYSTEM
Italy
Q38 Q1049 Q262 Q657 Q38 Q79 Q1032 Q948 Q38 Q38
(Q56078,P17,c(Q15617994)) (Q1049,P17,c(Q15617994)) (Q262,P17,c(Q15617994)) (Q657,P17,c(Q15617994)) (Q59282,P17,c(Q15617994)) (Q79,P17,c(Q15617994)) (Q1032,P17,c(Q15617994)) (Q948,P17,c(Q15617994)) (Q56086,P17,c(Q15617994)) (Q56053,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those ones belong to [ANSWER], [ANSWER] and [ANSWER]
['Q56078', 'P17', {'concept': 'Q15617994'}] ['Q1049', 'P17', {'concept': 'Q15617994'}] ['Q262', 'P17', {'concept': 'Q15617994'}] ['Q657', 'P17', {'concept': 'Q15617994'}] ['Q59282', 'P17', {'concept': 'Q15617994'}] ['Q79', 'P17', {'concept': 'Q15617994'}] ['Q1032', 'P17', {'concept': 'Q15617994'}] ['Q948', 'P17', {'concept': 'Q15617994'}] ['Q56086', 'P17', {'concept': 'Q15617994'}] ['Q56053', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?g ) { ( resource:Q948 ) ( resource:Q1032 ) ( resource:Q79 ) } . ?g property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Italy Sudan Algeria Chad Italy Egypt Niger Tunisia Italy Italy
Those ones belong to Italy, Italy and Italy
Italy Italy Italy
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Montalto delle Marche', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sudan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Algeria', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Chad', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Petritoli', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Egypt', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Niger', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tunisia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ripatransone', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cossignano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?g ) { ( resource:Tunisia ) ( resource:Niger ) ( resource:Egypt ) } . ?g property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q79
P180
Q2342494
USER
Which collectable expressess Egypt ?
(c(Q2342494),P180,Q79)
action filter_type
action find_reverse
entity Q79
relation P180
type Q2342494
[{'concept': 'Q2342494'}, 'P180', 'Q79']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q2342494 . ?n property:P180 resource:Q79 }
Egypt
action filter_type
action find_reverse
entity Egypt
relation depicts
type collectable
[{'concept': 'collectable'}, 'depicts', 'Egypt']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:collectable . ?n property:depicts resource:Egypt }
[]
collectable
Q18205780
SYSTEM
Description of Africa
Q18205780
(c(Q2342494),P180,Q79)
action filter_type
action find_reverse
entity Q79
relation P180
type Q2342494
[ANSWER] expressess Egypt
[{'concept': 'Q2342494'}, 'P180', 'Q79']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q2342494 . ?n property:P180 resource:Q79 }
Description of Africa
Description of Africa expressess Egypt
Description of Africa
action filter_type
action find_reverse
entity Egypt
relation depicts
type collectable
[{'concept': 'collectable'}, 'depicts', 'Egypt']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:collectable . ?n property:depicts resource:Egypt }
[]