Simple Question (Direct)
Simple Question
Q3770125
P20
Q56061
USER
Where did Giuseppe Bicocchi expire ?
(Q3770125,P20,c(Q56061))
action filter_type
action find
entity Q3770125
relation P20
type Q56061
['Q3770125', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q3770125 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Giuseppe Bicocchi
action filter_type
action find
entity Giuseppe Bicocchi
relation place of death
type administrative territorial entity
['Giuseppe Bicocchi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Giuseppe_Bicocchi property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q13375
SYSTEM
Pisa
Q13375
(Q3770125,P20,c(Q56061))
action filter_type
action find
entity Q3770125
relation P20
type Q56061
Giuseppe Bicocchi expired [ANSWER]
['Q3770125', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q3770125 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Pisa
Giuseppe Bicocchi expired Pisa
Pisa
action filter_type
action find
entity Giuseppe Bicocchi
relation place of death
type administrative territorial entity
['Giuseppe Bicocchi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Giuseppe_Bicocchi property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13375
P915
Q838948
USER
Which work of art was filmed at that administrative territory ?
(c(Q838948),P915,Q13375)
action filter_type
action find_reverse
entity Q13375
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q13375']
SELECT DISTINCT ?d WHERE { ?d property:P915 resource:Q13375 . ?d rdf:type ontology:Q838948 }
Pisa
action filter_type
action find_reverse
entity Pisa
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Pisa']
SELECT DISTINCT ?d WHERE { ?d property:filming_location resource:Pisa . ?d rdf:type ontology:work_of_art }
[]
work of art
Q6354481
SYSTEM
The Leaning Tower
Q6354481
(c(Q838948),P915,Q13375)
action filter_type
action find_reverse
entity Q13375
relation P915
type Q838948
[ANSWER] was filmed at that administrative territory
[{'concept': 'Q838948'}, 'P915', 'Q13375']
SELECT DISTINCT ?d WHERE { ?d property:P915 resource:Q13375 . ?d rdf:type ontology:Q838948 }
The Leaning Tower
The Leaning Tower was filmed at that administrative territory
The Leaning Tower
action filter_type
action find_reverse
entity Pisa
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Pisa']
SELECT DISTINCT ?d WHERE { ?d property:filming_location resource:Pisa . ?d rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13375
P6
Q502895
USER
Who is the head of the government of Pisa ?
(Q13375,P6,c(Q502895))
action filter_type
action find
entity Q13375
relation P6
type Q502895
['Q13375', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q13375 property:P6 ?b . ?b rdf:type ontology:Q502895 }
Pisa
action filter_type
action find
entity Pisa
relation head of government
type common name
['Pisa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Pisa property:head_of_government ?b . ?b rdf:type ontology:common_name }
[]
common name
Q3846120
SYSTEM
Marco Filippeschi
Q3846120
(Q13375,P6,c(Q502895))
action filter_type
action find
entity Q13375
relation P6
type Q502895
The head of the government of Pisa is named [ANSWER]
['Q13375', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q13375 property:P6 ?b . ?b rdf:type ontology:Q502895 }
Marco Filippeschi
The head of the government of Pisa is named Marco Filippeschi
Marco Filippeschi
action filter_type
action find
entity Pisa
relation head of government
type common name
['Pisa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Pisa property:head_of_government ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3846120
P39
Q12737077
USER
What were the positions for which that person were appointed ?
(Q3846120,P39,c(Q12737077))
action filter_type
action find
entity Q3846120
relation P39
type Q12737077
['Q3846120', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q3846120 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
Marco Filippeschi
action filter_type
action find
entity Marco Filippeschi
relation position held
type occupation
['Marco Filippeschi', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Marco_Filippeschi property:position_held ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q18558478 Q30185
SYSTEM
member of the Chamber of Deputies of the Italian Republic, mayor
Q18558478 Q30185
(Q3846120,P39,c(Q12737077))
action filter_type
action find
entity Q3846120
relation P39
type Q12737077
[ANSWERS]
['Q3846120', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q3846120 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
member of the Chamber of Deputies of the Italian Republic mayor
Member of the Chamber of Deputies of the Italian Republic and mayor
member of the Chamber of Deputies of the Italian Republic mayor
action filter_type
action find
entity Marco Filippeschi
relation position held
type occupation
['Marco Filippeschi', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Marco_Filippeschi property:position_held ?d . ?d rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q101812 Q3770125
P47 P27
Q15617994
USER
Which administrative territories are Giuseppe Bicocchi a civilian of or are adjacent to Zogno ?
OR((Q3770125,P27,c(Q15617994)), (Q101812,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q3770125
relation P27
action find
entity Q101812
relation P47
type Q15617994
{'OR': [['Q3770125', 'P27', {'concept': 'Q15617994'}], ['Q101812', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q3770125 property:P27 ?k } UNION { resource:Q101812 property:P47 ?k } } . ?k rdf:type ontology:Q15617994 }
Zogno Giuseppe Bicocchi
action filter_type
action union
action find
entity Giuseppe Bicocchi
relation country of citizenship
action find
entity Zogno
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Giuseppe Bicocchi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zogno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Giuseppe_Bicocchi property:country_of_citizenship ?k } UNION { resource:Zogno property:shares_border_with ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q101428 Q99983 Q38 Q101551 Q101612 Q101569 Q95059 Q101269 Q95066
SYSTEM
Ponteranica, Bracca, Italy, San Pellegrino Terme, Sorisole, Sedrina, Algua, Nembro, Alzano Lombardo
Q101428 Q99983 Q38 Q101551 Q101612 Q101569 Q95059 Q101269 Q95066
OR((Q3770125,P27,c(Q15617994)), (Q101812,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q3770125
relation P27
action find
entity Q101812
relation P47
type Q15617994
[ANSWERS] are Giuseppe Bicocchi a civilian of or are adjacent to Zogno
{'OR': [['Q3770125', 'P27', {'concept': 'Q15617994'}], ['Q101812', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q3770125 property:P27 ?k } UNION { resource:Q101812 property:P47 ?k } } . ?k rdf:type ontology:Q15617994 }
Ponteranica Bracca Italy San Pellegrino Terme Sorisole Sedrina Algua Nembro Alzano Lombardo
Ponteranica, Bracca, Italy, San Pellegrino Terme, Sorisole, Sedrina, Algua, Nembro and Alzano Lombardo are Giuseppe Bicocchi a civilian of or are adjacent to Zogno
Ponteranica Bracca Italy San Pellegrino Terme Sorisole Sedrina Algua Nembro Alzano Lombardo
action filter_type
action union
action find
entity Giuseppe Bicocchi
relation country of citizenship
action find
entity Zogno
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Giuseppe Bicocchi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zogno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Giuseppe_Bicocchi property:country_of_citizenship ?k } UNION { resource:Zogno property:shares_border_with ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q101812
P47
Q56061
USER
How many administrative territories share the border with Zogno ?
(Q101812,P47,c(Q56061))
action count
action filter_type
action find
entity Q101812
relation P47
type Q56061
['Q101812', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q101812 property:P47 ?a }
Zogno
action count
action filter_type
action find
entity Zogno
relation shares border with
type administrative territorial entity
['Zogno', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Zogno property:shares_border_with ?a }
[]
administrative territorial entity
SYSTEM
1
Q100436
(Q101812,P47,c(Q56061))
action count
action filter_type
action find
entity Q101812
relation P47
type Q56061
[ANSWER]
['Q101812', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q101812 property:P47 ?a }
Costa di Serina
1
action count
action filter_type
action find
entity Zogno
relation shares border with
type administrative territorial entity
['Zogno', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Zogno property:shares_border_with ?a }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q464598
Q56061
USER
And also tell me about American Fork?
(Q464598,P47,c(Q56061))
action count
action filter_type
action find
entity Q464598
relation P47
type Q56061
['Q464598', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:Q464598 property:P47 ?z . ?z rdf:type ontology:Q56061 }
American Fork
action count
action filter_type
action find
entity American Fork
relation shares border with
type administrative territorial entity
['American Fork', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:American_Fork property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
2
(Q464598,P47,c(Q56061))
action count
action filter_type
action find
entity Q464598
relation P47
type Q56061
[ANSWER]
['Q464598', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:Q464598 property:P47 ?z . ?z rdf:type ontology:Q56061 }
2
action count
action filter_type
action find
entity American Fork
relation shares border with
type administrative territorial entity
['American Fork', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:American_Fork property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4502309 Q3770125
P937
Q56061
USER
Which administrative territories did Giuseppe Bicocchi or Israel Michael Sigal work ?
OR((Q3770125,P937,c(Q56061)), (Q4502309,P937,c(Q56061)))
action filter_type
action union
action find
entity Q3770125
relation P937
action find
entity Q4502309
relation P937
type Q56061
{'OR': [['Q3770125', 'P937', {'concept': 'Q56061'}], ['Q4502309', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q4502309 property:P937 ?z } UNION { resource:Q3770125 property:P937 ?z } } . ?z rdf:type ontology:Q56061 }
Israel Michael Sigal Giuseppe Bicocchi
action filter_type
action union
action find
entity Giuseppe Bicocchi
relation work location
action find
entity Israel Michael Sigal
relation work location
type administrative territorial entity
{'OR': [['Giuseppe Bicocchi', 'work location', {'concept': 'administrative territorial entity'}], ['Israel Michael Sigal', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Israel_Michael_Sigal property:work_location ?z } UNION { resource:Giuseppe_Bicocchi property:work_location ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q172 Q220
SYSTEM
Toronto, Rome
Q172 Q220
OR((Q3770125,P937,c(Q56061)), (Q4502309,P937,c(Q56061)))
action filter_type
action union
action find
entity Q3770125
relation P937
action find
entity Q4502309
relation P937
type Q56061
Giuseppe Bicocchi or Israel Michael Sigal worked in [ANSWERS]
{'OR': [['Q3770125', 'P937', {'concept': 'Q56061'}], ['Q4502309', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q4502309 property:P937 ?z } UNION { resource:Q3770125 property:P937 ?z } } . ?z rdf:type ontology:Q56061 }
Toronto Rome
Giuseppe Bicocchi or Israel Michael Sigal worked in Toronto and Rome
Toronto Rome
action filter_type
action union
action find
entity Giuseppe Bicocchi
relation work location
action find
entity Israel Michael Sigal
relation work location
type administrative territorial entity
{'OR': [['Giuseppe Bicocchi', 'work location', {'concept': 'administrative territorial entity'}], ['Israel Michael Sigal', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Israel_Michael_Sigal property:work_location ?z } UNION { resource:Giuseppe_Bicocchi property:work_location ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]