Simple Question (Direct)
Simple Question
Q1331014
P162
Q502895
USER
Who produced Sahara ?
(Q1331014,P162,c(Q502895))
action filter_type
action find
entity Q1331014
relation P162
type Q502895
['Q1331014', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1331014 property:P162 ?q . ?q rdf:type ontology:Q502895 }
Sahara
action filter_type
action find
entity Sahara
relation producer
type common name
['Sahara', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Sahara property:producer ?q . ?q rdf:type ontology:common_name }
[]
common name
Q1124614 Q5919037 Q345683
SYSTEM
Karen Dianne Baldwin, Howard Baldwin, Mace Neufeld
Q5919037 Q345683 Q1124614 Q7608218
(Q1331014,P162,c(Q502895))
action filter_type
action find
entity Q1331014
relation P162
type Q502895
[ANSWERS] produced Sahara
['Q1331014', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1331014 property:P162 ?q . ?q rdf:type ontology:Q502895 }
Howard Baldwin Mace Neufeld Karen Dianne Baldwin Stephanie Austin
Karen Dianne Baldwin, Howard Baldwin and Mace Neufeld produced Sahara
Karen Dianne Baldwin Howard Baldwin Mace Neufeld
action filter_type
action find
entity Sahara
relation producer
type common name
['Sahara', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Sahara property:producer ?q . ?q rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q345683
P69
Q9826
USER
Where was that person educated ?
(Q345683,P69,c(Q9826))
action filter_type
action find
entity Q345683
relation P69
type Q9826
['Q345683', 'P69', {'concept': 'Q9826'}]
SELECT DISTINCT ?o WHERE { resource:Q345683 property:P69 ?o . ?o rdf:type ontology:Q9826 }
Mace Neufeld
action filter_type
action find
entity Mace Neufeld
relation educated at
type high school
['Mace Neufeld', 'educated at', {'concept': 'high school'}]
SELECT DISTINCT ?o WHERE { resource:Mace_Neufeld property:educated_at ?o . ?o rdf:type ontology:high_school }
[]
high school
Clarification for simple ques.
Q345683
SYSTEM
Did you mean Mace Neufeld ?
Q1124614 Q5919037 Q345683
(Q1124614,P69,c(Q9826)) (Q5919037,P69,c(Q9826)) (Q345683,P69,c(Q9826))
[ANSWER]
['Q1124614', 'P69', {'concept': 'Q9826'}] ['Q5919037', 'P69', {'concept': 'Q9826'}] ['Q345683', 'P69', {'concept': 'Q9826'}]
SELECT DISTINCT ?o WHERE { resource:Q345683 property:P69 ?o . ?o rdf:type ontology:Q9826 }
Karen Dianne Baldwin Howard Baldwin Mace Neufeld
Did you mean Mace Neufeld ?
Mace Neufeld
['Karen Dianne Baldwin', 'educated at', {'concept': 'high school'}] ['Howard Baldwin', 'educated at', {'concept': 'high school'}] ['Mace Neufeld', 'educated at', {'concept': 'high school'}]
SELECT DISTINCT ?o WHERE { resource:Mace_Neufeld property:educated_at ?o . ?o rdf:type ontology:high_school }
[]
Simple Question (Coreferenced)
USER
Yes
(Q345683,P69,c(Q9826))
['Q345683', 'P69', {'concept': 'Q9826'}]
['Mace Neufeld', 'educated at', {'concept': 'high school'}]
[]
Q3098911
SYSTEM
Stuyvesant High School
Q3098911
(Q345683,P69,c(Q9826))
action filter_type
action find
entity Q345683
relation P69
type Q9826
[ANSWER] that person was educated
['Q345683', 'P69', {'concept': 'Q9826'}]
SELECT DISTINCT ?o WHERE { resource:Q345683 property:P69 ?o . ?o rdf:type ontology:Q9826 }
Stuyvesant High School
Stuyvesant High School that person was educated
Stuyvesant High School
action filter_type
action find
entity Mace Neufeld
relation educated at
type high school
['Mace Neufeld', 'educated at', {'concept': 'high school'}]
SELECT DISTINCT ?o WHERE { resource:Mace_Neufeld property:educated_at ?o . ?o rdf:type ontology:high_school }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P159
Q56061
USER
How many administrative territories are the head office for that high school located ?
(Q3098911,P159,c(Q56061))
action count
action filter_type
action find
entity Q3098911
relation P159
type Q56061
['Q3098911', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q3098911 property:P159 ?v . ?v rdf:type ontology:Q56061 }
action count
action filter_type
action find
entity Stuyvesant High School
relation headquarters location
type administrative territorial entity
['Stuyvesant High School', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Stuyvesant_High_School property:headquarters_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q60
(Q3098911,P159,c(Q56061))
action count
action filter_type
action find
entity Q3098911
relation P159
type Q56061
[ANSWER]
['Q3098911', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q3098911 property:P159 ?v . ?v rdf:type ontology:Q56061 }
New York City
1
action count
action filter_type
action find
entity Stuyvesant High School
relation headquarters location
type administrative territorial entity
['Stuyvesant High School', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Stuyvesant_High_School property:headquarters_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q453192 Q345683
P19
Q56061
USER
Which administrative territories were Mace Neufeld or Luiz Razia born at ?
OR((Q345683,P19,c(Q56061)), (Q453192,P19,c(Q56061)))
action filter_type
action union
action find
entity Q345683
relation P19
action find
entity Q453192
relation P19
type Q56061
{'OR': [['Q345683', 'P19', {'concept': 'Q56061'}], ['Q453192', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?a ) { ( resource:Q345683 ) ( resource:Q453192 ) } . ?a property:P19 ?i } . ?i rdf:type ontology:Q56061 }
Luiz Razia Mace Neufeld
action filter_type
action union
action find
entity Mace Neufeld
relation place of birth
action find
entity Luiz Razia
relation place of birth
type administrative territorial entity
{'OR': [['Mace Neufeld', 'place of birth', {'concept': 'administrative territorial entity'}], ['Luiz Razia', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?a ) { ( resource:Mace_Neufeld ) ( resource:Luiz_Razia ) } . ?a property:place_of_birth ?i } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1384520 Q60
SYSTEM
Barreiras, New York City
Q1384520 Q60
OR((Q345683,P19,c(Q56061)), (Q453192,P19,c(Q56061)))
action filter_type
action union
action find
entity Q345683
relation P19
action find
entity Q453192
relation P19
type Q56061
Mace Neufeld or Luiz Razia were born in [ANSWERS]
{'OR': [['Q345683', 'P19', {'concept': 'Q56061'}], ['Q453192', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?a ) { ( resource:Q345683 ) ( resource:Q453192 ) } . ?a property:P19 ?i } . ?i rdf:type ontology:Q56061 }
Barreiras New York City
Mace Neufeld or Luiz Razia were born in Barreiras and New York City
Barreiras New York City
action filter_type
action union
action find
entity Mace Neufeld
relation place of birth
action find
entity Luiz Razia
relation place of birth
type administrative territorial entity
{'OR': [['Mace Neufeld', 'place of birth', {'concept': 'administrative territorial entity'}], ['Luiz Razia', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?a ) { ( resource:Mace_Neufeld ) ( resource:Luiz_Razia ) } . ?a property:place_of_birth ?i } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q345683
P162 P364
Q838948
USER
Which works of art have been produced by Mace Neufeld and were originally created in English language ?
AND((c(Q838948),P162,Q345683), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q345683
relation P162
action find_reverse
entity Q1860
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P162', 'Q345683'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?t WHERE { ?t property:P162 resource:Q345683 . ?t property:P364 resource:Q1860 . ?t rdf:type ontology:Q838948 }
English Mace Neufeld
action filter_type
action intersection
action find_reverse
entity Mace Neufeld
relation producer
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'producer', 'Mace Neufeld'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?t WHERE { ?t property:producer resource:Mace_Neufeld . ?t property:original_language_of_work resource:English . ?t rdf:type ontology:work_of_art }
[]
work of art
Q1305081 Q689842 Q1048846 Q1331014 Q855222 Q2736572 Q484860 Q1425487 Q1392442 Q1753817
SYSTEM
Some of them are The Frisco Kid, Invictus, The Sum of All Fears, Sahara, Patriot Games, The Funhouse, The Aviator, The General's Daughter, Clear and Present Danger, The Saint
Q676500 Q1392442 Q689842 Q507994 Q1331014 Q1305081 Q2736572 Q855222 Q1425487 Q484860 Q902672 Q7340833 Q705802 Q727893 Q654736 Q7835477 Q1048846 Q13562643 Q1753817
AND((c(Q838948),P162,Q345683), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q345683
relation P162
action find_reverse
entity Q1860
relation P364
type Q838948
[ANSWERS] have been produced by Mace Neufeld and were originally created in English language
{'AND': [[{'concept': 'Q838948'}, 'P162', 'Q345683'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?t WHERE { ?t property:P162 resource:Q345683 . ?t property:P364 resource:Q1860 . ?t rdf:type ontology:Q838948 }
Necessary Roughness Clear and Present Danger Invictus The Hunt for Red October Sahara The Frisco Kid The Funhouse Patriot Games The General's Daughter The Aviator Jack Ryan: Shadow Recruit Robbery Under Arms Flight of the Intruder Bless the Child Beverly Hills Cop III Transylvania 6-5000 The Sum of All Fears The Equalizer The Saint
The Frisco Kid, Invictus, The Sum of All Fears, Sahara, Patriot Games, The Funhouse, The Aviator, The General's Daughter, Clear and Present Danger and The Saint have been produced by Mace Neufeld and were originally created in English language
The Frisco Kid Invictus The Sum of All Fears Sahara Patriot Games The Funhouse The Aviator The General's Daughter Clear and Present Danger The Saint
action filter_type
action intersection
action find_reverse
entity Mace Neufeld
relation producer
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'producer', 'Mace Neufeld'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?t WHERE { ?t property:producer resource:Mace_Neufeld . ?t property:original_language_of_work resource:English . ?t rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1305081 Q689842 Q1048846 Q1331014 Q855222 Q2736572 Q484860 Q1425487 Q1392442 Q1753817
P495
Q15617994
USER
Where did those works of art originate ?
(Q1305081,P495,c(Q15617994)) (Q689842,P495,c(Q15617994)) (Q1048846,P495,c(Q15617994)) (Q1331014,P495,c(Q15617994)) (Q855222,P495,c(Q15617994)) (Q2736572,P495,c(Q15617994)) (Q484860,P495,c(Q15617994)) (Q1425487,P495,c(Q15617994)) (Q1392442,P495,c(Q15617994)) (Q1753817,P495,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P495
type Q15617994
['Q1305081', 'P495', {'concept': 'Q15617994'}] ['Q689842', 'P495', {'concept': 'Q15617994'}] ['Q1048846', 'P495', {'concept': 'Q15617994'}] ['Q1331014', 'P495', {'concept': 'Q15617994'}] ['Q855222', 'P495', {'concept': 'Q15617994'}] ['Q2736572', 'P495', {'concept': 'Q15617994'}] ['Q484860', 'P495', {'concept': 'Q15617994'}] ['Q1425487', 'P495', {'concept': 'Q15617994'}] ['Q1392442', 'P495', {'concept': 'Q15617994'}] ['Q1753817', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?e property:P495 ?s . ?s rdf:type ontology:Q15617994 . VALUES ( ?e ) { ( resource:Q676500 ) ( resource:Q1392442 ) ( resource:Q689842 ) } }
The Frisco Kid Invictus The Sum of All Fears Sahara Patriot Games The Funhouse The Aviator The General's Daughter Clear and Present Danger The Saint
action filter_type
action find
entity prev_answer
relation country of origin
type designation for an administrative territorial entity
['The Frisco Kid', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Invictus', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Sum of All Fears', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Sahara', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Patriot Games', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Funhouse', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Aviator', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ["The General's Daughter", 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Clear and Present Danger', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Saint', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?e property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?e ) { ( resource:Necessary_Roughness ) ( resource:Clear_and_Present_Danger ) ( resource:Invictus ) } }
[]
designation for an administrative territorial entity
Q30 Q30 Q30
SYSTEM
United States of America
Q30 Q30 Q258 Q30 Q30 Q30 Q30 Q30 Q30 Q30 Q30
(Q1305081,P495,c(Q15617994)) (Q689842,P495,c(Q15617994)) (Q1048846,P495,c(Q15617994)) (Q1331014,P495,c(Q15617994)) (Q855222,P495,c(Q15617994)) (Q2736572,P495,c(Q15617994)) (Q484860,P495,c(Q15617994)) (Q1425487,P495,c(Q15617994)) (Q1392442,P495,c(Q15617994)) (Q1753817,P495,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P495
type Q15617994
Those works of art originated the [ANSWER], [ANSWER] and [ANSWER]
['Q1305081', 'P495', {'concept': 'Q15617994'}] ['Q689842', 'P495', {'concept': 'Q15617994'}] ['Q1048846', 'P495', {'concept': 'Q15617994'}] ['Q1331014', 'P495', {'concept': 'Q15617994'}] ['Q855222', 'P495', {'concept': 'Q15617994'}] ['Q2736572', 'P495', {'concept': 'Q15617994'}] ['Q484860', 'P495', {'concept': 'Q15617994'}] ['Q1425487', 'P495', {'concept': 'Q15617994'}] ['Q1392442', 'P495', {'concept': 'Q15617994'}] ['Q1753817', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?e property:P495 ?s . ?s rdf:type ontology:Q15617994 . VALUES ( ?e ) { ( resource:Q676500 ) ( resource:Q1392442 ) ( resource:Q689842 ) } }
United States of America United States of America South Africa United States of America United States of America United States of America United States of America United States of America United States of America United States of America United States of America
Those works of art originated the United States of America, United States of America and United States of America
United States of America United States of America United States of America
action filter_type
action find
entity prev_answer
relation country of origin
type designation for an administrative territorial entity
['The Frisco Kid', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Invictus', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Sum of All Fears', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Sahara', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Patriot Games', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Funhouse', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Aviator', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ["The General's Daughter", 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Clear and Present Danger', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Saint', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?e property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?e ) { ( resource:Necessary_Roughness ) ( resource:Clear_and_Present_Danger ) ( resource:Invictus ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1124614
P1346
Q2658935
USER
Which beauty contest was won by Karen Dianne Baldwin ?
(c(Q2658935),P1346,Q1124614)
action filter_type
action find_reverse
entity Q1124614
relation P1346
type Q2658935
[{'concept': 'Q2658935'}, 'P1346', 'Q1124614']
SELECT DISTINCT ?r WHERE { ?r property:P1346 resource:Q1124614 . ?r rdf:type ontology:Q2658935 }
Karen Dianne Baldwin
action filter_type
action find_reverse
entity Karen Dianne Baldwin
relation winner
type beauty contest
[{'concept': 'beauty contest'}, 'winner', 'Karen Dianne Baldwin']
SELECT DISTINCT ?r WHERE { ?r property:winner resource:Karen_Dianne_Baldwin . ?r rdf:type ontology:beauty_contest }
[]
beauty contest
Q276794
SYSTEM
Miss Universe 1982
Q276794
(c(Q2658935),P1346,Q1124614)
action filter_type
action find_reverse
entity Q1124614
relation P1346
type Q2658935
[ANSWER] was won by Karen Dianne Baldwin
[{'concept': 'Q2658935'}, 'P1346', 'Q1124614']
SELECT DISTINCT ?r WHERE { ?r property:P1346 resource:Q1124614 . ?r rdf:type ontology:Q2658935 }
Miss Universe 1982
Miss Universe 1982 was won by Karen Dianne Baldwin
Miss Universe 1982
action filter_type
action find_reverse
entity Karen Dianne Baldwin
relation winner
type beauty contest
[{'concept': 'beauty contest'}, 'winner', 'Karen Dianne Baldwin']
SELECT DISTINCT ?r WHERE { ?r property:winner resource:Karen_Dianne_Baldwin . ?r rdf:type ontology:beauty_contest }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q276794
P276
Q811979
USER
Where can that beauty contest be found ?
(Q276794,P276,c(Q811979))
action filter_type
action find
entity Q276794
relation P276
type Q811979
['Q276794', 'P276', {'concept': 'Q811979'}]
SELECT DISTINCT ?e WHERE { resource:Q276794 property:P276 ?e . ?e rdf:type ontology:Q811979 }
Miss Universe 1982
action filter_type
action find
entity Miss Universe 1982
relation location
type architectural structure
['Miss Universe 1982', 'location', {'concept': 'architectural structure'}]
SELECT DISTINCT ?e WHERE { resource:Miss_Universe_1982 property:location ?e . ?e rdf:type ontology:architectural_structure }
[]
architectural structure
Q5145739
SYSTEM
Coliseo Amauta
Q5145739
(Q276794,P276,c(Q811979))
action filter_type
action find
entity Q276794
relation P276
type Q811979
That beauty contest can be found in [ANSWER]
['Q276794', 'P276', {'concept': 'Q811979'}]
SELECT DISTINCT ?e WHERE { resource:Q276794 property:P276 ?e . ?e rdf:type ontology:Q811979 }
Coliseo Amauta
That beauty contest can be found in Coliseo Amauta
Coliseo Amauta
action filter_type
action find
entity Miss Universe 1982
relation location
type architectural structure
['Miss Universe 1982', 'location', {'concept': 'architectural structure'}]
SELECT DISTINCT ?e WHERE { resource:Miss_Universe_1982 property:location ?e . ?e rdf:type ontology:architectural_structure }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5145739 Q419
P17
Q15617994
USER
Is that architectural structure present in Peru ?
(Q5145739,P17,Q419)
action is_in
entity Q419
action find
entity Q5145739
relation P17
['Q5145739', 'P17', 'Q419']
ASK WHERE { resource:Q5145739 property:P17 resource:Q419 }
Coliseo Amauta Peru
action is_in
entity Peru
action find
entity Coliseo Amauta
relation country
['Coliseo Amauta', 'country', 'Peru']
ASK WHERE { resource:Coliseo_Amauta property:country resource:Peru }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q5145739,P17,Q419)
action is_in
entity Q419
action find
entity Q5145739
relation P17
[ANSWER]
['Q5145739', 'P17', 'Q419']
ASK WHERE { resource:Q5145739 property:P17 resource:Q419 }
Yes
action is_in
entity Peru
action find
entity Coliseo Amauta
relation country
['Coliseo Amauta', 'country', 'Peru']
ASK WHERE { resource:Coliseo_Amauta property:country resource:Peru }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1753817 Q7159631 Q16208755
P161
Q502895
USER
Does The Saint star Pedro Gómez de la Serna and Daniel Hank as actor ?
(Q1753817,P161,Q7159631) (Q1753817,P161,Q16208755)
action is_in
entity Q1753817
action intersection
action find_reverse
entity Q7159631
relation P161
action find_reverse
entity Q16208755
relation P161
['Q1753817', 'P161', 'Q7159631'] ['Q1753817', 'P161', 'Q16208755']
ASK WHERE { resource:Q1753817 property:P161 resource:Q7159631 . resource:Q1753817 property:P161 resource:Q16208755 }
The Saint Pedro Gómez de la Serna Daniel Hank
action is_in
entity The Saint
action intersection
action find_reverse
entity Pedro Gómez de la Serna
relation cast member
action find_reverse
entity Daniel Hank
relation cast member
['The Saint', 'cast member', 'Pedro Gómez de la Serna'] ['The Saint', 'cast member', 'Daniel Hank']
ASK WHERE { resource:The_Saint property:cast_member resource:Pedro_Gómez_de_la_Serna . resource:The_Saint property:cast_member resource:Daniel_Hank }
[]
common name
SYSTEM
NO
(Q1753817,P161,Q7159631) (Q1753817,P161,Q16208755)
action is_in
entity Q1753817
action intersection
action find_reverse
entity Q7159631
relation P161
action find_reverse
entity Q16208755
relation P161
[ANSWER]
['Q1753817', 'P161', 'Q7159631'] ['Q1753817', 'P161', 'Q16208755']
ASK WHERE { resource:Q1753817 property:P161 resource:Q7159631 . resource:Q1753817 property:P161 resource:Q16208755 }
No
action is_in
entity The Saint
action intersection
action find_reverse
entity Pedro Gómez de la Serna
relation cast member
action find_reverse
entity Daniel Hank
relation cast member
['The Saint', 'cast member', 'Pedro Gómez de la Serna'] ['The Saint', 'cast member', 'Daniel Hank']
ASK WHERE { resource:The_Saint property:cast_member resource:Pedro_Gómez_de_la_Serna . resource:The_Saint property:cast_member resource:Daniel_Hank }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1032
P137
Q15617994 Q811979
USER
Which administrative territories operates greater number of architectural structures than Niger ?
(c(Q811979),P137,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P137
type Q15617994
type Q811979
action count
action filter_type
action find
entity Q1032
relation P137
type Q15617994
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:P137 ?p . ?n rdf:type ontology:Q811979 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?t > ?k ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Q1032 property:P137 ?q . ?q rdf:type ontology:Q15617994 } } }
Niger
action greater
action find_reverse_tuple_counts
relation operator
type designation for an administrative territorial entity
type architectural structure
action count
action filter_type
action find
entity Niger
relation operator
type designation for an administrative territorial entity
[{'concept': 'architectural structure'}, 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:operator ?p . ?n rdf:type ontology:architectural_structure . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?t > ?k ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Niger property:operator ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity architectural structure
Q155 Q30 Q55
SYSTEM
Brazil, United States of America, Netherlands
Q414 Q142 Q55 Q265 Q399 Q398 Q155 Q794 Q954 Q32 Q31 Q30 Q36 Q39 Q7432239 Q221 Q1025 Q6135283 Q963 Q750 Q218 Q6391894 Q5130690 Q6378510
(c(Q811979),P137,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P137
type Q15617994
type Q811979
action count
action filter_type
action find
entity Q1032
relation P137
type Q15617994
[ANSWERS] operate greater number of architectural structures than Niger
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:P137 ?p . ?n rdf:type ontology:Q811979 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?t > ?k ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Q1032 property:P137 ?q . ?q rdf:type ontology:Q15617994 } } }
Argentina France Netherlands Uzbekistan Armenia Bahrain Brazil Iran Zimbabwe Luxembourg Belgium United States of America Poland Switzerland School District of Lancaster Republic of Macedonia Mauritania North East Independent School District Botswana Bolivia Romania Kent School District Clear Creek Independent School District Katy Independent School District
Brazil, United States of America and Netherlands operate greater number of architectural structures than Niger
Brazil United States of America Netherlands
action greater
action find_reverse_tuple_counts
relation operator
type designation for an administrative territorial entity
type architectural structure
action count
action filter_type
action find
entity Niger
relation operator
type designation for an administrative territorial entity
[{'concept': 'architectural structure'}, 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:operator ?p . ?n rdf:type ontology:architectural_structure . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?t > ?k ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Niger property:operator ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q33
P137
Q15617994 Q811979
USER
And what about Finland?
(c(Q811979),P137,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P137
type Q15617994
type Q811979
action count
action filter_type
action find
entity Q33
relation P137
type Q15617994
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P137 ?p . ?p rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q811979 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Q33 property:P137 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?a ) }
Finland
action greater
action find_reverse_tuple_counts
relation operator
type designation for an administrative territorial entity
type architectural structure
action count
action filter_type
action find
entity Finland
relation operator
type designation for an administrative territorial entity
[{'concept': 'architectural structure'}, 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:operator ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:architectural_structure } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Finland property:operator ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?a ) }
[]
designation for an administrative territorial entity architectural structure
Q155 Q30 Q55
SYSTEM
Brazil, United States of America, Netherlands
Q414 Q142 Q55 Q265 Q399 Q398 Q155 Q794 Q954 Q32 Q31 Q30 Q36 Q39 Q7432239 Q221 Q1025 Q6135283 Q963 Q750 Q218 Q6391894 Q5130690 Q6378510
(c(Q811979),P137,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P137
type Q15617994
type Q811979
action count
action filter_type
action find
entity Q33
relation P137
type Q15617994
[ANSWERS]
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P137 ?p . ?p rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q811979 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Q33 property:P137 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?a ) }
Argentina France Netherlands Uzbekistan Armenia Bahrain Brazil Iran Zimbabwe Luxembourg Belgium United States of America Poland Switzerland School District of Lancaster Republic of Macedonia Mauritania North East Independent School District Botswana Bolivia Romania Kent School District Clear Creek Independent School District Katy Independent School District
Brazil United States of America Netherlands
action greater
action find_reverse_tuple_counts
relation operator
type designation for an administrative territorial entity
type architectural structure
action count
action filter_type
action find
entity Finland
relation operator
type designation for an administrative territorial entity
[{'concept': 'architectural structure'}, 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:operator ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:architectural_structure } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Finland property:operator ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q695
P36
Q20667921 Q515 Q15617994
USER
How many administrative territories contain more number of french administrative divisions and cities as their capital than Palau ?
(c(Q15617994),P36,c(Q20667921)|c(Q515))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q695
relation P36
type Q20667921
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?e WHERE { { ?e property:P36 ?w . ?e rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q515 } UNION { ?e property:P36 ?w . ?e rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q20667921 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Q695 property:P36 ?g . { { ?g rdf:type ontology:Q515 } UNION { ?g rdf:type ontology:Q20667921 } } } } . FILTER ( ?s > ?j ) }
Palau
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Palau
relation capital
type type of french administrative division
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?e WHERE { { ?e property:capital ?w . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:city } UNION { ?e property:capital ?w . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Palau property:capital ?g . { { ?g rdf:type ontology:city } UNION { ?g rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?s > ?j ) }
[]
type of french administrative division city designation for an administrative territorial entity
SYSTEM
155
Q12631 Q414 Q3368 Q2998020 Q3044731 Q252 Q399 Q258 Q155 Q12689 Q3377 Q3372 Q3093 Q3259 Q12594 Q736 Q12798 Q12792 Q843 Q2007 Q12700 Q12703 Q12709 Q1050 Q12717 Q298 Q115 Q114 Q12569 Q12574 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q696651 Q3286 Q948 Q12589 Q3266 Q3105 Q33788 Q1268811 Q702 Q12740 Q12745 Q12779 Q833 Q12607 Q790 Q796 Q794 Q889 Q12576 Q884 Q881 Q2281221 Q12694 Q12515 Q12517 Q3364 Q541095 Q3148 Q12675 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q1037 Q1033 Q1030 Q12730 Q12736 Q12657 Q12652 Q30831 Q12556 Q878 Q46130 Q3044714 Q12816 Q1951 Q2236821 Q2528268 Q3353 Q3357 Q3278 Q3184 Q711 Q717 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q1948 Q12661 Q27 Q225 Q47261 Q1270623 Q347 Q963 Q3125 Q3120 Q1008 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q72670 Q12563 Q426025 Q568751 Q2150573 Q12536 Q3342 Q842 Q3349 Q3083 Q3240 Q3249 Q3164 Q12761 Q12765 Q4712 Q924 Q928 Q851 Q222 Q3334 Q12572 Q12578 Q228 Q3462133 Q12679 Q17 Q3207 Q212 Q211 Q218 Q974 Q3113 Q12789 Q1019 Q1011 Q12758 Q12753 Q12751 Q12564
(c(Q15617994),P36,c(Q20667921)|c(Q515))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q515
action count
action filter_multi_types
action find
entity Q695
relation P36
type Q20667921
type Q515
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?e WHERE { { ?e property:P36 ?w . ?e rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q515 } UNION { ?e property:P36 ?w . ?e rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q20667921 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Q695 property:P36 ?g . { { ?g rdf:type ontology:Q515 } UNION { ?g rdf:type ontology:Q20667921 } } } } . FILTER ( ?s > ?j ) }
Meuse Argentina Essonne Corse Guyane Indonesia Armenia South Africa Brazil Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Marne Ecuador Vendée Vaucluse Pakistan Northwest Territories Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Swaziland Bas-Rhin Chile Ethiopia Kenya Loire Loiret Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Saxe-Eisenach Cher Tunisia Manche Charente Vosges New Caledonia Dyle Federated States of Micronesia Sarthe Savoie Tarn-et-Garonne Malaysia Haute-Marne Haiti Iraq Iran Afghanistan Lot South Korea Vietnam Principality of Orange Puy-de-Dôme Gard Gers Drôme Rhin-et-Moselle Ardèche Oise Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Rwanda Nigeria Namibia Haute-Saône Saône-et-Loire Nièvre Moselle Red Sea Governorate Indre-et-Loire United Arab Emirates Rhône Ouest Yonne Alberta Rhône-et-Loire Mont-Blanc Creuse Dordogne Charente-Maritime Ariège Mongolia Venezuela Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Manitoba Nord Ireland Bosnia and Herzegovina Duchy of Bavaria Meurthe Liechtenstein Botswana Hautes-Alpes Jura Côte d'Ivoire Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Batumi Oblast Landes Duchy of Savoy Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Côtes-d'Armor Ain Bouches-du-Rhône Calvados Ardennes Seine-Saint-Denis Deux-Sèvres Duchy of Burgundy Tanzania Philippines Saudi Arabia Albania Haute-Corse Haute-Loire Lot-et-Garonne Andorra Saxe-Coburg and Gotha Orne Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Allier Var Madagascar Cape Verde Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
155
action count
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find
entity Palau
relation capital
type type of french administrative division
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?e WHERE { { ?e property:capital ?w . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:city } UNION { ?e property:capital ?w . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Palau property:capital ?g . { { ?g rdf:type ontology:city } UNION { ?g rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?s > ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with atleast 28 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 28
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?x >= 28 ) . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?x ) WHERE { ?s property:P530 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?s } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?x >= 28 ) . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?x ) WHERE { ?s property:diplomatic_relation ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 28
[ANSWERS] have tactful political relations with atleast 28 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?x >= 28 ) . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?x ) WHERE { ?s property:P530 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?s } }
Germany Australia Canada
Germany, Australia and Canada have tactful political relations with atleast 28 administrative territories
Germany Australia Canada
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?x >= 28 ) . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?x ) WHERE { ?s property:diplomatic_relation ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]