Simple Question (Direct)
Simple Question
Q4648409
P735
Q82799
USER
What is forename of A. Sreedhara Menon ?
(Q4648409,P735,c(Q82799))
action filter_type
action find
entity Q4648409
relation P735
type Q82799
['Q4648409', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q82799 . resource:Q4648409 property:P735 ?q }
A. Sreedhara Menon
action filter_type
action find
entity A. Sreedhara Menon
relation given name
type name
['A. Sreedhara Menon', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:name . resource:A._Sreedhara_Menon property:given_name ?q }
[]
name
Q19803442
SYSTEM
A.
Q19803442
(Q4648409,P735,c(Q82799))
action filter_type
action find
entity Q4648409
relation P735
type Q82799
Is forename of [ANSWER]
['Q4648409', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q82799 . resource:Q4648409 property:P735 ?q }
A.
Is forename of A.
A.
action filter_type
action find
entity A. Sreedhara Menon
relation given name
type name
['A. Sreedhara Menon', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:name . resource:A._Sreedhara_Menon property:given_name ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4648409
P69
Q163740
USER
Where was that person educated ?
(Q19803442,P69,c(Q163740))
action filter_type
action find
entity Q4648409
relation P69
type Q163740
['Q19803442', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?c WHERE { resource:Q4648409 property:P69 ?c . ?c rdf:type ontology:Q163740 }
A. Sreedhara Menon
action filter_type
action find
entity A. Sreedhara Menon
relation educated at
type nonprofit organization
['A.', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?c WHERE { resource:A._Sreedhara_Menon property:educated_at ?c . ?c rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q19803442,P69,c(Q163740))
action filter_type
action find
entity Q4648409
relation P69
type Q163740
Educated At [ANSWER] that person was
['Q19803442', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?c WHERE { resource:Q4648409 property:P69 ?c . ?c rdf:type ontology:Q163740 }
Harvard University
Educated At Harvard University that person was
Harvard University
action filter_type
action find
entity A. Sreedhara Menon
relation educated at
type nonprofit organization
['A.', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?c WHERE { resource:A._Sreedhara_Menon property:educated_at ?c . ?c rdf:type ontology:nonprofit_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q13371 Q311098 Q30
P17
Q15617994
USER
Is Harvard University present in Bad Neustadt an der Saale and United States of America ?
(Q13371,P17,Q311098) (Q13371,P17,Q30)
action is_in
entity Q13371
action intersection
action find_reverse
entity Q311098
relation P17
action find_reverse
entity Q30
relation P17
['Q13371', 'P17', 'Q311098'] ['Q13371', 'P17', 'Q30']
ASK WHERE { resource:Q13371 property:P17 resource:Q311098 . resource:Q13371 property:P17 resource:Q30 }
Harvard University Bad Neustadt an der Saale United States of America
action is_in
entity Harvard University
action intersection
action find_reverse
entity Bad Neustadt an der Saale
relation country
action find_reverse
entity United States of America
relation country
['Harvard University', 'country', 'Bad Neustadt an der Saale'] ['Harvard University', 'country', 'United States of America']
ASK WHERE { resource:Harvard_University property:country resource:Bad_Neustadt_an_der_Saale . resource:Harvard_University property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q13371,P17,Q311098) (Q13371,P17,Q30)
action is_in
entity Q13371
action intersection
action find_reverse
entity Q311098
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q13371', 'P17', 'Q311098'] ['Q13371', 'P17', 'Q30']
ASK WHERE { resource:Q13371 property:P17 resource:Q311098 . resource:Q13371 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity Harvard University
action intersection
action find_reverse
entity Bad Neustadt an der Saale
relation country
action find_reverse
entity United States of America
relation country
['Harvard University', 'country', 'Bad Neustadt an der Saale'] ['Harvard University', 'country', 'United States of America']
ASK WHERE { resource:Harvard_University property:country resource:Bad_Neustadt_an_der_Saale . resource:Harvard_University property:country resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8646
P610
Q14524493
USER
What is the highest point of Hong Kong ?
(Q8646,P610,c(Q14524493))
action filter_type
action find
entity Q8646
relation P610
type Q14524493
['Q8646', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q14524493 . resource:Q8646 property:P610 ?i }
Hong Kong
action filter_type
action find
entity Hong Kong
relation highest point
type terrain
['Hong Kong', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:terrain . resource:Hong_Kong property:highest_point ?i }
[]
terrain
Q1481864
SYSTEM
Tai Mo Shan
Q1481864
(Q8646,P610,c(Q14524493))
action filter_type
action find
entity Q8646
relation P610
type Q14524493
The highest point of Hong Kong is the [ANSWER]
['Q8646', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q14524493 . resource:Q8646 property:P610 ?i }
Tai Mo Shan
The highest point of Hong Kong is the Tai Mo Shan
Tai Mo Shan
action filter_type
action find
entity Hong Kong
relation highest point
type terrain
['Hong Kong', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:terrain . resource:Hong_Kong property:highest_point ?i }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1916284
Q14524493
USER
And how about Medicine Bow Mountains?
(Q1916284,P610,c(Q14524493))
action filter_type
action find
entity Q1916284
relation P610
type Q14524493
['Q1916284', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?r WHERE { resource:Q1916284 property:P610 ?r . ?r rdf:type ontology:Q14524493 }
Medicine Bow Mountains
action filter_type
action find
entity Medicine Bow Mountains
relation highest point
type terrain
['Medicine Bow Mountains', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?r WHERE { resource:Medicine_Bow_Mountains property:highest_point ?r . ?r rdf:type ontology:terrain }
[]
terrain
Q5127348
SYSTEM
Clark Peak
Q5127348
(Q1916284,P610,c(Q14524493))
action filter_type
action find
entity Q1916284
relation P610
type Q14524493
[ANSWER]
['Q1916284', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?r WHERE { resource:Q1916284 property:P610 ?r . ?r rdf:type ontology:Q14524493 }
Clark Peak
Clark Peak
action filter_type
action find
entity Medicine Bow Mountains
relation highest point
type terrain
['Medicine Bow Mountains', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?r WHERE { resource:Medicine_Bow_Mountains property:highest_point ?r . ?r rdf:type ontology:terrain }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5127348 Q30
P17
Q15617994
USER
Is that terrain situated in United States of America ?
(Q5127348,P17,Q30)
action is_in
entity Q30
action find
entity Q5127348
relation P17
['Q5127348', 'P17', 'Q30']
ASK WHERE { resource:Q5127348 property:P17 resource:Q30 }
Clark Peak United States of America
action is_in
entity United States of America
action find
entity Clark Peak
relation country
['Clark Peak', 'country', 'United States of America']
ASK WHERE { resource:Clark_Peak property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q5127348,P17,Q30)
action is_in
entity Q30
action find
entity Q5127348
relation P17
[ANSWER]
['Q5127348', 'P17', 'Q30']
ASK WHERE { resource:Q5127348 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Clark Peak
relation country
['Clark Peak', 'country', 'United States of America']
ASK WHERE { resource:Clark_Peak property:country resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17309953 Q5127348
P17
Q15617994
USER
Which administrative territories are Clark Peak or Huai Krathing present in ?
OR((Q5127348,P17,c(Q15617994)), (Q17309953,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5127348
relation P17
action find
entity Q17309953
relation P17
type Q15617994
{'OR': [['Q5127348', 'P17', {'concept': 'Q15617994'}], ['Q17309953', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q5127348 property:P17 ?g } UNION { resource:Q17309953 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
Huai Krathing Clark Peak
action filter_type
action union
action find
entity Clark Peak
relation country
action find
entity Huai Krathing
relation country
type designation for an administrative territorial entity
{'OR': [['Clark Peak', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Huai Krathing', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Clark_Peak property:country ?g } UNION { resource:Huai_Krathing property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q869 Q30
SYSTEM
Thailand, United States of America
Q869 Q30
OR((Q5127348,P17,c(Q15617994)), (Q17309953,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5127348
relation P17
action find
entity Q17309953
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q5127348', 'P17', {'concept': 'Q15617994'}], ['Q17309953', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q5127348 property:P17 ?g } UNION { resource:Q17309953 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
Thailand United States of America
Which administrative territories are Clark Peak or Huai Krathing present in
Thailand United States of America
action filter_type
action union
action find
entity Clark Peak
relation country
action find
entity Huai Krathing
relation country
type designation for an administrative territorial entity
{'OR': [['Clark Peak', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Huai Krathing', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Clark_Peak property:country ?g } UNION { resource:Huai_Krathing property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q4164871 Q22676587 Q15617994
USER
How many administrative territories have atleast 1 positions and monarchic systems as the type of government ?
(c(Q15617994),P122,c(Q4164871)|c(Q22676587))
action count
action atleast
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) ?z WHERE { { ?z rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q4164871 . ?z property:P122 ?j } UNION { ?z property:P122 ?j . ?j rdf:type ontology:Q22676587 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?z } . FILTER ( ?r >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) ?z WHERE { { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:position . ?z property:basic_form_of_government ?j } UNION { ?z property:basic_form_of_government ?j . ?j rdf:type ontology:monarchic_system . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } . FILTER ( ?r >= 1 ) }
[]
position monarchic system designation for an administrative territorial entity
SYSTEM
5
Q833 Q313175 Q17 Q696651 Q878
(c(Q15617994),P122,c(Q4164871)|c(Q22676587))
action count
action atleast
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) ?z WHERE { { ?z rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q4164871 . ?z property:P122 ?j } UNION { ?z property:P122 ?j . ?j rdf:type ontology:Q22676587 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?z } . FILTER ( ?r >= 1 ) }
Malaysia Saxe-Lauenburg Japan Saxe-Eisenach United Arab Emirates
5
action count
action atleast
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) ?z WHERE { { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:position . ?z property:basic_form_of_government ?j } UNION { ?z property:basic_form_of_government ?j . ?j rdf:type ontology:monarchic_system . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } . FILTER ( ?r >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P840
Q11424 Q36649
USER
How many films and visual artss have a setting location of United States of America ?
(c(Q11424),P840,Q30) (c(Q36649),P840,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P840
type Q11424
action filter_type
action find_reverse
entity Q30
relation P840
type Q36649
[{'concept': 'Q11424'}, 'P840', 'Q30'] [{'concept': 'Q36649'}, 'P840', 'Q30']
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:Q11424 ) ( ontology:Q36649 ) } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation narrative location
type film
action filter_type
action find_reverse
entity United States of America
relation narrative location
type visual arts
[{'concept': 'film'}, 'narrative location', 'United States of America'] [{'concept': 'visual arts'}, 'narrative location', 'United States of America']
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:film ) ( ontology:visual_arts ) } }
[]
film visual arts
SYSTEM
3 films and 1 visual artss
Q40302 Q172284 Q4920544 Q930134
(c(Q11424),P840,Q30) (c(Q36649),P840,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P840
type Q11424
action filter_type
action find_reverse
entity Q30
relation P840
type Q36649
[ANSWER]
[{'concept': 'Q11424'}, 'P840', 'Q30'] [{'concept': 'Q36649'}, 'P840', 'Q30']
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:Q11424 ) ( ontology:Q36649 ) } }
The Fox and the Hound Lady and the Tramp Black Cobra Cats Don't Dance
3 films and 1 visual artss
action count
action union
action filter_type
action find_reverse
entity United States of America
relation narrative location
type film
action filter_type
action find_reverse
entity United States of America
relation narrative location
type visual arts
[{'concept': 'film'}, 'narrative location', 'United States of America'] [{'concept': 'visual arts'}, 'narrative location', 'United States of America']
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:film ) ( ontology:visual_arts ) } }
[]