Simple Question (Direct)
Simple Question
Q454792
P69
Q1244442
USER
Which school building is the alma mater of Robert Alfred Cloyne Godwin-Austen ?
(Q454792,P69,c(Q1244442))
action filter_type
action find
entity Q454792
relation P69
type Q1244442
['Q454792', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?e WHERE { resource:Q454792 property:P69 ?e . ?e rdf:type ontology:Q1244442 }
Robert Alfred Cloyne Godwin-Austen
action filter_type
action find
entity Robert Alfred Cloyne Godwin-Austen
relation educated at
type school building
['Robert Alfred Cloyne Godwin-Austen', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?e WHERE { resource:Robert_Alfred_Cloyne_Godwin-Austen property:educated_at ?e . ?e rdf:type ontology:school_building }
[]
school building
Q81170
SYSTEM
Oriel College
Q81170
(Q454792,P69,c(Q1244442))
action filter_type
action find
entity Q454792
relation P69
type Q1244442
[ANSWER] is the alma mater of Robert Alfred Cloyne Godwin-Austen
['Q454792', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?e WHERE { resource:Q454792 property:P69 ?e . ?e rdf:type ontology:Q1244442 }
Oriel College
Oriel College is the alma mater of Robert Alfred Cloyne Godwin-Austen
Oriel College
action filter_type
action find
entity Robert Alfred Cloyne Godwin-Austen
relation educated at
type school building
['Robert Alfred Cloyne Godwin-Austen', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?e WHERE { resource:Robert_Alfred_Cloyne_Godwin-Austen property:educated_at ?e . ?e rdf:type ontology:school_building }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q454792
P921
Q191067
USER
Which article has that person as its main topic ?
(c(Q191067),P921,Q81170)
action filter_type
action find_reverse
entity Q454792
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q81170']
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q454792 . ?x rdf:type ontology:Q191067 }
Robert Alfred Cloyne Godwin-Austen
action filter_type
action find_reverse
entity Robert Alfred Cloyne Godwin-Austen
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Oriel College']
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:Robert_Alfred_Cloyne_Godwin-Austen . ?x rdf:type ontology:article }
[]
article
Q19050818
SYSTEM
Godwin-Austen, Robert Alfred Cloyne (DNB00)
Q19050818
(c(Q191067),P921,Q81170)
action filter_type
action find_reverse
entity Q454792
relation P921
type Q191067
[ANSWER] has that person as its main topic
[{'concept': 'Q191067'}, 'P921', 'Q81170']
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q454792 . ?x rdf:type ontology:Q191067 }
Godwin-Austen, Robert Alfred Cloyne (DNB00)
Godwin-Austen, Robert Alfred Cloyne (DNB00) has that person as its main topic
Godwin-Austen, Robert Alfred Cloyne (DNB00)
action filter_type
action find_reverse
entity Robert Alfred Cloyne Godwin-Austen
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Oriel College']
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:Robert_Alfred_Cloyne_Godwin-Austen . ?x rdf:type ontology:article }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q15987216 Q454792
P1433 P921
Q191067
USER
Which articles are Robert Alfred Cloyne Godwin-Austen a main subject of and were published in Dictionary of National Biography (1885-1900) ?
AND((c(Q191067),P921,Q454792), (c(Q191067),P1433,Q15987216))
action filter_type
action intersection
action find_reverse
entity Q454792
relation P921
action find_reverse
entity Q15987216
relation P1433
type Q191067
{'AND': [[{'concept': 'Q191067'}, 'P921', 'Q454792'], [{'concept': 'Q191067'}, 'P1433', 'Q15987216']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q191067 . ?g property:P921 resource:Q454792 . ?g property:P1433 resource:Q15987216 }
Dictionary of National Biography (1885-1900) Robert Alfred Cloyne Godwin-Austen
action filter_type
action intersection
action find_reverse
entity Robert Alfred Cloyne Godwin-Austen
relation main subject
action find_reverse
entity Dictionary of National Biography (1885-1900)
relation published in
type article
{'AND': [[{'concept': 'article'}, 'main subject', 'Robert Alfred Cloyne Godwin-Austen'], [{'concept': 'article'}, 'published in', 'Dictionary of National Biography (1885-1900)']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:article . ?g property:main_subject resource:Robert_Alfred_Cloyne_Godwin-Austen . ?g property:published_in resource:Dictionary_of_National_Biography_(1885-1900) }
[]
article
Q19050818
SYSTEM
Godwin-Austen, Robert Alfred Cloyne (DNB00)
Q19050818
AND((c(Q191067),P921,Q454792), (c(Q191067),P1433,Q15987216))
action filter_type
action intersection
action find_reverse
entity Q454792
relation P921
action find_reverse
entity Q15987216
relation P1433
type Q191067
[ANSWER] is Robert Alfred Cloyne Godwin-Austen a main subject of and were published in Dictionary of National Biography (1885-1900)
{'AND': [[{'concept': 'Q191067'}, 'P921', 'Q454792'], [{'concept': 'Q191067'}, 'P1433', 'Q15987216']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q191067 . ?g property:P921 resource:Q454792 . ?g property:P1433 resource:Q15987216 }
Godwin-Austen, Robert Alfred Cloyne (DNB00)
Godwin-Austen, Robert Alfred Cloyne (DNB00) is Robert Alfred Cloyne Godwin-Austen a main subject of and were published in Dictionary of National Biography (1885-1900)
Godwin-Austen, Robert Alfred Cloyne (DNB00)
action filter_type
action intersection
action find_reverse
entity Robert Alfred Cloyne Godwin-Austen
relation main subject
action find_reverse
entity Dictionary of National Biography (1885-1900)
relation published in
type article
{'AND': [[{'concept': 'article'}, 'main subject', 'Robert Alfred Cloyne Godwin-Austen'], [{'concept': 'article'}, 'published in', 'Dictionary of National Biography (1885-1900)']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:article . ?g property:main_subject resource:Robert_Alfred_Cloyne_Godwin-Austen . ?g property:published_in resource:Dictionary_of_National_Biography_(1885-1900) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q17311605
P361
Q223393 Q191067
USER
How many literary genres are lesser number of articles a part of than Lentapedia (full versions) ?
(c(Q191067),P361,c(Q223393))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q223393
type Q191067
action count
action filter_type
action find
entity Q17311605
relation P361
type Q223393
[{'concept': 'Q191067'}, 'P361', {'concept': 'Q223393'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?b ) WHERE { ?c property:P361 ?d . ?c rdf:type ontology:Q191067 . ?d rdf:type ontology:Q223393 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { ?t rdf:type ontology:Q223393 . resource:Q17311605 property:P361 ?t } } . FILTER ( ?b < ?p ) }
Lentapedia (full versions)
action count
action less
action find_reverse_tuple_counts
relation part of
type literary genre
type article
action count
action filter_type
action find
entity Lentapedia (full versions)
relation part of
type literary genre
[{'concept': 'article'}, 'part of', {'concept': 'literary genre'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?b ) WHERE { ?c property:part_of ?d . ?c rdf:type ontology:article . ?d rdf:type ontology:literary_genre } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { ?t rdf:type ontology:literary_genre . resource:Lentapedia_(full_versions) property:part_of ?t } } . FILTER ( ?b < ?p ) }
[]
literary genre article
SYSTEM
17
Q8276 Q2595941 Q617881 Q377477 Q16701856 Q184742 Q17321018 Q38801 Q1960551 Q40185 Q4173137 Q19979452 Q60220 Q132311 Q1150348 Q214844 Q19072211
(c(Q191067),P361,c(Q223393))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q223393
type Q191067
action count
action filter_type
action find
entity Q17311605
relation P361
type Q223393
[ANSWER]
[{'concept': 'Q191067'}, 'P361', {'concept': 'Q223393'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?b ) WHERE { ?c property:P361 ?d . ?c rdf:type ontology:Q191067 . ?d rdf:type ontology:Q223393 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { ?t rdf:type ontology:Q223393 . resource:Q17311605 property:P361 ?t } } . FILTER ( ?b < ?p ) }
Mahabharata Roda Codex Hervarar saga ok Heiðreks Agent 327 The Old Woman Izergil Metamorphoses The Feminist Encyclopedia of Spanish Literature Italian comics Russian Biographical Dictionary The Divine Comedy Jewish Encyclopedia of Brockhaus and Efron A catalogue raisonné of the works of the most eminent Dutch painters of the seventeenth century, based on the works of John Smith Aeneid fantasy Biographical Directory of the United States Congress Michelin Guide Cyclopædia of American Biographies
17
action count
action less
action find_reverse_tuple_counts
relation part of
type literary genre
type article
action count
action filter_type
action find
entity Lentapedia (full versions)
relation part of
type literary genre
[{'concept': 'article'}, 'part of', {'concept': 'literary genre'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?b ) WHERE { ?c property:part_of ?d . ?c rdf:type ontology:article . ?d rdf:type ontology:literary_genre } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { ?t rdf:type ontology:literary_genre . resource:Lentapedia_(full_versions) property:part_of ?t } } . FILTER ( ?b < ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q2041543
P361
Q223393 Q191067
USER
And what about Otto's encyclopedia?
(c(Q191067),P361,c(Q223393))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q223393
type Q191067
action count
action filter_type
action find_reverse
entity Q2041543
relation P361
type Q191067
[{'concept': 'Q191067'}, 'P361', {'concept': 'Q223393'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:P361 ?h . ?v rdf:type ontology:Q191067 . ?h rdf:type ontology:Q223393 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P361 resource:Q2041543 . ?n rdf:type ontology:Q191067 } } . FILTER ( ?k < ?z ) }
Otto's encyclopedia
action count
action less
action find_reverse_tuple_counts
relation part of
type literary genre
type article
action count
action filter_type
action find_reverse
entity Otto's encyclopedia
relation part of
type article
[{'concept': 'article'}, 'part of', {'concept': 'literary genre'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:part_of ?h . ?v rdf:type ontology:article . ?h rdf:type ontology:literary_genre } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:part_of resource:Otto's_encyclopedia . ?n rdf:type ontology:article } } . FILTER ( ?k < ?z ) }
[]
literary genre article
SYSTEM
20
Q8276 Q2595941 Q617881 Q17311605 Q377477 Q16701856 Q184742 Q17321018 Q16082057 Q38801 Q1960551 Q17290934 Q40185 Q4173137 Q19979452 Q60220 Q132311 Q1150348 Q214844 Q19072211
(c(Q191067),P361,c(Q223393))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q223393
type Q191067
action count
action filter_type
action find_reverse
entity Q2041543
relation P361
type Q191067
[ANSWER]
[{'concept': 'Q191067'}, 'P361', {'concept': 'Q223393'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:P361 ?h . ?v rdf:type ontology:Q191067 . ?h rdf:type ontology:Q223393 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P361 resource:Q2041543 . ?n rdf:type ontology:Q191067 } } . FILTER ( ?k < ?z ) }
Mahabharata Roda Codex Hervarar saga ok Heiðreks Lentapedia (full versions) Agent 327 The Old Woman Izergil Metamorphoses The Feminist Encyclopedia of Spanish Literature The New Student's Reference Work Italian comics Russian Biographical Dictionary Lentapedia The Divine Comedy Jewish Encyclopedia of Brockhaus and Efron A catalogue raisonné of the works of the most eminent Dutch painters of the seventeenth century, based on the works of John Smith Aeneid fantasy Biographical Directory of the United States Congress Michelin Guide Cyclopædia of American Biographies
20
action count
action less
action find_reverse_tuple_counts
relation part of
type literary genre
type article
action count
action filter_type
action find_reverse
entity Otto's encyclopedia
relation part of
type article
[{'concept': 'article'}, 'part of', {'concept': 'literary genre'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:part_of ?h . ?v rdf:type ontology:article . ?h rdf:type ontology:literary_genre } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:part_of resource:Otto's_encyclopedia . ?n rdf:type ontology:article } } . FILTER ( ?k < ?z ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5992897
P1412
Q34770
USER
Which language does Manuel Fernando Bonilla speak in ?
(Q5992897,P1412,c(Q34770))
action filter_type
action find
entity Q5992897
relation P1412
type Q34770
['Q5992897', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q5992897 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Manuel Fernando Bonilla
action filter_type
action find
entity Manuel Fernando Bonilla
relation languages spoken, written or signed
type language
['Manuel Fernando Bonilla', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Manuel_Fernando_Bonilla property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5992897,P1412,c(Q34770))
action filter_type
action find
entity Q5992897
relation P1412
type Q34770
Manuel Fernando Bonilla speaks in [ANSWER]
['Q5992897', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q5992897 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Spanish
Manuel Fernando Bonilla speaks in Spanish
Spanish
action filter_type
action find
entity Manuel Fernando Bonilla
relation languages spoken, written or signed
type language
['Manuel Fernando Bonilla', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Manuel_Fernando_Bonilla property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12060704
Q34770
USER
And what about Chris Impey?
(Q12060704,P1412,c(Q34770))
action filter_type
action find
entity Q12060704
relation P1412
type Q34770
['Q12060704', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q12060704 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
Chris Impey
action filter_type
action find
entity Chris Impey
relation languages spoken, written or signed
type language
['Chris Impey', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Chris_Impey property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q12060704,P1412,c(Q34770))
action filter_type
action find
entity Q12060704
relation P1412
type Q34770
[ANSWER]
['Q12060704', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q12060704 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Chris Impey
relation languages spoken, written or signed
type language
['Chris Impey', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Chris_Impey property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q35308
P282
Q2001982 Q9779 Q34770
USER
How many languages are greater number of notations and alphabets the writing system of than Old Irish ?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q35308
relation P282
type Q2001982
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?l WHERE { VALUES ( ?r ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?b rdf:type ?r } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { { ?j rdf:type ontology:Q2001982 } UNION { ?j rdf:type ontology:Q9779 } } . resource:Q35308 property:P282 ?j } } . FILTER ( ?c > ?m ) }
Old Irish
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Old Irish
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?l WHERE { VALUES ( ?r ) { ( ontology:notation ) ( ontology:alphabet ) } . ?b rdf:type ?r } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { { ?j rdf:type ontology:notation } UNION { ?j rdf:type ontology:alphabet } } . resource:Old_Irish property:writing_system ?j } } . FILTER ( ?c > ?m ) }
[]
notation alphabet language
SYSTEM
15
Q182695 Q29572 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q35308
relation P282
type Q2001982
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?l WHERE { VALUES ( ?r ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?b rdf:type ?r } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { { ?j rdf:type ontology:Q2001982 } UNION { ?j rdf:type ontology:Q9779 } } . resource:Q35308 property:P282 ?j } } . FILTER ( ?c > ?m ) }
Late Old Japanese Avestan Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
15
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Old Irish
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?l WHERE { VALUES ( ?r ) { ( ontology:notation ) ( ontology:alphabet ) } . ?b rdf:type ?r } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { { ?j rdf:type ontology:notation } UNION { ?j rdf:type ontology:alphabet } } . resource:Old_Irish property:writing_system ?j } } . FILTER ( ?c > ?m ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q14900210 Q454792
P27
Q15617994
USER
Which administrative territories do Robert Alfred Cloyne Godwin-Austen or Matías Abisab belong to ?
OR((Q454792,P27,c(Q15617994)), (Q14900210,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q454792
relation P27
action find
entity Q14900210
relation P27
type Q15617994
{'OR': [['Q454792', 'P27', {'concept': 'Q15617994'}], ['Q14900210', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?c ) { ( resource:Q454792 ) ( resource:Q14900210 ) } . ?c property:P27 ?h } . ?h rdf:type ontology:Q15617994 }
Matías Abisab Robert Alfred Cloyne Godwin-Austen
action filter_type
action union
action find
entity Robert Alfred Cloyne Godwin-Austen
relation country of citizenship
action find
entity Matías Abisab
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Robert Alfred Cloyne Godwin-Austen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Matías Abisab', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?c ) { ( resource:Robert_Alfred_Cloyne_Godwin-Austen ) ( resource:Matías_Abisab ) } . ?c property:country_of_citizenship ?h } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q77 Q145
SYSTEM
Uruguay, United Kingdom
Q77 Q145
OR((Q454792,P27,c(Q15617994)), (Q14900210,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q454792
relation P27
action find
entity Q14900210
relation P27
type Q15617994
[ANSWERS] Robert Alfred Cloyne Godwin-Austen or Matías Abisab belong to
{'OR': [['Q454792', 'P27', {'concept': 'Q15617994'}], ['Q14900210', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?c ) { ( resource:Q454792 ) ( resource:Q14900210 ) } . ?c property:P27 ?h } . ?h rdf:type ontology:Q15617994 }
Uruguay United Kingdom
Uruguay and United Kingdom Robert Alfred Cloyne Godwin-Austen or Matías Abisab belong to
Uruguay United Kingdom
action filter_type
action union
action find
entity Robert Alfred Cloyne Godwin-Austen
relation country of citizenship
action find
entity Matías Abisab
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Robert Alfred Cloyne Godwin-Austen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Matías Abisab', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?c ) { ( resource:Robert_Alfred_Cloyne_Godwin-Austen ) ( resource:Matías_Abisab ) } . ?c property:country_of_citizenship ?h } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q155
P530
Q15617994
USER
Do Brazil have ambassadorial relations with those ones ?
(Q155,P530,Q77) (Q155,P530,Q145)
action is_in
entity prev_answer
action find
entity Q155
relation P530
['Q155', 'P530', 'Q77'] ['Q155', 'P530', 'Q145']
ASK WHERE { VALUES ( ?t ) { ( resource:Q77 ) ( resource:Q145 ) } . resource:Q155 property:P530 ?t }
Brazil
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Uruguay'] ['Brazil', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?t ) { ( resource:Uruguay ) ( resource:United_Kingdom ) } . resource:Brazil property:diplomatic_relation ?t }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q77) (Q155,P530,Q145)
action is_in
entity prev_answer
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q77'] ['Q155', 'P530', 'Q145']
ASK WHERE { VALUES ( ?t ) { ( resource:Q77 ) ( resource:Q145 ) } . resource:Q155 property:P530 ?t }
Yes
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Uruguay'] ['Brazil', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?t ) { ( resource:Uruguay ) ( resource:United_Kingdom ) } . resource:Brazil property:diplomatic_relation ?t }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q16453797 Q20003668
P35
Q502895
USER
Is Jonas Špelveris and Georgius Sebastos the head of state of United Kingdom ?
(Q145,P35,Q16453797) (Q145,P35,Q20003668)
action is_in
entity Q145
action intersection
action find_reverse
entity Q16453797
relation P35
action find_reverse
entity Q20003668
relation P35
['Q145', 'P35', 'Q16453797'] ['Q145', 'P35', 'Q20003668']
ASK WHERE { resource:Q145 property:P35 resource:Q20003668 . resource:Q145 property:P35 resource:Q16453797 }
United Kingdom Jonas Špelveris Georgius Sebastos
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Jonas Špelveris
relation head of state
action find_reverse
entity Georgius Sebastos
relation head of state
['United Kingdom', 'head of state', 'Jonas Špelveris'] ['United Kingdom', 'head of state', 'Georgius Sebastos']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:Georgius_Sebastos . resource:United_Kingdom property:head_of_state resource:Jonas_Špelveris }
[]
common name
SYSTEM
NO
(Q145,P35,Q16453797) (Q145,P35,Q20003668)
action is_in
entity Q145
action intersection
action find_reverse
entity Q16453797
relation P35
action find_reverse
entity Q20003668
relation P35
[ANSWER]
['Q145', 'P35', 'Q16453797'] ['Q145', 'P35', 'Q20003668']
ASK WHERE { resource:Q145 property:P35 resource:Q20003668 . resource:Q145 property:P35 resource:Q16453797 }
No
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Jonas Špelveris
relation head of state
action find_reverse
entity Georgius Sebastos
relation head of state
['United Kingdom', 'head of state', 'Jonas Špelveris'] ['United Kingdom', 'head of state', 'Georgius Sebastos']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:Georgius_Sebastos . resource:United_Kingdom property:head_of_state resource:Jonas_Špelveris }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P840
Q15617994 Q838948 Q2342494
USER
Which administrative territories are max number of works of art and collectables set in ?
(c(Q838948)|c(Q2342494),P840,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?w ) WHERE { { ?d property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q838948 } UNION { ?d property:P840 ?q . ?d rdf:type ontology:Q2342494 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?q } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?h ) WHERE { { ?f property:P840 ?v . ?v rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P840 ?v . ?v rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q2342494 } } GROUP BY ?v } . FILTER ( ?h = ?l ) }
action argmax
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?w ) WHERE { { ?d property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:work_of_art } UNION { ?d property:narrative_location ?q . ?d rdf:type ontology:collectable . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?q } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?h ) WHERE { { ?f property:narrative_location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:work_of_art } UNION { ?f property:narrative_location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:collectable } } GROUP BY ?v } . FILTER ( ?h = ?l ) }
[]
designation for an administrative territorial entity work of art collectable
Q30
SYSTEM
United States of America
Q30
(c(Q838948)|c(Q2342494),P840,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
[ANSWER] is max number of works of art and collectables set in
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?w ) WHERE { { ?d property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q838948 } UNION { ?d property:P840 ?q . ?d rdf:type ontology:Q2342494 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?q } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?h ) WHERE { { ?f property:P840 ?v . ?v rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P840 ?v . ?v rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q2342494 } } GROUP BY ?v } . FILTER ( ?h = ?l ) }
United States of America
United States of America is max number of works of art and collectables set in
United States of America
action argmax
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?w ) WHERE { { ?d property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:work_of_art } UNION { ?d property:narrative_location ?q . ?d rdf:type ontology:collectable . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?q } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?h ) WHERE { { ?f property:narrative_location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:work_of_art } UNION { ?f property:narrative_location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:collectable } } GROUP BY ?v } . FILTER ( ?h = ?l ) }
[]