Simple Question (Direct)
Simple Question
Q6225029
P1050
Q2057971
USER
What does John Campbell of Stonefield suffer from ?
(Q6225029,P1050,c(Q2057971))
action filter_type
action find
entity Q6225029
relation P1050
type Q2057971
['Q6225029', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q6225029 property:P1050 ?o . ?o rdf:type ontology:Q2057971 }
John Campbell of Stonefield
action filter_type
action find
entity John Campbell of Stonefield
relation medical condition
type health problem
['John Campbell of Stonefield', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:John_Campbell_of_Stonefield property:medical_condition ?o . ?o rdf:type ontology:health_problem }
[]
health problem
Q12204
SYSTEM
tuberculosis
Q12204
(Q6225029,P1050,c(Q2057971))
action filter_type
action find
entity Q6225029
relation P1050
type Q2057971
John Campbell of Stonefield suffers from [ANSWER]
['Q6225029', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q6225029 property:P1050 ?o . ?o rdf:type ontology:Q2057971 }
tuberculosis
John Campbell of Stonefield suffers from tuberculosis
tuberculosis
action filter_type
action find
entity John Campbell of Stonefield
relation medical condition
type health problem
['John Campbell of Stonefield', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:John_Campbell_of_Stonefield property:medical_condition ?o . ?o rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6225029
P921
Q191067
USER
Which article was mainly based on John Campbell of Stonefield ?
(c(Q191067),P921,Q6225029)
action filter_type
action find_reverse
entity Q6225029
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q6225029']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q191067 . ?p property:P921 resource:Q6225029 }
John Campbell of Stonefield
action filter_type
action find_reverse
entity John Campbell of Stonefield
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'John Campbell of Stonefield']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:article . ?p property:main_subject resource:John_Campbell_of_Stonefield }
[]
article
Q19112056
SYSTEM
Campbell, John (1753-1784) (DNB00)
Q19112056
(c(Q191067),P921,Q6225029)
action filter_type
action find_reverse
entity Q6225029
relation P921
type Q191067
[ANSWER] was mainly based on John Campbell of Stonefield
[{'concept': 'Q191067'}, 'P921', 'Q6225029']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q191067 . ?p property:P921 resource:Q6225029 }
Campbell, John (1753-1784) (DNB00)
Campbell, John (1753-1784) (DNB00) was mainly based on John Campbell of Stonefield
Campbell, John (1753-1784) (DNB00)
action filter_type
action find_reverse
entity John Campbell of Stonefield
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'John Campbell of Stonefield']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:article . ?p property:main_subject resource:John_Campbell_of_Stonefield }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6225029
P1196
Q1931388
USER
What situation did John Campbell of Stonefield die in ?
(Q6225029,P1196,c(Q1931388))
action filter_type
action find
entity Q6225029
relation P1196
type Q1931388
['Q6225029', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1931388 . resource:Q6225029 property:P1196 ?p }
John Campbell of Stonefield
action filter_type
action find
entity John Campbell of Stonefield
relation manner of death
type cause of death
['John Campbell of Stonefield', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:cause_of_death . resource:John_Campbell_of_Stonefield property:manner_of_death ?p }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q6225029,P1196,c(Q1931388))
action filter_type
action find
entity Q6225029
relation P1196
type Q1931388
John Campbell of Stonefield died of [ANSWER]
['Q6225029', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1931388 . resource:Q6225029 property:P1196 ?p }
natural causes
John Campbell of Stonefield died of natural causes
natural causes
action filter_type
action find
entity John Campbell of Stonefield
relation manner of death
type cause of death
['John Campbell of Stonefield', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:cause_of_death . resource:John_Campbell_of_Stonefield property:manner_of_death ?p }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q4907742
P828
Q2057971 Q169872
USER
How many symptoms do approximately the same number of health problems cause as Biliary pruritus ?
(c(Q169872),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q169872
type Q2057971
action count
action filter_type
action find
entity Q4907742
relation P828
type Q169872
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?s ) WHERE { ?q property:P828 ?g . ?q rdf:type ontology:Q169872 . ?g rdf:type ontology:Q2057971 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Q4907742 property:P828 ?k . ?k rdf:type ontology:Q169872 } } . FILTER ( ?s = ?e ) }
Biliary pruritus
action count
action approx
action find_tuple_counts
relation has cause
type symptom
type health problem
action count
action filter_type
action find
entity Biliary pruritus
relation has cause
type symptom
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?s ) WHERE { ?q property:has_cause ?g . ?q rdf:type ontology:symptom . ?g rdf:type ontology:health_problem } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Biliary_pruritus property:has_cause ?k . ?k rdf:type ontology:symptom } } . FILTER ( ?s = ?e ) }
[]
health problem symptom
SYSTEM
3
Q4907742 Q7900395 Q1899331
(c(Q169872),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q169872
type Q2057971
action count
action filter_type
action find
entity Q4907742
relation P828
type Q169872
[ANSWER]
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?s ) WHERE { ?q property:P828 ?g . ?q rdf:type ontology:Q169872 . ?g rdf:type ontology:Q2057971 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Q4907742 property:P828 ?k . ?k rdf:type ontology:Q169872 } } . FILTER ( ?s = ?e ) }
Biliary pruritus Uremic pruritus mariske
3
action count
action approx
action find_tuple_counts
relation has cause
type symptom
type health problem
action count
action filter_type
action find
entity Biliary pruritus
relation has cause
type symptom
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?s ) WHERE { ?q property:has_cause ?g . ?q rdf:type ontology:symptom . ?g rdf:type ontology:health_problem } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Biliary_pruritus property:has_cause ?k . ?k rdf:type ontology:symptom } } . FILTER ( ?s = ?e ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19074137 Q19112056
P1433
Q5292
USER
Which encyclopedias contains Campbell, John (1753-1784) (DNB00) or Williams, John (1811-1862) ?
OR((Q19112056,P1433,c(Q5292)), (Q19074137,P1433,c(Q5292)))
action filter_type
action union
action find
entity Q19112056
relation P1433
action find
entity Q19074137
relation P1433
type Q5292
{'OR': [['Q19112056', 'P1433', {'concept': 'Q5292'}], ['Q19074137', 'P1433', {'concept': 'Q5292'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?g ) { ( resource:Q19074137 ) ( resource:Q19112056 ) } . ?g property:P1433 ?p } . ?p rdf:type ontology:Q5292 }
Williams, John (1811-1862) Campbell, John (1753-1784) (DNB00)
action filter_type
action union
action find
entity Campbell, John (1753-1784) (DNB00)
relation published in
action find
entity Williams, John (1811-1862)
relation published in
type encyclopedia
{'OR': [['Campbell, John (1753-1784) (DNB00)', 'published in', {'concept': 'encyclopedia'}], ['Williams, John (1811-1862)', 'published in', {'concept': 'encyclopedia'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?g ) { ( resource:Williams,_John_(1811-1862) ) ( resource:Campbell,_John_(1753-1784)_(DNB00) ) } . ?g property:published_in ?p } . ?p rdf:type ontology:encyclopedia }
[]
encyclopedia
Q15987216
SYSTEM
Dictionary of National Biography (1885-1900)
Q15987216
OR((Q19112056,P1433,c(Q5292)), (Q19074137,P1433,c(Q5292)))
action filter_type
action union
action find
entity Q19112056
relation P1433
action find
entity Q19074137
relation P1433
type Q5292
[ANSWER] contains Campbell, John (1753-1784) (DNB00) or Williams, John (1811-1862)
{'OR': [['Q19112056', 'P1433', {'concept': 'Q5292'}], ['Q19074137', 'P1433', {'concept': 'Q5292'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?g ) { ( resource:Q19074137 ) ( resource:Q19112056 ) } . ?g property:P1433 ?p } . ?p rdf:type ontology:Q5292 }
Dictionary of National Biography (1885-1900)
Dictionary of National Biography (1885-1900) contains Campbell, John (1753-1784) (DNB00) or Williams, John (1811-1862)
Dictionary of National Biography (1885-1900)
action filter_type
action union
action find
entity Campbell, John (1753-1784) (DNB00)
relation published in
action find
entity Williams, John (1811-1862)
relation published in
type encyclopedia
{'OR': [['Campbell, John (1753-1784) (DNB00)', 'published in', {'concept': 'encyclopedia'}], ['Williams, John (1811-1862)', 'published in', {'concept': 'encyclopedia'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?g ) { ( resource:Williams,_John_(1811-1862) ) ( resource:Campbell,_John_(1753-1784)_(DNB00) ) } . ?g property:published_in ?p } . ?p rdf:type ontology:encyclopedia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19074137
P50
Q502895
USER
Which person authored Williams, John (1811-1862) ?
(Q15987216,P50,c(Q502895))
action filter_type
action find
entity Q19074137
relation P50
type Q502895
['Q15987216', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q19074137 property:P50 ?j . ?j rdf:type ontology:Q502895 }
Williams, John (1811-1862)
action filter_type
action find
entity Williams, John (1811-1862)
relation author
type common name
['Dictionary of National Biography (1885-1900)', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Williams,_John_(1811-1862) property:author ?j . ?j rdf:type ontology:common_name }
[]
common name
Q3402409
SYSTEM
John Edward Lloyd
Q3402409
(Q15987216,P50,c(Q502895))
action filter_type
action find
entity Q19074137
relation P50
type Q502895
[ANSWER] authored Williams, John (1811-1862)
['Q15987216', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q19074137 property:P50 ?j . ?j rdf:type ontology:Q502895 }
John Edward Lloyd
John Edward Lloyd authored Williams, John (1811-1862)
John Edward Lloyd
action filter_type
action find
entity Williams, John (1811-1862)
relation author
type common name
['Dictionary of National Biography (1885-1900)', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Williams,_John_(1811-1862) property:author ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3402409 Q1860
P1412
Q34770
USER
Does English can John Edward Lloyd understand ?
(Q3402409,P1412,Q1860)
action is_in
entity Q1860
action find
entity Q3402409
relation P1412
['Q3402409', 'P1412', 'Q1860']
ASK WHERE { resource:Q3402409 property:P1412 resource:Q1860 }
John Edward Lloyd English
action is_in
entity English
action find
entity John Edward Lloyd
relation languages spoken, written or signed
['John Edward Lloyd', 'languages spoken, written or signed', 'English']
ASK WHERE { resource:John_Edward_Lloyd property:languages_spoken,_written_or_signed resource:English }
[]
language
SYSTEM
YES
(Q3402409,P1412,Q1860)
action is_in
entity Q1860
action find
entity Q3402409
relation P1412
[ANSWER]
['Q3402409', 'P1412', 'Q1860']
ASK WHERE { resource:Q3402409 property:P1412 resource:Q1860 }
Yes
action is_in
entity English
action find
entity John Edward Lloyd
relation languages spoken, written or signed
['John Edward Lloyd', 'languages spoken, written or signed', 'English']
ASK WHERE { resource:John_Edward_Lloyd property:languages_spoken,_written_or_signed resource:English }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 2549 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2549
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?s ) WHERE { ?y rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 . ?n property:P1303 ?y } GROUP BY ?y } . FILTER ( ?s >= 2549 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2549
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?s ) WHERE { ?y rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name . ?n property:instrument ?y } GROUP BY ?y } . FILTER ( ?s >= 2549 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2549
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?s ) WHERE { ?y rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 . ?n property:P1303 ?y } GROUP BY ?y } . FILTER ( ?s >= 2549 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2549
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?s ) WHERE { ?y rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name . ?n property:instrument ?y } GROUP BY ?y } . FILTER ( ?s >= 2549 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6225029
P509
Q2057971
USER
What lead to the death of John Campbell of Stonefield ?
(Q6225029,P509,c(Q2057971))
action filter_type
action find
entity Q6225029
relation P509
type Q2057971
['Q6225029', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q6225029 property:P509 ?i . ?i rdf:type ontology:Q2057971 }
John Campbell of Stonefield
action filter_type
action find
entity John Campbell of Stonefield
relation cause of death
type health problem
['John Campbell of Stonefield', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:John_Campbell_of_Stonefield property:cause_of_death ?i . ?i rdf:type ontology:health_problem }
[]
health problem
Q12204
SYSTEM
tuberculosis
Q12204
(Q6225029,P509,c(Q2057971))
action filter_type
action find
entity Q6225029
relation P509
type Q2057971
[ANSWER] lead to the death of John Campbell of Stonefield
['Q6225029', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q6225029 property:P509 ?i . ?i rdf:type ontology:Q2057971 }
tuberculosis
Tuberculosis lead to the death of John Campbell of Stonefield
tuberculosis
action filter_type
action find
entity John Campbell of Stonefield
relation cause of death
type health problem
['John Campbell of Stonefield', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:John_Campbell_of_Stonefield property:cause_of_death ?i . ?i rdf:type ontology:health_problem }
[]