Simple Question (Direct)
Simple Question
Q1540875
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Alfredo Cariello ?
(Q1540875,P27,c(Q15617994))
action filter_type
action find
entity Q1540875
relation P27
type Q15617994
['Q1540875', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q1540875 property:P27 ?v }
Alfredo Cariello
action filter_type
action find
entity Alfredo Cariello
relation country of citizenship
type designation for an administrative territorial entity
['Alfredo Cariello', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alfredo_Cariello property:country_of_citizenship ?v }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q1540875,P27,c(Q15617994))
action filter_type
action find
entity Q1540875
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Alfredo Cariello
['Q1540875', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q1540875 property:P27 ?v }
Italy
Italy is the country of citizenship of Alfredo Cariello
Italy
action filter_type
action find
entity Alfredo Cariello
relation country of citizenship
type designation for an administrative territorial entity
['Alfredo Cariello', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alfredo_Cariello property:country_of_citizenship ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1540875
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q38,P19,c(Q56061))
action filter_type
action find
entity Q1540875
relation P19
type Q56061
['Q38', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1540875 property:P19 ?m }
Alfredo Cariello
action filter_type
action find
entity Alfredo Cariello
relation place of birth
type administrative territorial entity
['Italy', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Alfredo_Cariello property:place_of_birth ?m }
[]
administrative territorial entity
Q2634
SYSTEM
Naples
Q2634
(Q38,P19,c(Q56061))
action filter_type
action find
entity Q1540875
relation P19
type Q56061
That person was born in [ANSWER]
['Q38', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1540875 property:P19 ?m }
Naples
That person was born in Naples
Naples
action filter_type
action find
entity Alfredo Cariello
relation place of birth
type administrative territorial entity
['Italy', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Alfredo_Cariello property:place_of_birth ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P276
Q1190554 Q219087
USER
How many events or military strategies are located at that administrative territory ?
(c(Q1190554),P276,Q2634) (c(Q219087),P276,Q2634) (c(Q1190554),P276,Q2634) (c(Q219087),P276,Q2634)
action count
action union
action filter_type
action find_reverse
entity Q2634
relation P276
type Q1190554
action filter_type
action find_reverse
entity Q2634
relation P276
type Q219087
[{'concept': 'Q1190554'}, 'P276', 'Q2634'] [{'concept': 'Q219087'}, 'P276', 'Q2634'] [{'concept': 'Q1190554'}, 'P276', 'Q2634'] [{'concept': 'Q219087'}, 'P276', 'Q2634']
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { VALUES ( ?k ) { ( ontology:Q1190554 ) ( ontology:Q219087 ) } . ?c rdf:type ?k }
action count
action union
action filter_type
action find_reverse
entity Naples
relation location
type event
action filter_type
action find_reverse
entity Naples
relation location
type military strategy
[{'concept': 'event'}, 'location', 'Naples'] [{'concept': 'military strategy'}, 'location', 'Naples'] [{'concept': 'event'}, 'location', 'Naples'] [{'concept': 'military strategy'}, 'location', 'Naples']
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { VALUES ( ?k ) { ( ontology:event ) ( ontology:military_strategy ) } . ?c rdf:type ?k }
[]
event military strategy
SYSTEM
3
Q3641948 Q3625055 Q4872897
(c(Q1190554),P276,Q2634) (c(Q219087),P276,Q2634) (c(Q1190554),P276,Q2634) (c(Q219087),P276,Q2634)
action count
action union
action filter_type
action find_reverse
entity Q2634
relation P276
type Q1190554
action filter_type
action find_reverse
entity Q2634
relation P276
type Q219087
[ANSWER]
[{'concept': 'Q1190554'}, 'P276', 'Q2634'] [{'concept': 'Q219087'}, 'P276', 'Q2634'] [{'concept': 'Q1190554'}, 'P276', 'Q2634'] [{'concept': 'Q219087'}, 'P276', 'Q2634']
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { VALUES ( ?k ) { ( ontology:Q1190554 ) ( ontology:Q219087 ) } . ?c rdf:type ?k }
Bombing of Naples in World War II Capture of Neapolis Battle of the Counts
3
action count
action union
action filter_type
action find_reverse
entity Naples
relation location
type event
action filter_type
action find_reverse
entity Naples
relation location
type military strategy
[{'concept': 'event'}, 'location', 'Naples'] [{'concept': 'military strategy'}, 'location', 'Naples'] [{'concept': 'event'}, 'location', 'Naples'] [{'concept': 'military strategy'}, 'location', 'Naples']
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { VALUES ( ?k ) { ( ontology:event ) ( ontology:military_strategy ) } . ?c rdf:type ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2634
P291
Q2342494
USER
Which collectables were published in that administrative territory ?
action filter_type
action find_reverse
entity Q2634
relation P291
type Q2342494
SELECT DISTINCT ?k WHERE { ?k property:P291 resource:Q2634 . ?k rdf:type ontology:Q2342494 }
Naples
action filter_type
action find_reverse
entity Naples
relation place of publication
type collectable
SELECT DISTINCT ?k WHERE { ?k property:place_of_publication resource:Naples . ?k rdf:type ontology:collectable }
[]
collectable
Q20899747 Q16651936
SYSTEM
Campi Phlegræi, Disputació de cinc savis
Q20899747 Q16651936
action filter_type
action find_reverse
entity Q2634
relation P291
type Q2342494
[ANSWERS] were published in that administrative territory
SELECT DISTINCT ?k WHERE { ?k property:P291 resource:Q2634 . ?k rdf:type ontology:Q2342494 }
Campi Phlegræi Disputació de cinc savis
Campi Phlegræi and Disputació de cinc savis were published in that administrative territory
Campi Phlegræi Disputació de cinc savis
action filter_type
action find_reverse
entity Naples
relation place of publication
type collectable
SELECT DISTINCT ?k WHERE { ?k property:place_of_publication resource:Naples . ?k rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q20899747 Q171877
P800
Q502895
USER
How many people have Campi Phlegræi or hydrogen peroxide as their notable work ?
(c(Q502895),P800,Q20899747) (c(Q502895),P800,Q171877)
action count
action union
action filter_type
action find_reverse
entity Q20899747
relation P800
type Q502895
action filter_type
action find_reverse
entity Q171877
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q20899747'] [{'concept': 'Q502895'}, 'P800', 'Q171877']
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { VALUES ( ?f ) { ( resource:Q20899747 ) ( resource:Q171877 ) } . ?l property:P800 ?f }
Campi Phlegræi hydrogen peroxide
action count
action union
action filter_type
action find_reverse
entity Campi Phlegræi
relation notable work
type common name
action filter_type
action find_reverse
entity hydrogen peroxide
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Campi Phlegræi'] [{'concept': 'common name'}, 'notable work', 'hydrogen peroxide']
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { VALUES ( ?f ) { ( resource:Campi_Phlegræi ) ( resource:hydrogen_peroxide ) } . ?l property:notable_work ?f }
[]
common name
SYSTEM
2
Q327722 Q15462
(c(Q502895),P800,Q20899747) (c(Q502895),P800,Q171877)
action count
action union
action filter_type
action find_reverse
entity Q20899747
relation P800
type Q502895
action filter_type
action find_reverse
entity Q171877
relation P800
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q20899747'] [{'concept': 'Q502895'}, 'P800', 'Q171877']
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { VALUES ( ?f ) { ( resource:Q20899747 ) ( resource:Q171877 ) } . ?l property:P800 ?f }
Louis Jacques Thénard William Hamilton
2
action count
action union
action filter_type
action find_reverse
entity Campi Phlegræi
relation notable work
type common name
action filter_type
action find_reverse
entity hydrogen peroxide
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Campi Phlegræi'] [{'concept': 'common name'}, 'notable work', 'hydrogen peroxide']
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { VALUES ( ?f ) { ( resource:Campi_Phlegræi ) ( resource:hydrogen_peroxide ) } . ?l property:notable_work ?f }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q41003 Q38
P47 P530
Q15617994
USER
Which administrative territories holds diplomatic relationship with Italy or are adjacent to Palestro ?
OR((Q38,P530,c(Q15617994)), (Q41003,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q41003
relation P47
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q41003', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q38 property:P530 ?e } UNION { resource:Q41003 property:P47 ?e } } . ?e rdf:type ontology:Q15617994 }
Palestro Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Palestro
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Palestro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Italy property:diplomatic_relation ?e } UNION { resource:Palestro property:shares_border_with ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q114 Q252 Q17 Q29 Q191 Q403 Q189 Q414 Q213
SYSTEM
Some of them are Switzerland, Kenya, Indonesia, Japan, Spain, Estonia, Serbia, Iceland, Argentina, Czech Republic
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q230 Q668 Q25176 Q347 Q414 Q25171 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39849 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q40679 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q40369 Q233 Q5990 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q22655 Q881
OR((Q38,P530,c(Q15617994)), (Q41003,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q41003
relation P47
type Q15617994
[ANSWERS] hold diplomatic relationship with Italy or are adjacent to Palestro
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q41003', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q38 property:P530 ?e } UNION { resource:Q41003 property:P47 ?e } } . ?e rdf:type ontology:Q15617994 }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru Georgia India Prarolo Liechtenstein Argentina Pezzana France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Robbio Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Rosasco Philippines Chile Portugal Indonesia Kenya Armenia Serbia Confienza Malta Vercelli South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vinzaglio Vietnam
Switzerland, Kenya, Indonesia, Japan, Spain, Estonia, Serbia, Iceland, Argentina and Czech Republic hold diplomatic relationship with Italy or are adjacent to Palestro
Switzerland Kenya Indonesia Japan Spain Estonia Serbia Iceland Argentina Czech Republic
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Palestro
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Palestro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Italy property:diplomatic_relation ?e } UNION { resource:Palestro property:shares_border_with ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q191
P710
Q15275719
USER
Which recurring event was that administrative territory a participant of ?
(c(Q15275719),P710,Q191)
action filter_type
action find_reverse
entity Q191
relation P710
type Q15275719
[{'concept': 'Q15275719'}, 'P710', 'Q191']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q191 . ?t rdf:type ontology:Q15275719 }
Estonia
action filter_type
action find_reverse
entity Estonia
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Estonia']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:Estonia . ?t rdf:type ontology:recurring_event }
[]
recurring event
Clarification for simple ques.
Q189
SYSTEM
Did you mean Iceland ?
Q39 Q114 Q252 Q17 Q29 Q191 Q403 Q189 Q414 Q213
(c(Q15275719),P710,Q39) (c(Q15275719),P710,Q114) (c(Q15275719),P710,Q252) (c(Q15275719),P710,Q17) (c(Q15275719),P710,Q29) (c(Q15275719),P710,Q191) (c(Q15275719),P710,Q403) (c(Q15275719),P710,Q189) (c(Q15275719),P710,Q414) (c(Q15275719),P710,Q213)
[ANSWER]
[{'concept': 'Q15275719'}, 'P710', 'Q39'] [{'concept': 'Q15275719'}, 'P710', 'Q114'] [{'concept': 'Q15275719'}, 'P710', 'Q252'] [{'concept': 'Q15275719'}, 'P710', 'Q17'] [{'concept': 'Q15275719'}, 'P710', 'Q29'] [{'concept': 'Q15275719'}, 'P710', 'Q191'] [{'concept': 'Q15275719'}, 'P710', 'Q403'] [{'concept': 'Q15275719'}, 'P710', 'Q189'] [{'concept': 'Q15275719'}, 'P710', 'Q414'] [{'concept': 'Q15275719'}, 'P710', 'Q213']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q191 . ?t rdf:type ontology:Q15275719 }
Switzerland Kenya Indonesia Japan Spain Estonia Serbia Iceland Argentina Czech Republic
Did you mean Iceland ?
Iceland
[{'concept': 'recurring event'}, 'participant', 'Switzerland'] [{'concept': 'recurring event'}, 'participant', 'Kenya'] [{'concept': 'recurring event'}, 'participant', 'Indonesia'] [{'concept': 'recurring event'}, 'participant', 'Japan'] [{'concept': 'recurring event'}, 'participant', 'Spain'] [{'concept': 'recurring event'}, 'participant', 'Estonia'] [{'concept': 'recurring event'}, 'participant', 'Serbia'] [{'concept': 'recurring event'}, 'participant', 'Iceland'] [{'concept': 'recurring event'}, 'participant', 'Argentina'] [{'concept': 'recurring event'}, 'participant', 'Czech Republic']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:Estonia . ?t rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
USER
No, I meant Estonia. Could you tell me the answer for that?
(c(Q15275719),P710,Q191)
Q191
[{'concept': 'Q15275719'}, 'P710', 'Q191']
[{'concept': 'recurring event'}, 'participant', 'Estonia']
[]
Q207815
SYSTEM
Eurovision Song Contest 1996
Q207815
(c(Q15275719),P710,Q191)
action filter_type
action find_reverse
entity Q191
relation P710
type Q15275719
[ANSWER] was that administrative territory a participant of
[{'concept': 'Q15275719'}, 'P710', 'Q191']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q191 . ?t rdf:type ontology:Q15275719 }
Eurovision Song Contest 1996
Eurovision Song Contest 1996 was that administrative territory a participant of
Eurovision Song Contest 1996
action filter_type
action find_reverse
entity Estonia
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Estonia']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:Estonia . ?t rdf:type ontology:recurring_event }
[]