Simple Question (Direct)
Simple Question
Q334391
P39
Q12737077
USER
Which occupations were a position held by Charles Abbot, 1st Baron Colchester ?
(Q334391,P39,c(Q12737077))
action filter_type
action find
entity Q334391
relation P39
type Q12737077
['Q334391', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q334391 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Charles Abbot, 1st Baron Colchester
action filter_type
action find
entity Charles Abbot, 1st Baron Colchester
relation position held
type occupation
['Charles Abbot, 1st Baron Colchester', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Charles_Abbot,_1st_Baron_Colchester property:position_held ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q18015642 Q464103 Q16707842
SYSTEM
Member of Parliament in the Parliament of Great Britain, Speaker of the House of Commons, Member of Parliament in the United Kingdom
Q18015642 Q464103 Q16707842
(Q334391,P39,c(Q12737077))
action filter_type
action find
entity Q334391
relation P39
type Q12737077
The [ANSWERS] were a position held by Charles Abbot, 1st Baron Colchester
['Q334391', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q334391 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of Great Britain Speaker of the House of Commons Member of Parliament in the United Kingdom
The Member of Parliament in the Parliament of Great Britain, Speaker of the House of Commons and Member of Parliament in the United Kingdom were a position held by Charles Abbot, 1st Baron Colchester
Member of Parliament in the Parliament of Great Britain Speaker of the House of Commons Member of Parliament in the United Kingdom
action filter_type
action find
entity Charles Abbot, 1st Baron Colchester
relation position held
type occupation
['Charles Abbot, 1st Baron Colchester', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Charles_Abbot,_1st_Baron_Colchester property:position_held ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q334391
P921
Q191067
USER
Which article has Charles Abbot, 1st Baron Colchester as its main topic ?
(c(Q191067),P921,Q334391)
action filter_type
action find_reverse
entity Q334391
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q334391']
SELECT DISTINCT ?k WHERE { ?k property:P921 resource:Q334391 . ?k rdf:type ontology:Q191067 }
Charles Abbot, 1st Baron Colchester
action filter_type
action find_reverse
entity Charles Abbot, 1st Baron Colchester
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Charles Abbot, 1st Baron Colchester']
SELECT DISTINCT ?k WHERE { ?k property:main_subject resource:Charles_Abbot,_1st_Baron_Colchester . ?k rdf:type ontology:article }
[]
article
Q19027563
SYSTEM
Abbot, Charles (1757-1829) (DNB00)
Q19027563
(c(Q191067),P921,Q334391)
action filter_type
action find_reverse
entity Q334391
relation P921
type Q191067
[ANSWER] has Charles Abbot, 1st Baron Colchester as its main topic
[{'concept': 'Q191067'}, 'P921', 'Q334391']
SELECT DISTINCT ?k WHERE { ?k property:P921 resource:Q334391 . ?k rdf:type ontology:Q191067 }
Abbot, Charles (1757-1829) (DNB00)
Abbot, Charles (1757-1829) (DNB00) has Charles Abbot, 1st Baron Colchester as its main topic
Abbot, Charles (1757-1829) (DNB00)
action filter_type
action find_reverse
entity Charles Abbot, 1st Baron Colchester
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Charles Abbot, 1st Baron Colchester']
SELECT DISTINCT ?k WHERE { ?k property:main_subject resource:Charles_Abbot,_1st_Baron_Colchester . ?k rdf:type ontology:article }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19027563
P1433
Q5292
USER
Where is that article published ?
(Q19027563,P1433,c(Q5292))
action filter_type
action find
entity Q19027563
relation P1433
type Q5292
['Q19027563', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?d WHERE { resource:Q19027563 property:P1433 ?d . ?d rdf:type ontology:Q5292 }
Abbot, Charles (1757-1829) (DNB00)
action filter_type
action find
entity Abbot, Charles (1757-1829) (DNB00)
relation published in
type encyclopedia
['Abbot, Charles (1757-1829) (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?d WHERE { resource:Abbot,_Charles_(1757-1829)_(DNB00) property:published_in ?d . ?d rdf:type ontology:encyclopedia }
[]
encyclopedia
Q15987216
SYSTEM
Dictionary of National Biography (1885-1900)
Q15987216
(Q19027563,P1433,c(Q5292))
action filter_type
action find
entity Q19027563
relation P1433
type Q5292
That article is published in [ANSWER]
['Q19027563', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?d WHERE { resource:Q19027563 property:P1433 ?d . ?d rdf:type ontology:Q5292 }
Dictionary of National Biography (1885-1900)
That article is published in Dictionary of National Biography (1885-1900)
Dictionary of National Biography (1885-1900)
action filter_type
action find
entity Abbot, Charles (1757-1829) (DNB00)
relation published in
type encyclopedia
['Abbot, Charles (1757-1829) (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?d WHERE { resource:Abbot,_Charles_(1757-1829)_(DNB00) property:published_in ?d . ?d rdf:type ontology:encyclopedia }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1433
Q5292 Q191067
USER
How many encyclopedias are around the same number of articles published as that encyclopedia ?
(c(Q191067),P1433,c(Q5292))
action count
action approx
action find_reverse_tuple_counts
relation P1433
type Q5292
type Q191067
action count
action filter_type
action find
entity Q15987216
relation P1433
type Q5292
[{'concept': 'Q191067'}, 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h rdf:type ontology:Q5292 . resource:Q15987216 property:P1433 ?h } } . FILTER ( ?q = ?n ) . { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P1433 ?b . ?b rdf:type ontology:Q5292 . ?c rdf:type ontology:Q191067 } GROUP BY ?b } }
action count
action approx
action find_reverse_tuple_counts
relation published in
type encyclopedia
type article
action count
action filter_type
action find
entity Dictionary of National Biography (1885-1900)
relation published in
type encyclopedia
[{'concept': 'article'}, 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h rdf:type ontology:encyclopedia . resource:Dictionary_of_National_Biography_(1885-1900) property:published_in ?h } } . FILTER ( ?q = ?n ) . { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:published_in ?b . ?b rdf:type ontology:encyclopedia . ?c rdf:type ontology:article } GROUP BY ?b } }
[]
encyclopedia article
SYSTEM
1
Q15987216
(c(Q191067),P1433,c(Q5292))
action count
action approx
action find_reverse_tuple_counts
relation P1433
type Q5292
type Q191067
action count
action filter_type
action find
entity Q15987216
relation P1433
type Q5292
[ANSWER]
[{'concept': 'Q191067'}, 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h rdf:type ontology:Q5292 . resource:Q15987216 property:P1433 ?h } } . FILTER ( ?q = ?n ) . { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P1433 ?b . ?b rdf:type ontology:Q5292 . ?c rdf:type ontology:Q191067 } GROUP BY ?b } }
Dictionary of National Biography (1885-1900)
1
action count
action approx
action find_reverse_tuple_counts
relation published in
type encyclopedia
type article
action count
action filter_type
action find
entity Dictionary of National Biography (1885-1900)
relation published in
type encyclopedia
[{'concept': 'article'}, 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h rdf:type ontology:encyclopedia . resource:Dictionary_of_National_Biography_(1885-1900) property:published_in ?h } } . FILTER ( ?q = ?n ) . { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:published_in ?b . ?b rdf:type ontology:encyclopedia . ?c rdf:type ontology:article } GROUP BY ?b } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19054317 Q19027563
P921
Q502895
USER
Which people were discussed in Abbot, Charles (1757-1829) (DNB00) or Hunter, John (1745-1837) (DNB00) ?
OR((Q19027563,P921,c(Q502895)), (Q19054317,P921,c(Q502895)))
action filter_type
action union
action find
entity Q19027563
relation P921
action find
entity Q19054317
relation P921
type Q502895
{'OR': [['Q19027563', 'P921', {'concept': 'Q502895'}], ['Q19054317', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?u ) { ( resource:Q19027563 ) ( resource:Q19054317 ) } . ?u property:P921 ?k } . ?k rdf:type ontology:Q502895 }
Hunter, John (1745-1837) (DNB00) Abbot, Charles (1757-1829) (DNB00)
action filter_type
action union
action find
entity Abbot, Charles (1757-1829) (DNB00)
relation main subject
action find
entity Hunter, John (1745-1837) (DNB00)
relation main subject
type common name
{'OR': [['Abbot, Charles (1757-1829) (DNB00)', 'main subject', {'concept': 'common name'}], ['Hunter, John (1745-1837) (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?u ) { ( resource:Abbot,_Charles_(1757-1829)_(DNB00) ) ( resource:Hunter,_John_(1745-1837)_(DNB00) ) } . ?u property:main_subject ?k } . ?k rdf:type ontology:common_name }
[]
common name
Q334391 Q18671858
SYSTEM
Charles Abbot, 1st Baron Colchester, John Hunter
Q334391 Q18671858
OR((Q19027563,P921,c(Q502895)), (Q19054317,P921,c(Q502895)))
action filter_type
action union
action find
entity Q19027563
relation P921
action find
entity Q19054317
relation P921
type Q502895
[ANSWERS] were discussed in Abbot, Charles (1757-1829) (DNB00) or Hunter, John (1745-1837) (DNB00)
{'OR': [['Q19027563', 'P921', {'concept': 'Q502895'}], ['Q19054317', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?u ) { ( resource:Q19027563 ) ( resource:Q19054317 ) } . ?u property:P921 ?k } . ?k rdf:type ontology:Q502895 }
Charles Abbot, 1st Baron Colchester John Hunter
Charles Abbot, 1st Baron Colchester and John Hunter were discussed in Abbot, Charles (1757-1829) (DNB00) or Hunter, John (1745-1837) (DNB00)
Charles Abbot, 1st Baron Colchester John Hunter
action filter_type
action union
action find
entity Abbot, Charles (1757-1829) (DNB00)
relation main subject
action find
entity Hunter, John (1745-1837) (DNB00)
relation main subject
type common name
{'OR': [['Abbot, Charles (1757-1829) (DNB00)', 'main subject', {'concept': 'common name'}], ['Hunter, John (1745-1837) (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?u ) { ( resource:Abbot,_Charles_(1757-1829)_(DNB00) ) ( resource:Hunter,_John_(1745-1837)_(DNB00) ) } . ?u property:main_subject ?k } . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19054317
P50
Q502895
USER
Which person authored Hunter, John (1745-1837) (DNB00) ?
(Q334391,P50,c(Q502895)) (Q18671858,P50,c(Q502895))
action filter_type
action find
entity Q19054317
relation P50
type Q502895
['Q334391', 'P50', {'concept': 'Q502895'}] ['Q18671858', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q19054317 property:P50 ?i . ?i rdf:type ontology:Q502895 }
Hunter, John (1745-1837) (DNB00)
action filter_type
action find
entity Hunter, John (1745-1837) (DNB00)
relation author
type common name
['Charles Abbot, 1st Baron Colchester', 'author', {'concept': 'common name'}] ['John Hunter', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Hunter,_John_(1745-1837)_(DNB00) property:author ?i . ?i rdf:type ontology:common_name }
[]
common name
Q15981973
SYSTEM
Thomas Wilson Bayne
Q15981973
(Q334391,P50,c(Q502895)) (Q18671858,P50,c(Q502895))
action filter_type
action find
entity Q19054317
relation P50
type Q502895
[ANSWER] authored Hunter, John (1745-1837) (DNB00)
['Q334391', 'P50', {'concept': 'Q502895'}] ['Q18671858', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q19054317 property:P50 ?i . ?i rdf:type ontology:Q502895 }
Thomas Wilson Bayne
Thomas Wilson Bayne authored Hunter, John (1745-1837) (DNB00)
Thomas Wilson Bayne
action filter_type
action find
entity Hunter, John (1745-1837) (DNB00)
relation author
type common name
['Charles Abbot, 1st Baron Colchester', 'author', {'concept': 'common name'}] ['John Hunter', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Hunter,_John_(1745-1837)_(DNB00) property:author ?i . ?i rdf:type ontology:common_name }
[]