Simple Question (Direct)
Simple Question
Q16616215
P39
Q12737077
USER
Which occupation was a position held by Tommaso Pellegrino ?
(Q16616215,P39,c(Q12737077))
action filter_type
action find
entity Q16616215
relation P39
type Q12737077
['Q16616215', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q16616215 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Tommaso Pellegrino
action filter_type
action find
entity Tommaso Pellegrino
relation position held
type occupation
['Tommaso Pellegrino', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Tommaso_Pellegrino property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q16616215,P39,c(Q12737077))
action filter_type
action find
entity Q16616215
relation P39
type Q12737077
The [ANSWER] was a position held by Tommaso Pellegrino
['Q16616215', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q16616215 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
member of the Chamber of Deputies of the Italian Republic
The member of the Chamber of Deputies of the Italian Republic was a position held by Tommaso Pellegrino
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Tommaso Pellegrino
relation position held
type occupation
['Tommaso Pellegrino', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Tommaso_Pellegrino property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q18558478 Q16259431 Q7986544
P17
Q15617994
USER
Is that occupation present in Noble Local School District and West Somerset ?
(Q18558478,P17,Q16259431) (Q18558478,P17,Q7986544)
action is_in
entity Q18558478
action intersection
action find_reverse
entity Q16259431
relation P17
action find_reverse
entity Q7986544
relation P17
['Q18558478', 'P17', 'Q16259431'] ['Q18558478', 'P17', 'Q7986544']
ASK WHERE { resource:Q18558478 property:P17 resource:Q16259431 . resource:Q18558478 property:P17 resource:Q7986544 }
member of the Chamber of Deputies of the Italian Republic Noble Local School District West Somerset
action is_in
entity member of the Chamber of Deputies of the Italian Republic
action intersection
action find_reverse
entity Noble Local School District
relation country
action find_reverse
entity West Somerset
relation country
['member of the Chamber of Deputies of the Italian Republic', 'country', 'Noble Local School District'] ['member of the Chamber of Deputies of the Italian Republic', 'country', 'West Somerset']
ASK WHERE { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:country resource:Noble_Local_School_District . resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:country resource:West_Somerset }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q18558478,P17,Q16259431) (Q18558478,P17,Q7986544)
action is_in
entity Q18558478
action intersection
action find_reverse
entity Q16259431
relation P17
action find_reverse
entity Q7986544
relation P17
[ANSWER]
['Q18558478', 'P17', 'Q16259431'] ['Q18558478', 'P17', 'Q7986544']
ASK WHERE { resource:Q18558478 property:P17 resource:Q16259431 . resource:Q18558478 property:P17 resource:Q7986544 }
No
action is_in
entity member of the Chamber of Deputies of the Italian Republic
action intersection
action find_reverse
entity Noble Local School District
relation country
action find_reverse
entity West Somerset
relation country
['member of the Chamber of Deputies of the Italian Republic', 'country', 'Noble Local School District'] ['member of the Chamber of Deputies of the Italian Republic', 'country', 'West Somerset']
ASK WHERE { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:country resource:Noble_Local_School_District . resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:country resource:West_Somerset }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1603308
Q15617994
USER
And also tell me about Helmsley Building?
(Q1603308,P17,c(Q15617994))
action filter_type
action find
entity Q1603308
relation P17
type Q15617994
['Q1603308', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1603308 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Helmsley Building
action filter_type
action find
entity Helmsley Building
relation country
type designation for an administrative territorial entity
['Helmsley Building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Helmsley_Building property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1603308,P17,c(Q15617994))
action filter_type
action find
entity Q1603308
relation P17
type Q15617994
[ANSWER]
['Q1603308', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1603308 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Helmsley Building
relation country
type designation for an administrative territorial entity
['Helmsley Building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Helmsley_Building property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have ambassadorial relations with approximately 62 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 62
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?m ) WHERE { ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 . ?q property:P530 ?u } GROUP BY ?q } . FILTER ( ?m = 62 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 62
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?m ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?u } GROUP BY ?q } . FILTER ( ?m = 62 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q155
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 62
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?m ) WHERE { ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 . ?q property:P530 ?u } GROUP BY ?q } . FILTER ( ?m = 62 ) }
Brazil
1
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 62
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?m ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?u } GROUP BY ?q } . FILTER ( ?m = 62 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16616215
P1412
Q34770
USER
Which language is Tommaso Pellegrino capable of writing ?
(Q16616215,P1412,c(Q34770))
action filter_type
action find
entity Q16616215
relation P1412
type Q34770
['Q16616215', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q16616215 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
Tommaso Pellegrino
action filter_type
action find
entity Tommaso Pellegrino
relation languages spoken, written or signed
type language
['Tommaso Pellegrino', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Tommaso_Pellegrino property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q16616215,P1412,c(Q34770))
action filter_type
action find
entity Q16616215
relation P1412
type Q34770
[ANSWER] is Tommaso Pellegrino capable of writing
['Q16616215', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q16616215 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
Italian
Italian is Tommaso Pellegrino capable of writing
Italian
action filter_type
action find
entity Tommaso Pellegrino
relation languages spoken, written or signed
type language
['Tommaso Pellegrino', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Tommaso_Pellegrino property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16616215
P937
Q56061
USER
What is the location where Tommaso Pellegrino worked ?
(Q16616215,P937,c(Q56061))
action filter_type
action find
entity Q16616215
relation P937
type Q56061
['Q16616215', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q16616215 property:P937 ?b . ?b rdf:type ontology:Q56061 }
Tommaso Pellegrino
action filter_type
action find
entity Tommaso Pellegrino
relation work location
type administrative territorial entity
['Tommaso Pellegrino', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Tommaso_Pellegrino property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q16616215,P937,c(Q56061))
action filter_type
action find
entity Q16616215
relation P937
type Q56061
The location Tommaso Pellegrino worked is in [ANSWER]
['Q16616215', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q16616215 property:P937 ?b . ?b rdf:type ontology:Q56061 }
Rome
The location Tommaso Pellegrino worked is in Rome
Rome
action filter_type
action find
entity Tommaso Pellegrino
relation work location
type administrative territorial entity
['Tommaso Pellegrino', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Tommaso_Pellegrino property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16616215
P21
Q290
USER
Which sex does Tommaso Pellegrino have ?
(Q16616215,P21,c(Q290))
action filter_type
action find
entity Q16616215
relation P21
type Q290
['Q16616215', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q16616215 property:P21 ?y . ?y rdf:type ontology:Q290 }
Tommaso Pellegrino
action filter_type
action find
entity Tommaso Pellegrino
relation gender
type sex
['Tommaso Pellegrino', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Tommaso_Pellegrino property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16616215,P21,c(Q290))
action filter_type
action find
entity Q16616215
relation P21
type Q290
Tommaso Pellegrino has a [ANSWER]
['Q16616215', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q16616215 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
Tommaso Pellegrino has a male
male
action filter_type
action find
entity Tommaso Pellegrino
relation gender
type sex
['Tommaso Pellegrino', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Tommaso_Pellegrino property:gender ?y . ?y rdf:type ontology:sex }
[]