Simple Question (Direct)
Simple Question
Q15999960
P21
Q290
USER
What is the sex of Gary Richards ?
(Q15999960,P21,c(Q290))
action filter_type
action find
entity Q15999960
relation P21
type Q290
['Q15999960', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q15999960 property:P21 ?h . ?h rdf:type ontology:Q290 }
Gary Richards
action filter_type
action find
entity Gary Richards
relation gender
type sex
['Gary Richards', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Gary_Richards property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15999960,P21,c(Q290))
action filter_type
action find
entity Q15999960
relation P21
type Q290
The sex of Gary Richards is a [ANSWER]
['Q15999960', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q15999960 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
The sex of Gary Richards is a male
male
action filter_type
action find
entity Gary Richards
relation gender
type sex
['Gary Richards', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Gary_Richards property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15999960
P27
Q15617994
USER
Which administrative territory is Gary Richards a civilian of ?
(Q15999960,P27,c(Q15617994))
action filter_type
action find
entity Q15999960
relation P27
type Q15617994
['Q15999960', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q15999960 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Gary Richards
action filter_type
action find
entity Gary Richards
relation country of citizenship
type designation for an administrative territorial entity
['Gary Richards', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Gary_Richards property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q15999960,P27,c(Q15617994))
action filter_type
action find
entity Q15999960
relation P27
type Q15617994
[ANSWER] is Gary Richards a civilian of
['Q15999960', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q15999960 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is Gary Richards a civilian of
United Kingdom
action filter_type
action find
entity Gary Richards
relation country of citizenship
type designation for an administrative territorial entity
['Gary Richards', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Gary_Richards property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15999960
P641
Q349
USER
What did that person participate in ?
(Q145,P641,c(Q349))
action filter_type
action find
entity Q15999960
relation P641
type Q349
['Q145', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q15999960 property:P641 ?i . ?i rdf:type ontology:Q349 }
Gary Richards
action filter_type
action find
entity Gary Richards
relation sport
type sport
['United Kingdom', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Gary_Richards property:sport ?i . ?i rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q145,P641,c(Q349))
action filter_type
action find
entity Q15999960
relation P641
type Q349
That person participated in [ANSWER]
['Q145', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q15999960 property:P641 ?i . ?i rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Gary Richards
relation sport
type sport
['United Kingdom', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Gary_Richards property:sport ?i . ?i rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15999960
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q15999960
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q15999960 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Gary Richards
action filter_type
action find
entity Gary Richards
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Gary_Richards property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q15999960
relation P106
type Q12737077
Player [ANSWER] is the profession of that person
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q15999960 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of that person
association football player
action filter_type
action find
entity Gary Richards
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Gary_Richards property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q12737077 Q43229 Q502895
USER
How many occupations are the area of approximately the same number of organizations or people as that occupation ?
(c(Q43229)|c(Q502895),P101,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q43229
type Q502895
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) ?h WHERE { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q43229 ) } . ?y rdf:type ?t } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P101 resource:Q937857 . { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:Q43229 ) ( ontology:Q502895 ) } } } } . FILTER ( ?u = ?k ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type organization
type common name
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) ?h WHERE { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:organization ) } . ?y rdf:type ?t } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:field_of_work resource:association_football_player . { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:organization ) ( ontology:common_name ) } } } } . FILTER ( ?u = ?k ) }
[]
occupation organization common name
SYSTEM
114
Q6625963 Q4175034 Q177220 Q911554 Q80687 Q37226 Q652122 Q765778 Q2995983 Q627325 Q33999 Q1288557 Q14915627 Q13418253 Q1495660 Q774306 Q4853732 Q211423 Q706364 Q1231865 Q622807 Q584301 Q6138343 Q4610556 Q1259917 Q2516866 Q2259451 Q947873 Q333634 Q15949613 Q783906 Q1792450 Q11900058 Q3243461 Q5482740 Q3922505 Q1051088 Q138858 Q183888 Q593644 Q7888586 Q81096 Q170790 Q30185 Q15839135 Q1930187 Q14467526 Q6500773 Q212238 Q11642 Q937857 Q157509 Q128124 Q1999841 Q131524 Q1172458 Q2505739 Q1622272 Q653368 Q3455803 Q2707485 Q1402561 Q725440 Q2374149 Q17277248 Q2865798 Q326358 Q2599593 Q705908 Q4164507 Q2205972 Q899758 Q2855502 Q169470 Q36180 Q201788 Q15117302 Q483501 Q1114448 Q17167049 Q1423891 Q3665646 Q11063 Q1028181 Q1392297 Q901 Q1881523 Q18524075 Q1235146 Q36834 Q15995642 Q254651 Q3387717 Q354034 Q158852 Q2252262 Q245068 Q8011071 Q219477 Q1607826 Q154549 Q1709010 Q639669 Q191633 Q33231 Q2490358 Q644687 Q2732142 Q15980158 Q15954519 Q42603 Q3621491 Q11774891 Q6981670
(c(Q43229)|c(Q502895),P101,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q43229
type Q502895
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) ?h WHERE { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q43229 ) } . ?y rdf:type ?t } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P101 resource:Q937857 . { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:Q43229 ) ( ontology:Q502895 ) } } } } . FILTER ( ?u = ?k ) }
novelist legislator singer business magnate secretary teacher sewing organist double-bassist graphic designer actor hieromonk musicologist philologist food critic surgeon children's writer goldsmith art director educationist seiyū bassist wood carver model violinist publisher stage actor television presenter translator short story writer neurologist art historian explorer collector programmer music producer Commissioner of Baseball entertainer software developer chemist chemical engineer engineer mathematician mayor developmental biologist journalist linguist general practitioner civil servant pottery association football player legal guardian audio engineer faqih entrepreneur muhaddith hispanist university teacher district attorney director scenographer military leader prelate botanist member of the National Assembly of Armenia glass artist joiner germanist agency agreement art critic stained-glass artist violist chief of police physicist writer historian volleyball player artist cartoonist specialist in literature minister basketball player astronomer painter Train dispatcher scientist STEM fields mining engineer documentary filmmaker composer religious leader navigator theatre director type designer conductor rapper comedian animal trainer missionary editor carpenter software engineer musician mangaka photographer choreographer illustrator statistician non-fiction writer alchemist priest archaeologist ice hockey player Navajo weaving
114
action count
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type organization
type common name
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) ?h WHERE { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:organization ) } . ?y rdf:type ?t } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:field_of_work resource:association_football_player . { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:organization ) ( ontology:common_name ) } } } } . FILTER ( ?u = ?k ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q19577660 Q937857
P425 P641
Q349
USER
Which sports have association football player as the associated field of occupation and were Ken Rickards a part of ?
AND((Q937857,P425,c(Q349)), (Q19577660,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q19577660
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q19577660', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?f WHERE { resource:Q937857 property:P425 ?f . resource:Q19577660 property:P641 ?f . ?f rdf:type ontology:Q349 }
Ken Rickards association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Ken Rickards
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Ken Rickards', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?f WHERE { resource:association_football_player property:field_of_this_occupation ?f . resource:Ken_Rickards property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q19577660,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q19577660
relation P641
type Q349
Field [ANSWER] have [ANSWER] player as the associated field of occupation and were Ken Rickards a part of
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q19577660', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?f WHERE { resource:Q937857 property:P425 ?f . resource:Q19577660 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
Field association football have association football player as the associated field of occupation and were Ken Rickards a part of
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Ken Rickards
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Ken Rickards', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?f WHERE { resource:association_football_player property:field_of_this_occupation ?f . resource:Ken_Rickards property:sport ?f . ?f rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q200895
P417
Q502895 Q12737077
USER
Which people are the patron saint of greater number of occupations than Agatha of Sicily ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q200895
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:P417 ?q . ?q rdf:type ontology:Q502895 . ?t rdf:type ontology:Q12737077 } GROUP BY ?q } . FILTER ( ?b > ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Q200895 property:P417 ?r . ?r rdf:type ontology:Q502895 } } }
Agatha of Sicily
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Agatha of Sicily
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:patron_saint ?q . ?q rdf:type ontology:common_name . ?t rdf:type ontology:occupation } GROUP BY ?q } . FILTER ( ?b > ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Agatha_of_Sicily property:patron_saint ?r . ?r rdf:type ontology:common_name } } }
[]
common name occupation
Q43982 Q179718 Q43600
SYSTEM
Bartholomew the Apostle, Catherine of Alexandria, Matthew the Apostle
Q43982 Q179718 Q43600
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q200895
relation P417
type Q502895
[ANSWERS] are the patron saint of greater number of occupations than Agatha of Sicily
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:P417 ?q . ?q rdf:type ontology:Q502895 . ?t rdf:type ontology:Q12737077 } GROUP BY ?q } . FILTER ( ?b > ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Q200895 property:P417 ?r . ?r rdf:type ontology:Q502895 } } }
Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle
Bartholomew the Apostle, Catherine of Alexandria and Matthew the Apostle are the patron saint of greater number of occupations than Agatha of Sicily
Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Agatha of Sicily
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:patron_saint ?q . ?q rdf:type ontology:common_name . ?t rdf:type ontology:occupation } GROUP BY ?q } . FILTER ( ?b > ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Agatha_of_Sicily property:patron_saint ?r . ?r rdf:type ontology:common_name } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q164294
P417
Q502895 Q12737077
USER
And also tell me about Saint Anna?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q164294
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:P417 ?a . ?a rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q164294 property:P417 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?t > ?f ) }
Saint Anna
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Anna
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:patron_saint ?a . ?a rdf:type ontology:common_name . ?d rdf:type ontology:occupation } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Saint_Anna property:patron_saint ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?t > ?f ) }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q164294
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:P417 ?a . ?a rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q164294 property:P417 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?t > ?f ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Anna
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:patron_saint ?a . ?a rdf:type ontology:common_name . ?d rdf:type ontology:occupation } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Saint_Anna property:patron_saint ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?t > ?f ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q116862
P674
Q223393
USER
Are those people a character of The Blockade Runners ?
(Q116862,P674,Q9438) (Q116862,P674,Q60059) (Q116862,P674,Q166876)
action is_in
entity prev_answer
action find
entity Q116862
relation P674
['Q116862', 'P674', 'Q9438'] ['Q116862', 'P674', 'Q60059'] ['Q116862', 'P674', 'Q166876']
ASK WHERE { resource:Q116862 property:P674 ?h . VALUES ( ?h ) { ( resource:Q453698 ) ( resource:Q229190 ) ( resource:Q152457 ) } }
The Blockade Runners
action is_in
entity prev_answer
action find
entity The Blockade Runners
relation characters
['The Blockade Runners', 'characters', 'Thomas Aquinas'] ['The Blockade Runners', 'characters', 'Albertus Magnus'] ['The Blockade Runners', 'characters', 'Isidore of Seville']
ASK WHERE { resource:The_Blockade_Runners property:characters ?h . VALUES ( ?h ) { ( resource:Saint_Amand ) ( resource:Catherine_of_Siena ) ( resource:Saint_Roch ) } }
[]
literary genre
SYSTEM
NO
(Q116862,P674,Q9438) (Q116862,P674,Q60059) (Q116862,P674,Q166876)
action is_in
entity prev_answer
action find
entity Q116862
relation P674
[ANSWER]
['Q116862', 'P674', 'Q9438'] ['Q116862', 'P674', 'Q60059'] ['Q116862', 'P674', 'Q166876']
ASK WHERE { resource:Q116862 property:P674 ?h . VALUES ( ?h ) { ( resource:Q453698 ) ( resource:Q229190 ) ( resource:Q152457 ) } }
No
action is_in
entity prev_answer
action find
entity The Blockade Runners
relation characters
['The Blockade Runners', 'characters', 'Thomas Aquinas'] ['The Blockade Runners', 'characters', 'Albertus Magnus'] ['The Blockade Runners', 'characters', 'Isidore of Seville']
ASK WHERE { resource:The_Blockade_Runners property:characters ?h . VALUES ( ?h ) { ( resource:Saint_Amand ) ( resource:Catherine_of_Siena ) ( resource:Saint_Roch ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q183 Q164294
P138 P17
Q41176
USER
Which buildings are named after Saint Anna and are present in Germany ?
AND((c(Q41176),P138,Q164294), (c(Q41176),P17,Q183))
action filter_type
action intersection
action find_reverse
entity Q164294
relation P138
action find_reverse
entity Q183
relation P17
type Q41176
{'AND': [[{'concept': 'Q41176'}, 'P138', 'Q164294'], [{'concept': 'Q41176'}, 'P17', 'Q183']]}
SELECT DISTINCT ?o WHERE { ?o property:P138 resource:Q164294 . ?o property:P17 resource:Q183 . ?o rdf:type ontology:Q41176 }
Germany Saint Anna
action filter_type
action intersection
action find_reverse
entity Saint Anna
relation named after
action find_reverse
entity Germany
relation country
type building
{'AND': [[{'concept': 'building'}, 'named after', 'Saint Anna'], [{'concept': 'building'}, 'country', 'Germany']]}
SELECT DISTINCT ?o WHERE { ?o property:named_after resource:Saint_Anna . ?o property:country resource:Germany . ?o rdf:type ontology:building }
[]
building
Q2317067
SYSTEM
Annakapelle
Q2317067
AND((c(Q41176),P138,Q164294), (c(Q41176),P17,Q183))
action filter_type
action intersection
action find_reverse
entity Q164294
relation P138
action find_reverse
entity Q183
relation P17
type Q41176
[ANSWER] is named after Saint Anna and is present in Germany
{'AND': [[{'concept': 'Q41176'}, 'P138', 'Q164294'], [{'concept': 'Q41176'}, 'P17', 'Q183']]}
SELECT DISTINCT ?o WHERE { ?o property:P138 resource:Q164294 . ?o property:P17 resource:Q183 . ?o rdf:type ontology:Q41176 }
Annakapelle
Annakapelle is named after Saint Anna and is present in Germany
Annakapelle
action filter_type
action intersection
action find_reverse
entity Saint Anna
relation named after
action find_reverse
entity Germany
relation country
type building
{'AND': [[{'concept': 'building'}, 'named after', 'Saint Anna'], [{'concept': 'building'}, 'country', 'Germany']]}
SELECT DISTINCT ?o WHERE { ?o property:named_after resource:Saint_Anna . ?o property:country resource:Germany . ?o rdf:type ontology:building }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P800
Q41176 Q502895
USER
Which buildings were done by lesser number of people than that building ?
(c(Q502895),P800,c(Q41176))
action less
action find_reverse_tuple_counts
relation P800
type Q41176
type Q502895
action count
action filter_type
action find_reverse
entity Q2317067
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', {'concept': 'Q41176'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?l ) WHERE { ?r rdf:type ontology:Q41176 . ?s rdf:type ontology:Q502895 . ?s property:P800 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P800 resource:Q2317067 . ?o rdf:type ontology:Q502895 } } . FILTER ( ?l < ?e ) }
action less
action find_reverse_tuple_counts
relation notable work
type building
type common name
action count
action filter_type
action find_reverse
entity Annakapelle
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', {'concept': 'building'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?l ) WHERE { ?r rdf:type ontology:building . ?s rdf:type ontology:common_name . ?s property:notable_work ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:notable_work resource:Annakapelle . ?o rdf:type ontology:common_name } } . FILTER ( ?l < ?e ) }
[]
building common name
Q6000580 Q7164734 Q2631977
SYSTEM
One Hyde Park, Penshaw Monument, Wales Millennium Centre
Q7164734 Q2818736 Q5453389 Q4669024 Q1141915 Q2631977 Q6000580 Q1375404 Q4568402 Q4632172
(c(Q502895),P800,c(Q41176))
action less
action find_reverse_tuple_counts
relation P800
type Q41176
type Q502895
action count
action filter_type
action find_reverse
entity Q2317067
relation P800
type Q502895
[ANSWERS] were done by lesser number of people than that building
[{'concept': 'Q502895'}, 'P800', {'concept': 'Q41176'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?l ) WHERE { ?r rdf:type ontology:Q41176 . ?s rdf:type ontology:Q502895 . ?s property:P800 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P800 resource:Q2317067 . ?o rdf:type ontology:Q502895 } } . FILTER ( ?l < ?e ) }
Penshaw Monument 993 Fifth Avenue First National Bank Building Abraham Lincoln High School Crucible Theatre Wales Millennium Centre One Hyde Park Royal Shakespeare Theatre Royal Danish Playhouse 25 Park Place
One Hyde Park, Penshaw Monument and Wales Millennium Centre were done by lesser number of people than that building
One Hyde Park Penshaw Monument Wales Millennium Centre
action less
action find_reverse_tuple_counts
relation notable work
type building
type common name
action count
action filter_type
action find_reverse
entity Annakapelle
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', {'concept': 'building'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?l ) WHERE { ?r rdf:type ontology:building . ?s rdf:type ontology:common_name . ?s property:notable_work ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:notable_work resource:Annakapelle . ?o rdf:type ontology:common_name } } . FILTER ( ?l < ?e ) }
[]