Simple Question (Direct)
Simple Question
Q7525993
P97
Q355567
USER
Which royal or noble rank was held by Sir Andrew Agnew, 7th Baronet ?
(Q7525993,P97,c(Q355567))
action filter_type
action find
entity Q7525993
relation P97
type Q355567
['Q7525993', 'P97', {'concept': 'Q355567'}]
SELECT DISTINCT ?s WHERE { resource:Q7525993 property:P97 ?s . ?s rdf:type ontology:Q355567 }
Sir Andrew Agnew, 7th Baronet
action filter_type
action find
entity Sir Andrew Agnew, 7th Baronet
relation noble title
type royal or noble rank
['Sir Andrew Agnew, 7th Baronet', 'noble title', {'concept': 'royal or noble rank'}]
SELECT DISTINCT ?s WHERE { resource:Sir_Andrew_Agnew,_7th_Baronet property:noble_title ?s . ?s rdf:type ontology:royal_or_noble_rank }
[]
royal or noble rank
Q282019
SYSTEM
baronet
Q282019
(Q7525993,P97,c(Q355567))
action filter_type
action find
entity Q7525993
relation P97
type Q355567
A [ANSWER] was held by Sir Andrew Agnew, 7th [ANSWER]
['Q7525993', 'P97', {'concept': 'Q355567'}]
SELECT DISTINCT ?s WHERE { resource:Q7525993 property:P97 ?s . ?s rdf:type ontology:Q355567 }
baronet
A baronet was held by Sir Andrew Agnew, 7th Baronet
baronet
action filter_type
action find
entity Sir Andrew Agnew, 7th Baronet
relation noble title
type royal or noble rank
['Sir Andrew Agnew, 7th Baronet', 'noble title', {'concept': 'royal or noble rank'}]
SELECT DISTINCT ?s WHERE { resource:Sir_Andrew_Agnew,_7th_Baronet property:noble_title ?s . ?s rdf:type ontology:royal_or_noble_rank }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7525993
P1412
Q34770
USER
Which language can Sir Andrew Agnew, 7th Baronet read ?
(Q7525993,P1412,c(Q34770))
action filter_type
action find
entity Q7525993
relation P1412
type Q34770
['Q7525993', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q7525993 property:P1412 ?p . ?p rdf:type ontology:Q34770 }
Sir Andrew Agnew, 7th Baronet
action filter_type
action find
entity Sir Andrew Agnew, 7th Baronet
relation languages spoken, written or signed
type language
['Sir Andrew Agnew, 7th Baronet', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Sir_Andrew_Agnew,_7th_Baronet property:languages_spoken,_written_or_signed ?p . ?p rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q7525993,P1412,c(Q34770))
action filter_type
action find
entity Q7525993
relation P1412
type Q34770
Sir Andrew Agnew , 7th Baronet can read in [ANSWER]
['Q7525993', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q7525993 property:P1412 ?p . ?p rdf:type ontology:Q34770 }
English
Sir Andrew Agnew , 7th Baronet can read in English
English
action filter_type
action find
entity Sir Andrew Agnew, 7th Baronet
relation languages spoken, written or signed
type language
['Sir Andrew Agnew, 7th Baronet', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Sir_Andrew_Agnew,_7th_Baronet property:languages_spoken,_written_or_signed ?p . ?p rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20987119
Q34770
USER
And what about José María Bello Diéguez?
(Q20987119,P1412,c(Q34770))
action filter_type
action find
entity Q20987119
relation P1412
type Q34770
['Q20987119', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q20987119 property:P1412 ?t . ?t rdf:type ontology:Q34770 }
José María Bello Diéguez
action filter_type
action find
entity José María Bello Diéguez
relation languages spoken, written or signed
type language
['José María Bello Diéguez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:José_María_Bello_Diéguez property:languages_spoken,_written_or_signed ?t . ?t rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q20987119,P1412,c(Q34770))
action filter_type
action find
entity Q20987119
relation P1412
type Q34770
[ANSWER]
['Q20987119', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q20987119 property:P1412 ?t . ?t rdf:type ontology:Q34770 }
Spanish
Spanish
action filter_type
action find
entity José María Bello Diéguez
relation languages spoken, written or signed
type language
['José María Bello Diéguez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:José_María_Bello_Diéguez property:languages_spoken,_written_or_signed ?t . ?t rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7350812 Q7525993
P921
Q191067
USER
Which articles have Sir Andrew Agnew, 7th Baronet or Robert Wallace as their principal topic ?
OR((c(Q191067),P921,Q7525993), (c(Q191067),P921,Q7350812))
action filter_type
action union
action find_reverse
entity Q7525993
relation P921
action find_reverse
entity Q7350812
relation P921
type Q191067
{'OR': [[{'concept': 'Q191067'}, 'P921', 'Q7525993'], [{'concept': 'Q191067'}, 'P921', 'Q7350812']]}
SELECT DISTINCT ?b WHERE { { { ?b property:P921 resource:Q7525993 } UNION { ?b property:P921 resource:Q7350812 } } . ?b rdf:type ontology:Q191067 }
Robert Wallace Sir Andrew Agnew, 7th Baronet
action filter_type
action union
action find_reverse
entity Sir Andrew Agnew, 7th Baronet
relation main subject
action find_reverse
entity Robert Wallace
relation main subject
type article
{'OR': [[{'concept': 'article'}, 'main subject', 'Sir Andrew Agnew, 7th Baronet'], [{'concept': 'article'}, 'main subject', 'Robert Wallace']]}
SELECT DISTINCT ?b WHERE { { { ?b property:main_subject resource:Sir_Andrew_Agnew,_7th_Baronet } UNION { ?b property:main_subject resource:Robert_Wallace } } . ?b rdf:type ontology:article }
[]
article
Q19052094 Q19032004
SYSTEM
Wallace, Robert (1791-1850) (DNB00), Agnew, Andrew (1793-1849) (DNB00)
Q19052094 Q19032004
OR((c(Q191067),P921,Q7525993), (c(Q191067),P921,Q7350812))
action filter_type
action union
action find_reverse
entity Q7525993
relation P921
action find_reverse
entity Q7350812
relation P921
type Q191067
[ANSWERS]
{'OR': [[{'concept': 'Q191067'}, 'P921', 'Q7525993'], [{'concept': 'Q191067'}, 'P921', 'Q7350812']]}
SELECT DISTINCT ?b WHERE { { { ?b property:P921 resource:Q7525993 } UNION { ?b property:P921 resource:Q7350812 } } . ?b rdf:type ontology:Q191067 }
Wallace, Robert (1791-1850) (DNB00) Agnew, Andrew (1793-1849) (DNB00)
Wallace, Robert (1791-1850) (DNB00) and Agnew, Andrew (1793-1849) (DNB00) have Sir Andrew Agnew, 7th Baronet or Robert Wallace as their principal topic
Wallace, Robert (1791-1850) (DNB00) Agnew, Andrew (1793-1849) (DNB00)
action filter_type
action union
action find_reverse
entity Sir Andrew Agnew, 7th Baronet
relation main subject
action find_reverse
entity Robert Wallace
relation main subject
type article
{'OR': [[{'concept': 'article'}, 'main subject', 'Sir Andrew Agnew, 7th Baronet'], [{'concept': 'article'}, 'main subject', 'Robert Wallace']]}
SELECT DISTINCT ?b WHERE { { { ?b property:main_subject resource:Sir_Andrew_Agnew,_7th_Baronet } UNION { ?b property:main_subject resource:Robert_Wallace } } . ?b rdf:type ontology:article }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19023121 Q19032004
P921
Q502895
USER
Which people were discussed in Agnew, Andrew (1793-1849) (DNB00) or Felton, Nicholas (DNB00) ?
OR((Q19032004,P921,c(Q502895)), (Q19023121,P921,c(Q502895)))
action filter_type
action union
action find
entity Q19032004
relation P921
action find
entity Q19023121
relation P921
type Q502895
{'OR': [['Q19032004', 'P921', {'concept': 'Q502895'}], ['Q19023121', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q19032004 property:P921 ?z } UNION { resource:Q19023121 property:P921 ?z } } . ?z rdf:type ontology:Q502895 }
Felton, Nicholas (DNB00) Agnew, Andrew (1793-1849) (DNB00)
action filter_type
action union
action find
entity Agnew, Andrew (1793-1849) (DNB00)
relation main subject
action find
entity Felton, Nicholas (DNB00)
relation main subject
type common name
{'OR': [['Agnew, Andrew (1793-1849) (DNB00)', 'main subject', {'concept': 'common name'}], ['Felton, Nicholas (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Agnew,_Andrew_(1793-1849)_(DNB00) property:main_subject ?z } UNION { resource:Felton,_Nicholas_(DNB00) property:main_subject ?z } } . ?z rdf:type ontology:common_name }
[]
common name
Q15989978 Q7525993
SYSTEM
Nicholas Felton, Sir Andrew Agnew, 7th Baronet
Q15989978 Q7525993
OR((Q19032004,P921,c(Q502895)), (Q19023121,P921,c(Q502895)))
action filter_type
action union
action find
entity Q19032004
relation P921
action find
entity Q19023121
relation P921
type Q502895
[ANSWERS]
{'OR': [['Q19032004', 'P921', {'concept': 'Q502895'}], ['Q19023121', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q19032004 property:P921 ?z } UNION { resource:Q19023121 property:P921 ?z } } . ?z rdf:type ontology:Q502895 }
Nicholas Felton Sir Andrew Agnew, 7th Baronet
Nicholas Felton and Sir Andrew Agnew, 7th Baronet were discussed in Agnew, Andrew (1793-1849) (DNB00) or Felton, Nicholas (DNB00)
Nicholas Felton Sir Andrew Agnew, 7th Baronet
action filter_type
action union
action find
entity Agnew, Andrew (1793-1849) (DNB00)
relation main subject
action find
entity Felton, Nicholas (DNB00)
relation main subject
type common name
{'OR': [['Agnew, Andrew (1793-1849) (DNB00)', 'main subject', {'concept': 'common name'}], ['Felton, Nicholas (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Agnew,_Andrew_(1793-1849)_(DNB00) property:main_subject ?z } UNION { resource:Felton,_Nicholas_(DNB00) property:main_subject ?z } } . ?z rdf:type ontology:common_name }
[]