Simple Question (Direct)
Simple Question
Q6181870
P69
Q163740
USER
Where were Jeremy Shapiro educated ?
(Q6181870,P69,c(Q163740))
action filter_type
action find
entity Q6181870
relation P69
type Q163740
['Q6181870', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?c WHERE { resource:Q6181870 property:P69 ?c . ?c rdf:type ontology:Q163740 }
Jeremy Shapiro
action filter_type
action find
entity Jeremy Shapiro
relation educated at
type nonprofit organization
['Jeremy Shapiro', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?c WHERE { resource:Jeremy_Shapiro property:educated_at ?c . ?c rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49108 Q13371 Q193727
SYSTEM
Massachusetts Institute of Technology, Harvard University, Johns Hopkins University
Q49108 Q13371 Q193727
(Q6181870,P69,c(Q163740))
action filter_type
action find
entity Q6181870
relation P69
type Q163740
Jeremy Shapiro were educated at [ANSWERS]
['Q6181870', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?c WHERE { resource:Q6181870 property:P69 ?c . ?c rdf:type ontology:Q163740 }
Massachusetts Institute of Technology Harvard University Johns Hopkins University
Jeremy Shapiro were educated at Massachusetts Institute of Technology, Harvard University and Johns Hopkins University
Massachusetts Institute of Technology Harvard University Johns Hopkins University
action filter_type
action find
entity Jeremy Shapiro
relation educated at
type nonprofit organization
['Jeremy Shapiro', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?c WHERE { resource:Jeremy_Shapiro property:educated_at ?c . ?c rdf:type ontology:nonprofit_organization }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q49108 Q13371 Q193727
P123
Q21114848
USER
Which magazine genres were published by those nonprofit organizations ?
(c(Q21114848),P123,Q49108) (c(Q21114848),P123,Q13371) (c(Q21114848),P123,Q193727)
action filter_type
action find_reverse
entity prev_answer
relation P123
type Q21114848
[{'concept': 'Q21114848'}, 'P123', 'Q49108'] [{'concept': 'Q21114848'}, 'P123', 'Q13371'] [{'concept': 'Q21114848'}, 'P123', 'Q193727']
SELECT DISTINCT ?f WHERE { VALUES ( ?k ) { ( resource:Q49108 ) ( resource:Q13371 ) ( resource:Q193727 ) } . ?f rdf:type ontology:Q21114848 . ?f property:P123 ?k }
Massachusetts Institute of Technology Harvard University Johns Hopkins University
action filter_type
action find_reverse
entity prev_answer
relation publisher
type magazine genre
[{'concept': 'magazine genre'}, 'publisher', 'Massachusetts Institute of Technology'] [{'concept': 'magazine genre'}, 'publisher', 'Harvard University'] [{'concept': 'magazine genre'}, 'publisher', 'Johns Hopkins University']
SELECT DISTINCT ?f WHERE { VALUES ( ?k ) { ( resource:Massachusetts_Institute_of_Technology ) ( resource:Harvard_University ) ( resource:Johns_Hopkins_University ) } . ?f rdf:type ontology:magazine_genre . ?f property:publisher ?k }
[]
magazine genre
Q7738955 Q6716324 Q5676271
SYSTEM
The Harvard Review of Philosophy, MIT Sloan Management Review, Harvard Asia Pacific Review
Q6716324 Q5676271 Q7738955 Q4939967
(c(Q21114848),P123,Q49108) (c(Q21114848),P123,Q13371) (c(Q21114848),P123,Q193727)
action filter_type
action find_reverse
entity prev_answer
relation P123
type Q21114848
The [ANSWERS] were published by those nonprofit organizations
[{'concept': 'Q21114848'}, 'P123', 'Q49108'] [{'concept': 'Q21114848'}, 'P123', 'Q13371'] [{'concept': 'Q21114848'}, 'P123', 'Q193727']
SELECT DISTINCT ?f WHERE { VALUES ( ?k ) { ( resource:Q49108 ) ( resource:Q13371 ) ( resource:Q193727 ) } . ?f rdf:type ontology:Q21114848 . ?f property:P123 ?k }
MIT Sloan Management Review Harvard Asia Pacific Review The Harvard Review of Philosophy Bologna Center Journal of International Affairs
The The Harvard Review of Philosophy, MIT Sloan Management Review and Harvard Asia Pacific Review were published by those nonprofit organizations
The Harvard Review of Philosophy MIT Sloan Management Review Harvard Asia Pacific Review
action filter_type
action find_reverse
entity prev_answer
relation publisher
type magazine genre
[{'concept': 'magazine genre'}, 'publisher', 'Massachusetts Institute of Technology'] [{'concept': 'magazine genre'}, 'publisher', 'Harvard University'] [{'concept': 'magazine genre'}, 'publisher', 'Johns Hopkins University']
SELECT DISTINCT ?f WHERE { VALUES ( ?k ) { ( resource:Massachusetts_Institute_of_Technology ) ( resource:Harvard_University ) ( resource:Johns_Hopkins_University ) } . ?f rdf:type ontology:magazine_genre . ?f property:publisher ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7738955
P17
Q15617994
USER
Which administrative territory is The Harvard Review of Philosophy located in ?
(Q7738955,P17,c(Q15617994))
action filter_type
action find
entity Q7738955
relation P17
type Q15617994
['Q7738955', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7738955 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
The Harvard Review of Philosophy
action filter_type
action find
entity The Harvard Review of Philosophy
relation country
type designation for an administrative territorial entity
['The Harvard Review of Philosophy', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:The_Harvard_Review_of_Philosophy property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7738955,P17,c(Q15617994))
action filter_type
action find
entity Q7738955
relation P17
type Q15617994
The Harvard Review of Philosophy is located in [ANSWER]
['Q7738955', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7738955 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
The Harvard Review of Philosophy is located in United States of America
United States of America
action filter_type
action find
entity The Harvard Review of Philosophy
relation country
type designation for an administrative territorial entity
['The Harvard Review of Philosophy', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:The_Harvard_Review_of_Philosophy property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q328818
Q11204
USER
And also tell me about Kingdom of Kent?
(Q328818,P194,c(Q11204))
action filter_type
action find
entity Q328818
relation P194
type Q11204
['Q328818', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?r WHERE { resource:Q328818 property:P194 ?r . ?r rdf:type ontology:Q11204 }
Kingdom of Kent
action filter_type
action find
entity Kingdom of Kent
relation legislative body
type legislature
['Kingdom of Kent', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?r WHERE { resource:Kingdom_of_Kent property:legislative_body ?r . ?r rdf:type ontology:legislature }
[]
legislature
Q497578
SYSTEM
Witenagemot
Q497578
(Q328818,P194,c(Q11204))
action filter_type
action find
entity Q328818
relation P194
type Q11204
[ANSWER]
['Q328818', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?r WHERE { resource:Q328818 property:P194 ?r . ?r rdf:type ontology:Q11204 }
Witenagemot
Witenagemot
action filter_type
action find
entity Kingdom of Kent
relation legislative body
type legislature
['Kingdom of Kent', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?r WHERE { resource:Kingdom_of_Kent property:legislative_body ?r . ?r rdf:type ontology:legislature }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P194
Q11204 Q56061
USER
How many legislatures represent more number of administrative territories than that legislature ?
(c(Q56061),P194,c(Q11204))
action count
action greater
action find_reverse_tuple_counts
relation P194
type Q11204
type Q56061
action count
action filter_type
action find
entity Q497578
relation P194
type Q11204
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { resource:Q497578 property:P194 ?n . ?n rdf:type ontology:Q11204 } } . FILTER ( ?p > ?e ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P194 ?x . ?x rdf:type ontology:Q11204 . ?l rdf:type ontology:Q56061 } GROUP BY ?x } }
action count
action greater
action find_reverse_tuple_counts
relation legislative body
type legislature
type administrative territorial entity
action count
action filter_type
action find
entity Witenagemot
relation legislative body
type legislature
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { resource:Witenagemot property:legislative_body ?n . ?n rdf:type ontology:legislature } } . FILTER ( ?p > ?e ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:legislative_body ?x . ?x rdf:type ontology:legislature . ?l rdf:type ontology:administrative_territorial_entity } GROUP BY ?x } }
[]
legislature administrative territorial entity
SYSTEM
8
Q285714 Q6518465 Q775994 Q6527389 Q7604031 Q6664413 Q7478146 Q3658756
(c(Q56061),P194,c(Q11204))
action count
action greater
action find_reverse_tuple_counts
relation P194
type Q11204
type Q56061
action count
action filter_type
action find
entity Q497578
relation P194
type Q11204
[ANSWER]
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { resource:Q497578 property:P194 ?n . ?n rdf:type ontology:Q11204 } } . FILTER ( ?p > ?e ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P194 ?x . ?x rdf:type ontology:Q11204 . ?l rdf:type ontology:Q56061 } GROUP BY ?x } }
Northern Ireland Assembly Legislature of the Virgin Islands Council of Paris Council of the District of Columbia States of Alderney Peterborough City Council Pontifical Commission for Vatican City State San Francisco Board of Supervisors
8
action count
action greater
action find_reverse_tuple_counts
relation legislative body
type legislature
type administrative territorial entity
action count
action filter_type
action find
entity Witenagemot
relation legislative body
type legislature
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { resource:Witenagemot property:legislative_body ?n . ?n rdf:type ontology:legislature } } . FILTER ( ?p > ?e ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:legislative_body ?x . ?x rdf:type ontology:legislature . ?l rdf:type ontology:administrative_territorial_entity } GROUP BY ?x } }
[]