Simple Question (Direct)
Simple Question
Q4798577
P108
Q3918
USER
Which university is the workplace of Arthur Edward Potts ?
(Q4798577,P108,c(Q3918))
action filter_type
action find
entity Q4798577
relation P108
type Q3918
['Q4798577', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?l WHERE { resource:Q4798577 property:P108 ?l . ?l rdf:type ontology:Q3918 }
Arthur Edward Potts
action filter_type
action find
entity Arthur Edward Potts
relation employer
type university
['Arthur Edward Potts', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?l WHERE { resource:Arthur_Edward_Potts property:employer ?l . ?l rdf:type ontology:university }
[]
university
Q1136919
SYSTEM
Iowa State University
Q1136919
(Q4798577,P108,c(Q3918))
action filter_type
action find
entity Q4798577
relation P108
type Q3918
[ANSWER] is the workplace of Arthur Edward Potts
['Q4798577', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?l WHERE { resource:Q4798577 property:P108 ?l . ?l rdf:type ontology:Q3918 }
Iowa State University
Iowa State University is the workplace of Arthur Edward Potts
Iowa State University
action filter_type
action find
entity Arthur Edward Potts
relation employer
type university
['Arthur Edward Potts', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?l WHERE { resource:Arthur_Edward_Potts property:employer ?l . ?l rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4798577
P69
Q163740
USER
Which nonprofit organization was that person educated at ?
(Q1136919,P69,c(Q163740))
action filter_type
action find
entity Q4798577
relation P69
type Q163740
['Q1136919', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { resource:Q4798577 property:P69 ?s . ?s rdf:type ontology:Q163740 }
Arthur Edward Potts
action filter_type
action find
entity Arthur Edward Potts
relation educated at
type nonprofit organization
['Iowa State University', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { resource:Arthur_Edward_Potts property:educated_at ?s . ?s rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49115
SYSTEM
Cornell University
Q49115
(Q1136919,P69,c(Q163740))
action filter_type
action find
entity Q4798577
relation P69
type Q163740
That person was educated at [ANSWER]
['Q1136919', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { resource:Q4798577 property:P69 ?s . ?s rdf:type ontology:Q163740 }
Cornell University
That person was educated at Cornell University
Cornell University
action filter_type
action find
entity Arthur Edward Potts
relation educated at
type nonprofit organization
['Iowa State University', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { resource:Arthur_Edward_Potts property:educated_at ?s . ?s rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q56061 Q44539
USER
How many people are the patron saints of exactly 4 administrative territories or temples ?
(c(Q56061)|c(Q44539),P417,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
value 4
[[{'concept': 'Q56061'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { FILTER ( ?z = 4 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) ?w WHERE { { ?k property:P417 ?w . ?w rdf:type ontology:Q502895 . ?k rdf:type ontology:Q56061 } UNION { ?k property:P417 ?w . ?k rdf:type ontology:Q44539 . ?w rdf:type ontology:Q502895 } } GROUP BY ?w } }
action count
action equal
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
value 4
[[{'concept': 'administrative territorial entity'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { FILTER ( ?z = 4 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) ?w WHERE { { ?k property:patron_saint ?w . ?w rdf:type ontology:common_name . ?k rdf:type ontology:administrative_territorial_entity } UNION { ?k property:patron_saint ?w . ?k rdf:type ontology:temple . ?w rdf:type ontology:common_name } } GROUP BY ?w } }
[]
common name administrative territorial entity temple
SYSTEM
5
Q44024 Q8018 Q63070 Q346 Q310633
(c(Q56061)|c(Q44539),P417,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
value 4
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { FILTER ( ?z = 4 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) ?w WHERE { { ?k property:P417 ?w . ?w rdf:type ontology:Q502895 . ?k rdf:type ontology:Q56061 } UNION { ?k property:P417 ?w . ?k rdf:type ontology:Q44539 . ?w rdf:type ontology:Q502895 } } GROUP BY ?w } }
Athanasius of Alexandria Augustine of Hippo Mary Magdalene Louis IX of France Demetrius of Thessaloniki
5
action count
action equal
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
value 4
[[{'concept': 'administrative territorial entity'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { FILTER ( ?z = 4 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) ?w WHERE { { ?k property:patron_saint ?w . ?w rdf:type ontology:common_name . ?k rdf:type ontology:administrative_territorial_entity } UNION { ?k property:patron_saint ?w . ?k rdf:type ontology:temple . ?w rdf:type ontology:common_name } } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4383726 Q1136919
P17
Q15617994
USER
Which administrative territories do Iowa State University or Bank Negara Komuter station belong to ?
OR((Q1136919,P17,c(Q15617994)), (Q4383726,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1136919
relation P17
action find
entity Q4383726
relation P17
type Q15617994
{'OR': [['Q1136919', 'P17', {'concept': 'Q15617994'}], ['Q4383726', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { ?g property:P17 ?e . VALUES ( ?g ) { ( resource:Q1136919 ) ( resource:Q4383726 ) } } . ?e rdf:type ontology:Q15617994 }
Bank Negara Komuter station Iowa State University
action filter_type
action union
action find
entity Iowa State University
relation country
action find
entity Bank Negara Komuter station
relation country
type designation for an administrative territorial entity
{'OR': [['Iowa State University', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bank Negara Komuter station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { ?g property:country ?e . VALUES ( ?g ) { ( resource:Iowa_State_University ) ( resource:Bank_Negara_Komuter_station ) } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q833 Q30
SYSTEM
Malaysia, United States of America
Q833 Q30
OR((Q1136919,P17,c(Q15617994)), (Q4383726,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1136919
relation P17
action find
entity Q4383726
relation P17
type Q15617994
Iowa State University or Bank Negara Komuter station belong to [ANSWERS]
{'OR': [['Q1136919', 'P17', {'concept': 'Q15617994'}], ['Q4383726', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { ?g property:P17 ?e . VALUES ( ?g ) { ( resource:Q1136919 ) ( resource:Q4383726 ) } } . ?e rdf:type ontology:Q15617994 }
Malaysia United States of America
Iowa State University or Bank Negara Komuter station belong to Malaysia and United States of America
Malaysia United States of America
action filter_type
action union
action find
entity Iowa State University
relation country
action find
entity Bank Negara Komuter station
relation country
type designation for an administrative territorial entity
{'OR': [['Iowa State University', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bank Negara Komuter station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { ?g property:country ?e . VALUES ( ?g ) { ( resource:Iowa_State_University ) ( resource:Bank_Negara_Komuter_station ) } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]